The Arcive of vBulletin Modifications Site. |
|
Show lastpost time only in last day range Details »»
|
|||||||||||||||||||||||||||
|
Show lastpost time only in last day range
Developer Last Online: Nov 2023
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']);
}
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Do you have any images showing how this works? I'll be willing to try it
|
|
#3
|
||||
|
||||
|
Hi ThorstenA,
could this be done without php-file editing ? Idea is great! |
|
#4
|
||||
|
||||
|
I did not find any other way accomplish this the time I wrote this modification. But maybe it's possible now. You can suggest this feature for being standard on vbulletin.com suggestion forum here:
http://www.vbulletin.com/forum/forumdisplay.php?f=55 |
![]() |
|
|