User Registration / Login and track/log their use?

Hi,

I was wanting to achieve the following:

1) My site password protected - easily done.

2) My site with a user registration page where the person registers with an email address and password. When they register it emails me to tell me. They are then either declined and back to square one or they are acccepted by me and can then view my gallery with the email and password they created. They would just log in to view the gallery.

3) Once registered I would then like a log of who has logged on to my gallery and when so I can track who has been visiting and who hasn't? Ideally what they viewed as well but not as important really.

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.
Stuart

Comments

  • acrylian Administrator, Developer
    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).
  • 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.
  • 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.
  • 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

    * Actually, you could get a log of sorts by setting the define `DEBUG_LOGIN` to true, also in functions-basic.php. You will get a lot more data than you probably want, though.

    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.
  • I forgot to mention--name your version of the script `lib-auth_custom.php`
  • 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.
  • 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.
  • 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.
Sign In or Register to comment.