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

XF 1.3 Have ACP open in new tab

Discussion in 'XenForo Questions and Support' started by Chimpie, Aug 19, 2014.

  1. Chimpie

    Chimpie Well-Known Member

    Can anyone tell me where to edit the AdminCP link so that it opens in a new window?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Should be in the moderator_bar template, though I have to point out it's pretty easy to do this will a small change of behaviour:

    If you're using a three button mouse, middle click will open a new tab.

    On Windows, hold Ctrl + click to open a new tab. On Mac, hold Cmd + Click to open a new tab.

    On any browser, right click > Open in New Tab.
  3. Chimpie

    Chimpie Well-Known Member

    Yeah, I do that myself, but one of the other admins wants it tweaked, probably because of his smartphone or tablet or something.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    On a touch screen device, long click -> open in new tab.
    Chimpie and Chris D like this.
  5. zagorskey

    zagorskey Active Member

    If you really insist on editing the template, open moderator_bar, find the following portion of code "<a href="admin.php" class="acp adminLink">" and edit it like this:

    <a href="admin.php" class="acp adminLink" target="_blank">
    Floyd R Turbo, Chimpie and Chris D like this.
  6. Chimpie

    Chimpie Well-Known Member

    Already done, thanks though!
  7. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    Good tweak! This is something I plan to use on all my sites.
  8. Steve F

    Steve F Well-Known Member

    Add it as a template modification in the ACP and you won't have to edit every style :)
  9. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    ...if I knew how to do that...still learning!

Share This Page