Back to vBulletin 3.6 Add-ons

Show lastpost time only in last day range
Mod Version: 1.00, by ThorstenA

This modification is in the archives.
vB Version: 3.6.4 Rating: (0 vote - 0 average) Installs: 6
Released: 19 Feb 2007 Last Update: Never Downloads: 3
Not Supported  

Show lastpost time only in last day range


Do you have some forums that are not visited that much? You can provide information about lastposttime just for your active forums with this code modification.

#1 Find in includes/functions_forumlist.php

Code:
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);				
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
#2 Replace with

Code:
if($lastpostinfo['lastpost'] > (TIMENOW - 60*60*24))
{	
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);				
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
}
#3 Done

Download

No files for download.

Similar Mods

Administrative and Maintenance Tools Notices: Time Range Criteria (based upon Server Time) vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024