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

beta2 issue w/ style

Discussion in 'XenForo Questions and Support' started by Apokalupsis, Oct 21, 2010.

  1. Apokalupsis

    Apokalupsis Active Member

    [[[ ISSUE RESOLVED. SEE THIS POST: Post #7 ]]]

    I created a custom style for my dev site. Worked fine in beta1. Upgraded to beta 2 and the nav bar appears twice. I'm not sure how to fix it.

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Did you make any template edits in Beta 1?
  3. Apokalupsis

    Apokalupsis Active Member

    To create the custom style? Yes I did. I just cannot recall where those changes were. I'm brand new to styling (have never done so on any forum platform)...so it takes me a lot longer to create as it's a learn and go process and a lot of the time, I'm just tinkering/refreshing until I like the change. I know that the changed templates are highlighted in red (navigation.css and header.css were changed)...but I'm not entirely sure where those changes are or how they compare to the originals and looking at both templates...there doesn't seem to be anything that stands out that would cause this error.
  4. dutchbb

    dutchbb Well-Known Member

    In the ACP go to: Appearance > Templates > Outdated Templates.

    It'll show you the templates that are updated by XenForo since beta 1 and these need to be reverted/updated again. Of course before reverting, make a backup of the template first. You can then take over any changes you made from the old to the new template.
  5. Apokalupsis

    Apokalupsis Active Member

    I've reverted the outdated templates (it was just xenforo.css) in that style...but no change. Still shows 2 navbars.
  6. Apokalupsis

    Apokalupsis Active Member

    Found it. The issue was the PAGE_CONTAINER template.

    Is there any way to compare the edited template w/ the unedited to see what change(s) specifically caused this to happen? Either internally through XF or externally through another app?
  7. Dismal Shadow

    Dismal Shadow Active Member

    I had this morning and did not think it was a bug but a template edit I did with the add-on here (cannot recall) so there was no way to restore the default style and had to export the style from my local and upload on live. :rolleyes:
  8. Apokalupsis

    Apokalupsis Active Member

    OK....here's the issue for those having similar...

    1) The PAGE_CONTENT template needs to be updated. There are a couple mods from beta1 that required a couple edits in the template so when you revert this template, you will have to go back and modify this template.

    And because the template was modified, it didn't get updated in the upgrade, thus, using the old code which caused the double nav bar.

    The new PAGE_CONTENT template uses:

    <xen:include template="header" />
    in line 110.

    The old PAGE_CONTENT template used:

        <div id="header">
            <xen:include template="header" />
            <xen:include template="navigation" />
            <xen:if is="{$canSearch}"><xen:include template="search_bar" /></xen:if>
    ...which is the culprit of the double-navbar.

    2) I found an online text-compare site: http://text-compare.com/ that came in handy.

    I'm sure there are other and better options...but it seemed to do the job.
  9. fattony69

    fattony69 Well-Known Member

    Is this a cache issue? I've had issues with that on Wordpress.
  10. Apokalupsis

    Apokalupsis Active Member

    It's a PAGE_CONTENT template difference between beta1 and beta2. See my above edited post.
  11. Brogan

    Brogan XenForo Moderator Staff Member

    For those that overlooked it in the announcement, it was specifically mentioned there:

    "The old 'header' template has been renamed 'logo_block', and has a <div id="logoBlock" /> wrapped around its contents.

    There is a new 'header' template, which is included by the 'PAGE_CONTAINER' template, and includes 'logo_block', 'navigation' and 'search_bar'."

  12. Carlos

    Carlos Well-Known Member

    I like the xenforo upgrade process, it completely closes off the entire forum....even the ACP. GOOD JOB whoever thought of that. Smart move.
    wwwicked likes this.
  13. ArnyVee

    ArnyVee Well-Known Member

    For some reason I'm not getting this to work. So, I've got this in my PAGE_CONTAINER template....

    What do I do with it to get it working correctly?
  14. ArnyVee

    ArnyVee Well-Known Member

    Got it :)

    I'm assuming this is right because it seems to show correctly now. Change the "header" after the xen:include to "logo_block" and that's it. :D
  15. Apokalupsis

    Apokalupsis Active Member

    There were other changes in that template due to beta2 though. That particular code is replaced with other code. So if you merely changed it, you are missing the new code as that part you changed, is not in the new b2 template at all.
  16. ArnyVee

    ArnyVee Well-Known Member

    Doh! lol....I had my co-admin do the upgrading and I stepped in now to try and fix it. I'll coordinate with him in the morning to see what he did. :)
  17. lazer

    lazer Well-Known Member

    I have the same issue and unfortunately this thread doesn't make much sense to me. Can someone please explain exactly what to do to remove the duplicate nav bar?
  18. dutchbb

    dutchbb Well-Known Member

    Find the "PAGE_CONTAINER" template and revert it. That should solve the issue.

    PS: remember that any changes you made in beta 1 will be lost.
  19. lazer

    lazer Well-Known Member

    Cheers dutchbb

    When I click on the red "x" next to that template it asks me if I want to delete it, not revert it...is that right?
  20. dutchbb

    dutchbb Well-Known Member

    Yes that's how it works :)
    lazer likes this.

Share This Page