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

XF 1.4 Accessing registration page when already logged in

Discussion in 'XenForo Questions and Support' started by MarkMark, Jun 9, 2015.

  1. MarkMark

    MarkMark Member

    I've got a "register" link elsewhere on my site that links directly to the user registration form. If a user is already logged in and clicks on it, they get pushed back to the page they came from.

    Understand this behaviour but I'd like to add a javascript alert saying you are already logged in or perhaps just redirect to the forum index, but not sure where I need to insert my code. Can anyone help?
  2. Amaury

    Amaury Well-Known Member

    Why not just add a conditional so the link only shows to those who are logged out?
  3. MarkMark

    MarkMark Member

    The links are on pages not within the xenforo platform, essentially static html pages.

Share This Page