Log in

View Full Version : Simple question - modifying navbar


labocha
11-28-2006, 11:40 PM
I am a newbie and know nothing about java and php scripts. Just want to make a few simple modifications. How can I, for example, remove the FAQ from my menu bar an replace it with a link to one of the forums I created, so that it jmsps directly there ? A sinppet of code would be greatly appreciated providing a link to, say

myforum2->subforum3

What is this nav bar written in ? php or java script ? I was thinking about learning php, but the code for navbar does not look like php to me ... or does it ?

Kirk Y
11-29-2006, 02:38 AM
Depending on the type of style you're using this may be a variation:

Find this in your 'navbar' template -- could also be your header template.
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>

Replace it with this:
<td class="vbmenu_control"><a href="forumdisplay.php?f=X.php$session[sessionurl_q]">Cool Forum</a></td>

Replace the X with the forumid of whatever forum you'd like the link to take your users to.

The navbar is written in plain 'ol HTML. I believe the dropdown menus in the navbars use dynamic html (DHTML) as their backend.


If you're trying to make a dropdown menu, take a look at this tutorial: https://vborg.vbsupport.ru/showthread.php?t=122523