Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
[vB 3.0.3] Replace Today's/New Posts Links with Dropdown Details »»
[vB 3.0.3] Replace Today's/New Posts Links with Dropdown
Version: 1.00, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-23-2004 Last Update: Never Installs: 10
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-24-2004, 04:52 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice but effective mod. Thank you for sharing.
Reply With Quote
  #3  
Old 08-27-2004, 06:01 PM
Symbian.info Symbian.info is offline
 
Join Date: Nov 2001
Location: Netherlands
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was looking for something like that! thanks!
Reply With Quote
  #4  
Old 09-05-2004, 11:50 PM
venomx's Avatar
venomx venomx is offline
 
Join Date: Apr 2002
Location: Pennsylvania USA
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question without doing the excludes will this show forums that the usergroup cant access?
Reply With Quote
  #5  
Old 09-20-2004, 06:07 AM
imported_Mathiau imported_Mathiau is offline
 
Join Date: Oct 2002
Location: Costa Rica and some time good ol home toronto
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
1) Go to the vB Phrase Manager and add the following phrases (see vB help for further directions):

$vbphrase[get_posts_nav] = "Get Posts";
$vbphrase[get_one_day] = "1 Day Ago";
$vbphrase[get_two_days] = "2 Days Ago";
$vbphrase[get_three_days] = "3 Days Ago";
$vbphrase[get_four_days] = "4 Days Ago";
$vbphrase[get_five_days] = "5 Days Ago";
$vbphrase[get_six_days] = "6 Days Ago";
$vbphrase[get_seven_days] = "7 Days Ago";

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...
Reply With Quote
  #6  
Old 09-22-2004, 07:06 PM
imported_bi11i's Avatar
imported_bi11i imported_bi11i is offline
 
Join Date: Feb 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

get_posts_nav

or

get_one_day

no brackets, no spaces....
Reply With Quote
  #7  
Old 09-27-2004, 12:48 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bi11i
get_posts_nav

or

get_one_day

no brackets, no spaces....
Do you mean run down the list;
get_posts_nav
get_one_day
get_two_days

or do you really mean "or" i.e., use a single variable?
Reply With Quote
  #8  
Old 10-06-2004, 04:14 PM
imported_bi11i's Avatar
imported_bi11i imported_bi11i is offline
 
Join Date: Feb 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, run down the list. don't use brackets. just enter the variable name using _'s instead of spaces.....
Reply With Quote
  #9  
Old 01-03-2005, 07:54 PM
trevelyn1015 trevelyn1015 is offline
 
Join Date: Dec 2004
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i followed the same route creating mine...

had to edit the search.php

here is what i built mine to look like:
Reply With Quote
  #10  
Old 03-25-2005, 03:59 AM
wrang wrang is offline
 
Join Date: Oct 2004
Location: Sweden
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05856 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete