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

XF 1.2 Links with no Permission Don't Display

Discussion in 'Troubleshooting and Problems' started by jmurrayhead, Jan 20, 2014.

  1. jmurrayhead

    jmurrayhead Well-Known Member

    Basically, I have a custom navtab link to an area where you must be logged in to actually access it, but if the person is not logged in, the tab won't even display. Is there any way to prevent that from happening?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    How is the tab being added? Via an add-on's code or was it added manually?
     
  3. jmurrayhead

    jmurrayhead Well-Known Member

    I added it manually to the template.
    Code:
    <li class="navTab PopupClosed"><a href="{xen:link 'the/route'}" class="navLink">Text</a></li>
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    There should be no reason that a manually added link should remove itself if there is no permission to view the link. Are you sure there are no conditionals around the link within the navigation bar?

    Do you have any add-ons that are related to the navigation bar?
     
  5. jmurrayhead

    jmurrayhead Well-Known Member

    No addons or conditionals were added in regards to the navigation bar. Does it help that it's a link to the create-thread route of a particular forum?
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    The software should still generate the link properly, and still display it. It shouldn't be removing the code altogether without a conditional. If you disable add-ons, does the tab appear? Does it remove itself on an unedited default style?
     
  7. jmurrayhead

    jmurrayhead Well-Known Member

    son of a...it was a conditional in another template, not the particular one I was looking at. :D
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Glad you figured out where the conditional was. :)
     
    jmurrayhead likes this.

Share This Page