Hello, as the tile says someone can help me to add more lnks on navbar_tab?
Thanks
This is a discussion on [vb4] How to add url's on navbar_tab? within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hello, as the tile says someone can help me to add more lnks on navbar_tab? Thanks...
Hello, as the tile says someone can help me to add more lnks on navbar_tab?
Thanks
To add your own via a Plugin (replace *title* with your Tab's title):
AdminCP - (Plugins & Products) > Add New Plugin:
Hook Location - process_templates_complete
Title - *title* Tab for Navbar
Execution Order - 5
PHP Code:$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == '*title*') //MUST BE UNIQUE! Otherwise you'll have the bottom bar and highlights getting mixed up
{
$vbulletin->options['selectednavtab']='*title*'; //MUST BE UNIQUE! Otherwise you'll have the bottom bar and highlights getting mixed up
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="">Link 1</a></li>
<li><a href="">Link 2</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Menu 1</a>
<ul class="popupbody popuphover">
<li><a href="sublink1.php">MenuLink 1</a></li>
<li><a href="sublink2.php">MenuLink 2</a></li>
</ul>
</li>
<li><a href="">Link 3</a></li>
</ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="">*title*</a>'.$tablinks.'</li>' ; //You could use navtab_start or navtab_middle for the hook, depending on where you want it to show
Ace Shattock / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
My Personal Sites: New Zealand Forum | vBulletin Modifications and Styles | New Zealand Food | New Zealand Android OS Talk | vBulletin Hosting
Hello Ace, thank for your help, i've tried to use it but the button doesn't work properly cause it not remain selected once choosed.
You can use this plugin:
vBH-Add new tabs - vBulletin.org Forum
Courtesy of Elmer![]()
Is it possible to use template conditionals like:
<vb:if condition="$show['member']">Show this to members only</vb:if>
around some of the links created by this plugin? I have not been able to figure out how to do it. Thanks for the help.
Bruce
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)
Hello Bruce,
In thread linked above there are some examples on how to assign permissions for each tab. An example tab would be:
AdminCP|/admincp/=>self;6 5 7
Tab name|route=>target;usergroups that will be able to see the tab
Andrés Durán / Crawlability Inc.
ˇvBSEO 3.6.0 GOLD Liberado!
Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!
Síguenos en: Facebook | Síguenos en: Twitter
Hello Andres, thank you for your answer, but I am not using the vbulletin.org hack. I coded a plugin like in the example at the top of this thread by Ace.
My question is how, in the plugin code in that post can I assign permissions to a link (not a complete tab) but a link that appears in the floatcontainer? So sorry if I was not clear.
Bruce
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)
I see
You can "wrap" a link using a template conditional:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7)"><li><a href="sublink1.php">MenuLink 1</a></li></vb:if>
Andrés Durán / Crawlability Inc.
ˇvBSEO 3.6.0 GOLD Liberado!
Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!
Síguenos en: Facebook | Síguenos en: Twitter
Oh, now I see what I was doing wrong. Thanks so much, Andrés. I got it now!
Bruce
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)
You are welcome!.
Andrés Durán / Crawlability Inc.
ˇvBSEO 3.6.0 GOLD Liberado!
Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!
Síguenos en: Facebook | Síguenos en: Twitter
Well, I guess I don't see... :( I thought I understood, but when I do this:
I should only see that if I am logged out of the forum. For some reason it still displays when I am logged into the forum. Do I need to change something else?Code:<vb:if condition="is_member_of($bbuserinfo, 1)"><li><a href="register.php">Register!</a></li></vb:if>
thanks
Bruce
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)
Try instead:
<vb:if condition="$show['guest']"><li><a href="register.php">Register!</a></li></vb:if>
Andrés Durán / Crawlability Inc.
ˇvBSEO 3.6.0 GOLD Liberado!
Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!
Síguenos en: Facebook | Síguenos en: Twitter
That solved it! Thanks so much!
Bruce
Edit: Nope, I spoke too soon....
RVO's OrchidTalk Orchid Forums - "Bringing People Together"
We could learn a lot from crayons: some are sharp, some are pretty, some are dull, some have weird names, and all are different colors....but they all exist very nicely in the same box. ...Hmmm? ;)