The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to copy the navbar?
I want to copy my forum's navbar to another page off the site. How do I do this?
There is a lot of PHP embedded into it, which may make it hard. Is there an easy way to do this? Thanks in advance. |
#2
|
|||
|
|||
Is it a custom external page using Vbulletin templates? Either way, including global.php from the forum root will give you access to the $navbar variable which holds the navbar template code. But you should in all reality you should set the 'navbits' section and then rebuild it.
|
#3
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">How to create your own vBulletin-powered page!</a>
|
#4
|
|||
|
|||
No, it isn't an external page using vB templates. It is a wiki that is a sub-set of my site which uses vB. The wiki is in the /wiki directory, while vB is in the /forum directory. I want to include my navbar on the wiki, so I want to know how to copy it over.
Quote:
Thanks! |
#5
|
|||
|
|||
How do I go about that? Copy global.php into /wiki, and then copy the navbar code over? What do you mean set the 'navbits' section and rebuild? If you could give me more details, that would be greatly appreciated.
|
#6
|
|||
|
|||
Any help with this would be great. I'd like to get this squared away ASAP so I can move onto the next project.
Thanks! |
#7
|
||||
|
||||
in the php of the other pages, you would chdir to the vb directory and then include global.php:
PHP Code:
|
#8
|
|||
|
|||
I don't quite understand. Do I simply copy all my navbar code, paste it into the /wiki page, and include the PHP code you pasted in it somewhere? Why chdir to the vb forums?
|
#9
|
||||
|
||||
No, I thought you wanted to include that actual template and if you do, you need to include global.php in your pages and I was telling you the code to include global.php in the pages.
I am unfamiliar with whatever wiki you are trying to install, so I can't really comment on whether that is the right way to go about it or if it's better to just copy the navbar html itself. |
#10
|
|||
|
|||
I have a Wiki installed as a sub-site of my forum. I want to create header so it looks very similar to the header of my forum, so users can navigate to the wiki without noticing too much of a difference. I have most of it complete, except I want the navbar displayed. It can be a custom navbar (HTML w/ links) that I will need to edit each time I add a link to the other navbar, but I simply want it to look the same. The navbar template has quite a bit of PHP (like if else statements) which would affect how the navbar looks. Hence, I am wondering if simply including the template would be easier. The navbar on my forum is actually built into the header, I can post the code if you can help me figure out what I need to do to make this work.
How would I go about this? Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|