PDA

View Full Version : Mini Mods - Advanced Search Box in Navbar


Mackenzie s
05-17-2007, 10:00 PM
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:
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>

Add below:
</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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=147519)! 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!