vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Advanced Search Box in Navbar (https://vborg.vbsupport.ru/showthread.php?t=147519)

Mackenzie s 05-17-2007 10:00 PM

Advanced Search Box in Navbar
 
Description: Adds a "Today's Posts" and a "New Posts" link to the pop-up search box in the navbar. Look at the before and after attached pictures for more info.

Instructions:

1) Edit the "navbar" template. Styles & Templates --> Style Manager --> Navigation/Breadcrumb Templates --> navbar

2) Find:
Code:

                                <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
Add below:
Code:

                        </td>
                </tr>
                <tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">New Posts</a></td>
</tr>       
                <tr>
                                <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">Today's Posts</a></td>


Simple yet nice looking. :)


Please Press INSTALLED! Thanks.

JamieLee2k 05-18-2007 09:29 AM

Nice and clean, That might be useful, Thanks

Mackenzie s 05-18-2007 01:36 PM

That was exactly the point. Glad you liked it. :)

rjmjr69 05-18-2007 09:07 PM

SWEET I like very much. Now to figure out how to remove todays posts and new posts from the nav bar to clean it up a bit more....

Mackenzie s 09-17-2007 11:57 PM

Glad you guys like it. I did it for myself and decided to share. Enjoy.

gobears20 09-21-2007 11:10 AM

Is there anything that I could add inside the code to allow only certain user groups to be able to access this feature? The reason why I ask is I have a lot of members and I don't want everybody using this, because it ties sql down.

Thanks so much and that is really neat!


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

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.01987 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_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