1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit to the amount of new tabs that can be added?

Discussion in 'XenForo Development Discussions' started by DaveL, Aug 19, 2011.

  1. DaveL

    DaveL Well-Known Member


    Is there a limit to the amount of tabs that can be added? I currently have three created, however only two of them show. If I disable one of their Code Event Listeners then the other one will show up.

    If there is a limit, am I able to remove this at all as I really need to be able to add some more tabs.

    Any help greatly appreciated.
  2. James

    James Well-Known Member

    There's no limit as far as I know. Maybe you have two tabs with the same IDs or something? Can you post the code for the 3 tabs so we can check them?
    DaveL likes this.
  3. DaveL

    DaveL Well-Known Member

    Picture 1 shows all Code Listeners Active
    Picture 2 shows my navbar with all Code Listeners Active (Only showing Home & Sponsors)
    Picture 3 shows Sponsors being deactivated from the Code Listeners
    Picture 4 shows On Air now showing up on the navbar
  4. DaveL

    DaveL Well-Known Member

    Wow that was quick James!

    Youve hit the nail on the head! Ive just gone back over and checked the code and I left
    with OnAir -So they were conflicting! All working now :)

    I think thats a sign not to start doing stuff when you come home from work at this crazy hour! Off to bed I think!
  5. Dean

    Dean Well-Known Member

    After you are done adding tabs you want you may want to check with a test user account, which has a long name, via a mobile device. The search box near the username.

    The formatting may not be desirable.
    DaveL likes this.
  6. DaveL

    DaveL Well-Known Member

    Thanks Dean. Not too many more tabs to add, but will definatly check that out.
  7. James

    James Well-Known Member

    They look like they're all just simple tabs that you've created for your own purposes, so why not put them in one listener to avoid any conflicts?
    $extraTabs['Sponsors'] = array(
    // code

    $extraTabs['OnAir'] = array(
    // code
    This way you'll be able to see all the IDs, and there's less code event listeners :)

Share This Page