PDA

View Full Version : Is a member's join date in $vbulletin->userinfo


JamesAB
03-07-2013, 03:29 PM
I'm a little rusty, but I'm going to work on an a mod for attachment.php :o
I want to compare today's date to the date that each member registered on the forum and do something different if they have been a member for more than 30 days.

In attachment.php, does the $vbulletin->userinfo array contain the member's join/registration date? If so, how can I access this variable to compare it to today's date?

Thanks for your help,
James

kh99
03-07-2013, 03:33 PM
I haven't checked to make certain that it's there, but I believe $vbulletin->userinfo['joindate'] should be the user's registration date (as a unix timestamp).

Scandal
03-12-2013, 07:53 PM
For today's date/time you can use the TIMENOW :up: