The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
move code from navbar to header
hi all,
I have tried to move the following code from navbar to header; Code: <div id="breadcrumb" class="breadcrumb"> <ul class="floatcontainer"> <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li> {vb:raw navbits.breadcrumb} {vb:raw navbits.lastelement} </ul> </div> When the code is executed from navbar my Breadcrumb is showing in front end as expected. When i move the code from navbar to the header section it will just show the "house" before the breadcrumblinks and no links is showing. Is it possible to move the code, and if so, what am i doing wrong? Best regards, saad |
#2
|
|||
|
|||
It's not working because you would need to register the navbits variable to the header template. You could try making a plugin with this code:
PHP Code:
but there's also the issue of when the header template is rendered. Normally it wouldn't happen until another template was rendered, which I think means that this method could work. But I think it's also possible that a plugin could cause a template to be rendered earlier in which case this wouldn't work. |
#3
|
|||
|
|||
hi kh99,
thanks for your reply i use new template not the default template i try your code and not working please continue help me regards helmica |
#4
|
|||
|
|||
You can move the breadcrumb anywhere on the page you want without editing the header or navbar templates.
Go to ACP->Styles & Templates->Style Manager. For your template, select Edit Templates. Then go to CSS Templates and select vbulletin-chrome.css Locate this code in the template.. Code:
/*************************************************/ /* BREADCRUMB */ .breadcrumb > ul { background:transparent url({vb:stylevar imgdir_misc}/navbit-home.png) {vb:stylevar left} top no-repeat; border:none; } Code:
/*************************************************/ /* BREADCRUMB */ .breadcrumb > ul { background:transparent url({vb:stylevar imgdir_misc}/navbit-home.png) {vb:stylevar left} top no-repeat; border:none; position:absolute; top:60px; left:450px; } You can adjust it's position by changing the top and left values to put it anywhere on the page you want. EDIT: For some custom templates, you may need to find the breadcrumb in additional.css. |
#5
|
|||
|
|||
hi nhawk,
thanks for you reply i replace the code with code that you provide and nothing occur please continue help me thanks in advance for your help regards helmica |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|