Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
Like Tree2Likes

[vb4] How to add url's on navbar_tab?

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

  1. #1
    Senior Member
    Real Name
    Alex
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    508
    Liked
    0 times

    [vb4] How to add url's on navbar_tab?

    Hello, as the tile says someone can help me to add more lnks on navbar_tab?

    Thanks

  2. #2
    vBSEO Staff Ace Shattock's Avatar
    Real Name
    Ace Shattock
    Join Date
    Jul 2005
    Location
    Auckland, New Zealand, New Zealand
    Posts
    4,012
    Liked
    13 times
    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 

  3. #3
    Senior Member
    Real Name
    Alex
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    508
    Liked
    0 times
    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.

  4. #4
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    You can use this plugin:

    vBH-Add new tabs - vBulletin.org Forum

    Courtesy of Elmer

  5. #5
    Senior Member
    Real Name
    Alex
    Join Date
    Mar 2007
    Location
    Italy
    Posts
    508
    Liked
    0 times
    Quote Originally Posted by Chuta View Post
    You can use this plugin:

    vBH-Add new tabs - vBulletin.org Forum

    Courtesy of Elmer
    Thanks Chuta, also this mod have not the function selected.

  6. #6
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    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? ;)

  7. #7
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    Can anyone offer any help with my question?

    Quote Originally Posted by Brutal_Dreamer View Post
    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
    Sorry to bump my own question, but it has been a couple of days and I am still stuck with this. 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? ;)

  8. #8
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    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


  9. #9
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    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? ;)

  10. #10
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    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


  11. #11
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    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? ;)

  12. #12
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    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


  13. #13
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    Well, I guess I don't see... :( I thought I understood, but when I do this:

    Code:
     <vb:if condition="is_member_of($bbuserinfo, 1)"><li><a href="register.php">Register!</a></li></vb:if>
    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?

    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? ;)

  14. #14
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    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


  15. #15
    Senior Member Brutal_Dreamer's Avatar
    Real Name
    Bruce
    Join Date
    Jan 2007
    Location
    Arkansas
    Posts
    136
    Liked
    0 times
    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? ;)

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Redirect old phpBB URL's to new vbseo URL's
    By Majora in forum URL Rewrite Settings
    Replies: 2
    Last Post: 09-14-2009, 04:47 AM
  2. Forum URL's and Blog URL's
    By Stormraven in forum URL Rewrite Settings
    Replies: 3
    Last Post: 06-22-2009, 10:21 PM
  3. Rewrite new vB tag format URL's to ZTT style URL's.
    By FleaBag in forum Custom Rewrite Rules
    Replies: 9
    Last Post: 11-13-2008, 02:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •