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

XF 1.1 Best option for adding navbar tabs?

Discussion in 'XenForo Questions and Support' started by RobParker, Dec 4, 2011.

  1. RobParker

    RobParker Well-Known Member

    I wondered what people's opinion was on the best way to add extra tabs.

    Jake's add-on looks great but the fact that it can add up to 4 extra queries per page seems like a lot. The other option of modifying the template and hard-coding things in is an option but not quite as nice.

    I assume at some stage in the future (1.2?) the lack of any navbar management will be addressed but until then I wondered what people were doing and why?
     
  2. adgsteve

    adgsteve Member

  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    1-3 extra queries per page.

    You can enable debug mode to see load stats on each page. That will allow you to see the difference. I just did this on my forum and found a very small difference in load time and memory:

    Code:
    		w/o addon	w/ addon
    load time:	0.0750s		0.0800s
    memory:		8.2MB		8.5MB
    
    It's not enough to worry about.
     
    RobParker likes this.
  4. Floris

    Floris Guest

    For me, it was best to just create an addon that added the tabs and dropdowns as I wanted them for xenfans, I've shared this addon with the rest here;

    http://xenforo.com/community/threads/product-xenfans-com-extra-tabs.19606/


    With the plugin installed
    Timing: 0.0703 seconds Memory: 3.747 MB DB Queries: 8
    Without the plugin installed
    Timing: 0.0693 seconds Memory: 3.729 MB DB Queries: 8
    ^ Both on the same forum index page.
     
    RobParker likes this.

Share This Page