View Full Version : Does anyone know how i can do this..
decipher442
01-26-2009, 03:12 PM
Hi,
Does anyone know how i can make the "new posts" mod on vbulletin display all post in the last 24 hours by default? It seems like all the new posts dont show once i have viewed/responded to one of them.
Thanks!
Lynne
01-26-2009, 03:21 PM
Just go to your navbar template and find this code (in a couple places):
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
And replace it with this code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
I think that will do what you want.
Suri.CMS
01-26-2009, 03:35 PM
Thank You Lynne. It's useful for me.
glennybee
01-26-2009, 04:05 PM
You can also use the &days=x parameter to specifiy new posts from x days ago.
For example:
/search.php?do=getdaily&days=7
This will get new posts from the past 7 days.
blind-eddie
01-26-2009, 04:16 PM
Open your Navbar Template
Search for:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Change this to:
<td class="vbmenu_control"><a href="search.php?do=getdaily&days=10" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Doing this will show all post from the last 10 days. The number of days, can be what ever you want it to be.
decipher442
01-26-2009, 04:23 PM
:D Thanks everyone... You made my day!!!
thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.