vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Navbar problem after setting display:None (https://vborg.vbsupport.ru/showthread.php?t=161531)

jameshotmovies 10-30-2007 04:49 PM

Navbar problem after setting display:None
 
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):

Code:

<!-- 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.


All times are GMT. The time now is 07:14 AM.

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.01081 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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