![]() |
|
User Registration / Login and track/log their use? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: User Registration / Login and track/log their use? (/thread-5233.html) |
User Registration / Login and track/log their use? - thestormtrooper - 2009-05-26 Hi, I was wanting to achieve the following:
Is all of this achievable? I've read through the forums but can't find anything that matches my exact situation. Any help is greatly appreciated. I am a php novice to say the least and have been just altering themes using a bit of common sense to get my desired results so far. I basically need an idiots guide if this is possible? Thanks again. User Registration / Login and track/log their use? - acrylian - 2009-05-26 Sorry, we do not have functionality for that. But you could create a feature request ticket for that (thought we can't promise when or if we do that). User Registration / Login and track/log their use? - sbillard - 2009-05-26 Only the log is missing from the functionality. Given the way we do passwords (which is really required for a reasonable user experience) I am not sure how useful the log would be. You would get a log entry only when a user logs in. His login is remembered so that he does not have to log in at each page refresh, so no login will happen until his login cookie expires. User Registration / Login and track/log their use? - thestormtrooper - 2009-05-26 Does this mean I can achieve all of the above with the only problem being that a log if created would only register the persons login once? so I wouldn't find out their next login until the cookie expired and then they logged in again? How long does it take for a cookie to expire? can I not set that to one day, 4 hours? or similar? so I'll know who has logged in each day? Thanks again. User Registration / Login and track/log their use? - sbillard - 2009-05-26 Currently there is no logging of user logon attempts*. If there were, it might not prove useful as stated above. Cookies expire in 5184000 seconds. There is a define for this value, 'COOKIE_PESISTENCE' in functions-basic.php
The login handling is all done by the script lib-auth.php. This script is designed so that it could be replaced by an equivalent. You could modify it to provide the logging you desire. You would have to be aware of any changes that might be made to the script release to release so that your version did not slip out of date. User Registration / Login and track/log their use? - sbillard - 2009-05-26 I forgot to mention--name your version of the script User Registration / Login and track/log their use? - thestormtrooper - 2009-05-26 Think thats all a bit over my head to be honest. I know a bit of html and from that I can move around the php to get themes working etc... but the stuff above would be a step too far. Think I'll try and get the user registration up and running and then if thats succesful I may seek further help with how to display the information of who has logged in and when etc then. Then it'll be perfect! Thanks again for your help, you do a great job. User Registration / Login and track/log their use? - sbillard - 2009-05-26 Don't despare. We are in the process of making the 1.2.5 release. After that is out I will add a filter for login and an example filter processor which will keep a log of admin login attempts. So maybe in the nightly build in a week and a half. User Registration / Login and track/log their use? - thestormtrooper - 2009-05-27 Sounds excellent, basically I just want to see who has logged into my site. Each day would be enough, doesn't need to be anymore accurate than that. Just so I know who is looking at my stuff and who I can be deleted etc. Thanks a lot for your efforts, I'll keep an eye on developments once I have my logon working. |