ACP Link in header

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
Post Reply
User avatar
tumba25
Supporter
Supporter
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

ACP Link in header

Post by tumba25 »

This post was originally posted by Kenny at 6 String MODs. We have made some minor adjustments.

Tired of having to scroll all the way down to the bottom of the page just to access the ACP?
Well here's a quick way to get the ACP link in you header - this places it on the right hand side of the navbar, but feel free to move it anywhere you wish.

OPEN: styles/prosilver/templates/overall_header.html
FIND:

Code: Select all

               <!-- IF U_RESTORE_PERMISSIONS --> &bull;
               <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a>
               <!-- ENDIF -->

AFTER ADD:

Code: Select all

<!-- IF U_ACP --> &bull; <strong><a href="{U_ACP}">Admin CP</a></strong><!-- ENDIF -->

Note that I've only documented this for prosilver and prosilver based styles, but it's pretty much the same idea for subSilver2 styles :)
And the reason I hard-coded the text in, was to save adding another var to language/en/common.php
{L_ACP} will work, but the text is too long IMO to place in the nav bar ;)
Post Reply