vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How do I move the navbits? (https://vborg.vbsupport.ru/showthread.php?t=234778)

metalguy639 02-15-2010 08:01 AM

You might be able to call the $navbits code in your header. I do not remember if I've tried that yet or not. Its possible that might work. Usually in most cases code works no matter where you put it but in the header, footer & navbar for some reason. There are other codes that cannot be moved either without some headaches like the Who's Online box. So its basically a trail and error sort of thing.

pein87 02-15-2010 08:25 AM

I tried adding the $navbar variable to the header template and so far so good next I'm going to test if I can remove the $navbar variable from forumhome, forumdisplay etc... to see if it works that way. Its such a huge work around for such a small code vbulletin needs to make the template system more flexible. Thanks for your help mate.

metalguy639 02-15-2010 03:03 PM

No prob, hope it works.

Marco van Herwaarden 02-16-2010 12:27 PM

Your problem might be due to the fact that not all data that is needed for the navbar is available when the header is put out. The easiest solution would be to not move it to the header.

BLykMik 02-18-2010 06:23 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1983723)
Your problem might be due to the fact that not all data that is needed for the navbar is available when the header is put out. The easiest solution would be to not move it to the header.

Could you hide it (visually) and then place a copy of it wherever you want in the style?

Marco van Herwaarden 02-18-2010 12:44 PM

You can't as it is dynamic.

metalguy639 02-18-2010 09:19 PM

Quote:

Originally Posted by BLykMik (Post 1985332)
Could you hide it (visually) and then place a copy of it wherever you want in the style?

That may be technically something you can do I'm not sure. you would need to use an if conditional for the usergroups and then define which usergroups see the navbar in that template. But again you would be edited quite a few templates to do that. I have not tested it but it may look something like this:

Code:

<if condition="is_member_of($vbulletin->userinfo, 5)">$navbar</if>
Change the red number to the usergroup id number you want to see the navbar.

Like I said I have not tested it and there's a good bet that it may not work. Be sure to back up your template first if you have custom coding already in it.


All times are GMT. The time now is 01:41 PM.

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.01192 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete