PDA

View Full Version : Navbar problem after setting display:None


jameshotmovies
10-30-2007, 04:49 PM
Hi all,

I need to selectively disable some Navbar items, which
I do by setting CSS variable display to none. I've found
however that vBulletin doesn't handle this well, because
vbmenu popups then often appear in the wrong position.

Any idea how this can be fixed? I have a temporary
fix in place but I wish there were something better.

Thanks.

Freesteyelz
10-31-2007, 04:38 AM
Try add in red (example of FAQ):


<!-- DISABLED
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
-->



For myself there are codes I want to leave in the templates (for future use or reference) that are disabled and the above is what I do. The red lines must wrap the entire section of code you want to disable. For the example FAQ there isn't a <if> condition tag; but if there is one make sure you wrap the line around the open and close tags.

Awjvail
10-31-2007, 04:41 AM
It's a lot less complicated to just comment it out, like Freesteylez said.

jameshotmovies
12-20-2007, 03:56 PM
Unfortunately I need to disable them depending on the context, i.e. using Javascript.

Commenting them out won't do.

calorie
12-20-2007, 04:13 PM
Try using template conditionals to show selected navbar links under certain conditions.