![]() |
[vB 3.0.3] Replace Today's/New Posts Links with Dropdown
This small template mod is for the vB 3.0.3 navbar template. This mod replaces the Today's Posts/New Posts links with a Get Posts dropdown menu. It only works when vB dropdowns are allowed, otherwise the default vB link is displayed. The dropdown includes a link to New Posts as well as links to daily posts from the last week. Note that vB does 'getdaily' searches on 24-hour cycles so, for example, selecting '2 Days Ago' in the dropdown gets all posts in the last 48 hours. Directions to exlude forums from Get Posts search results are also included, and after adding some vB phrases, only the vB 3.0.3 navbar template needs to be edited for this mod to work.
|
Nice but effective mod. Thank you for sharing. :)
|
Was looking for something like that! thanks!
|
Question without doing the excludes will this show forums that the usergroup cant access?
|
Code:
1) Go to the vB Phrase Manager and add the following phrases (see vB help for further directions): Since i am new @ vb3 what should the "Varname" be for each one? i tried Get Post and it said it is invalid - because of the space... |
get_posts_nav
or get_one_day no brackets, no spaces.... |
Quote:
get_posts_nav get_one_day get_two_days or do you really mean "or" i.e., use a single variable? |
yeah, run down the list. don't use brackets. just enter the variable name using _'s instead of spaces.....
|
i followed the same route creating mine...
had to edit the search.php here is what i built mine to look like: |
Strange. When i should put in the code in the vB Phrase Manager
i get this error The varname you specified for this phrase is invalid. You may only include a-z, A-Z, 0-9, and _ (underscore). It tried to lay in this $vbphrase[get_posts_nav] |
Quote:
Renada |
Quote:
Will it show the private forums ?? thanks in advance,, |
Quote:
|
Any help ?
|
i added this link but on 2 of my templates when i click it it takes me to the search page and then i can click the get post link again and it gives me the drop down. how can i fix this?
|
Quote:
get_posts_nav NO BRACKETS After the "=" you enter that part into the bigger box |
This is exactly what my users were asking for! :up:
- Sid |
Here's something you may want to combine with this template mod:
https://vborg.vbsupport.ru/showthrea...threadid=73077 It allows you to check minutes and hours instead of just days. Amy |
Quote:
;) BTW, I miss your old avatar! - Sid |
I don't even remember what my old avater was :D
|
|
I'd like to apply this mod to my forum which is running 3.5.1. Any issues? tips? alternatives?
Thanks, Carlos |
All times are GMT. The time now is 12:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|