Log in

View Full Version : showgroups question.


cashpath
12-12-2005, 08:24 PM
How do I get the showgroups template to print $userinfo[lastvisit]??

Right now it will print $user[lastvisit] but that comes out as a timestamp. Is there a way to convert the timestamp to a date in the template?

:rolleyes:



-----

What would be the easiest way to get the showgroups template to show the users last visit as a readable date instead of a timestamp?

merk
12-12-2005, 08:43 PM
in showgroups_start

$userlastvisit = vbdate($vbulletin->options['dateformat'], $user['lastvisit']); # replace dateformat with timeformat if you want the time they visited instead


In showgroups, use $userlastvisit.

cashpath
12-12-2005, 10:18 PM
I put the code in the showgroups.php file??

And then just $userlastvisit in the template??

Did that and it doesn't work still..

Nevermind I got it put the code in a bad spot... Thanks

merk
12-13-2005, 06:31 AM
No, you use a plugin. (in the location i told you to)