vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Does anyone know how i can do this.. (https://vborg.vbsupport.ru/showthread.php?t=203159)

decipher442 01-26-2009 03:12 PM

Does anyone know how i can do this..
 
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):

HTML Code:

<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:

HTML 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:

Code:

/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:
Code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[new_posts_nav]</a></td>
Change this to:

Code:

<td class="vbmenu_control"><a href="search.php?do=getdaily&amp;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!


All times are GMT. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete