Show lastpost time only in last day range
This modification is in the archives.
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']); 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']); } Download No files for download. |
Similar Mods
Administrative and Maintenance Tools Notices: Time Range Criteria (based upon Server Time) | vBulletin 3.7 Add-ons |