The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Trying to modify "Forum Leaders" page
I'm a total newbie at this, so please bear with me. I'm trying to add additional information on the "Forum Leaders" page. Specifically last activity date and time, and sign up date. I've added the following in showgroups.php (I borrowed this from members.php):
PHP Code:
$user[lastactivity] The problem is that a date/time stamp shows up instead of a normal date. Can anyone tell me what I'm doing wrong? Now I've removed the code that I modified the php file with - back to its near orginal state - and the date time stamp still appears. I guess I'm using the wrong $user code. Any help? Thanks in advance. |
#2
|
|||
|
|||
You are in the good way
Just put this in your code : $user['lastactivity_date'] = vbdate($vbulletin->options['dateformat'], $user['lastactivity']); $user['lastactivity_time'] = vbdate($vbulletin->options['timeformat'], $user['lastactivity']); Then put $user[lastactivity_date] and $user[lastactivity_time] in showgroup_usergroupbit template . Not tested it, but I think it will work. |
#3
|
||||
|
||||
Thanks! But I tried this, and it gave blank results.
I reverted back to $user[joindate] and $user[lastactivity] and I'm still getting date and time stamp (1101726000, etc.) I tried searching this forum here at .org because I think I saw someone who had this problem before - I can't seem to find the thread. Is there a switch somewhere in the administrator control panel, or is there something off in the code somewhere? Found it: $user[lastonline] This works fine! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|