ThorstenA
02-18-2007, 10:00 PM
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
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
#2 Replace with
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
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
$lastpostinfo['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $lastpostinfo['lastpost'], 1);
$lastpostinfo['lastposttime'] = vbdate($vbulletin->options['timeformat'], $lastpostinfo['lastpost']);
#2 Replace with
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