View Full Version : moving a navbar link
Brandon Sheley
03-28-2006, 04:25 AM
just a quick question, i don't fully understand the drop down parts of the navbar..
I'd like to simply move "new post" to above or below "todays post" in the quick links drop down..
I know some of u will think this is to easy, and I'm not to bad on the vb as a whole, but I never understood this one part, where you place code in 2 spots :(
thank you
-Brandon
Krofh
03-28-2006, 04:18 PM
The code for the dropdown box is towards the end of the navbar template, where there is:
<!-- NAVBAR POPUP MENUS --> Do you know enough HTML to figure out how to add another link in there?
Freesteyelz
03-28-2006, 07:23 PM
To elaborate further on what Krofh has said, in your navbar template find and remove:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
Then search for:
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
And replace it with:
<if condition="$vboptions['enablesearches'] AND $show['member']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td></tr>
<else />
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td></tr></if>
Now the "New Posts" will show above "Mark Forums Read". The "New Post" will also replace "Today's Posts" when users are logged in. :)
Brandon Sheley
03-29-2006, 12:55 AM
excellent,,
thank you very much for the detailed edit.
if I can find the rep on this site, your getting a click. :p
Freesteyelz
03-29-2006, 01:14 AM
Hahaa. Glad it worked out. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.