Official Release XenFans.com - Extra Tabs

Discussion in 'XenFans Products' started by Floris, Sep 9, 2011.

  1. The community is closed, running in ARCHIVE mode
    Guest, you can only read public discussions. Registration is turned off.
  1. Floris

    Trusted Member
    I get page not found for /Promoters/ on your site.
  2. Floris

    Trusted Member
    If your route is Promoters make sure it's not set index, forums in the Route php file, but set to index, Promoters and matches the dev tab > route ..

    And then you could open the ExtraTabs/Listener.php file and at the position = line for the // FOUR th tab, before it, add: 'selected' => ($selectedTabId == 'Promoters'),
  3. Sebastian Bernal Forum Member

    sorry had admin only tab on

    http://mmazone.com.au/community/pages/Promoters/ is connected to promoters tab in the navbar, thanks
  4. Floris

    Trusted Member
    That's a node: Page, not a separate page. Which has it's own route for pages I think, and customizing xenforo itself will result in all /pages/ showing a Promoters.

    Perhaps you could consider using the xenfans 'extra page' plugin, which gives you an extra page, with a selected tab. You can rename the title to Promoters, and even set the route to /promoters/

    http://xenfans.com/threads/xenfans-com-extra-page-about.1406/
  5. Sebastian Bernal Forum Member

    Hi Floris,

    Looks good, Ill try later. Does this link to pages? Can we have more then one tab? Just wondering if you can make a highlighted tab on that mod, will it ever be possible for this mod? I just basically want to link pages to the navbar but have the tab highlighted when on the page.
  6. Floris

    Trusted Member
    No, the 'extra page' is specifically meant to use your own custom page, with your own custom template.
    That way the tab can stay selected.

    It's one tab.

    If you want to use node pages to get .com/pages/title/ to work and have /pages/ stay selected, that would be a different mod. I think there's one on xenforo.com
  7. Floris

    Trusted Member
    Since I had to make this for someone, I am going to consider including it in this plugin's future update:
    Style Chooser
  8. Andrea Marucci Premium Member

    Hi Floris, I've installed it and I love it. Just a question. How can I hide the XF Help menu so that I can recreate it using this addon? It's possible to do that?
  9. Floris

    Trusted Member
    Remove it from the navigation template.
  10. Andrea Marucci Premium Member

  11. principia Premium Member

    or add this to extra.css

    li.navTab.help{
    display: none;
    }
    Veer likes this.
  12. Andrea Marucci Premium Member

    Wow!!! This one's good so I don't have to modify any template... Thanks!!
  13. Floris

    Trusted Member
    Thanks principia, great tip.
  14. Medora Premium Member

    When I click on a tab it usually causes that tab to be highlighted. But when I use this add-on to create a new tab and I click that tab, the new tab brings me to the page I intended, but it is the Forum tab that remains highlighted. Is that normal behavior? Or did I make a mistake?

    Edit: Oh, I just noticed that a similar question was asked here http://xenforo.com/community/threads/product-xenfans-com-extra-tabs.19606/page-3#post-299863 The tab I made was for an existing forum I titled "Articles." I was not sure how this would correspond to a php file.

    Edit: I assume I should have made a distinction between a node and a page. If I am correct, this add-on would be more suitable if I am trying to make a node into a tab and having it highlight: http://xenforo.com/community/threads/nodes-as-tabs-with-tab-selection.23295/
  15. Floris

    Trusted Member
    That's normal behavior indeed.
  16. Medora Premium Member

    Turns out that Nodes as Tabs add-on was more along the lines of what I needed. Similar to Extra Tabs but allowed a novice like me to have a node turn into a highlight-able tab without dabbing in code.
  17. Floris

    Trusted Member
    Excellent. Yeah, this plugin is to give users the ability to quickly add a tab, without having to customize their styles, edit templates, figuring things out etc.

    What it doesn't do is be an all-in solution for every situation. I am glad Jake for example covered the node page part of it.