I've search the board and haven't found a solution.
I would like to log User names every time they log in. Is this possible?
Thanks in advance.
Yes it's possible ,
- Use USER_NAME constant it will set after each authentication
- OR just query the xxx_users table
BTW there is some plugin for online users stat , look at the cpg1.4 plugin contributions (http://forum.coppermine-gallery.net/index.php?board=66.0)
I'm not sure that I completely understand. This will keep a log of every time a user logs in. And if yes (and it's not too complicated to explain) can you explain it just a little more. I'm kinda new at php (even though I'm a Windows Programmer - so at least I have some coding experience).
Thanks a lot.
Let me know what do you want to do , your first post was just about possibility
I would like to have a log (text file or something similar) that has in it - Date, Time, and UserName. Basically whenever a user signs in it should log it. This should be similar to the log files that already exist (in Logging and statistics) such as eCards and Vote Statistics.
I guess it's time for me to go out and buy the PHP For Dummies book (at least to start), and start burning the midnight oil. I would love to have some kind of clue about how pHp works. ;)
You have all this info on database (xxx_usres table)
this plugin may help you to get the idea:
http://forum.coppermine-gallery.net/index.php?topic=35233.0
just look at the codebase.php and find the online_today($html) function , there is a mysql query ;)
Your the greatest. Thanks for pointing me in the right direction.