Display admin control panel link in user menu

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 814
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Display admin control panel link in user menu

Post by Steve »

Places the admin link normally located at the bottom of your forum in the user menu which is found at the top of your forum, its quite a handy snippet.

prosilver instructions
Open styles/prosilver/template/overall_header.html
find:

Code: Select all

<li class="icon-ucp">
					<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>
add before:

Code: Select all

<!-- IF U_ACP --><li class="icon-ucp"><a href="{U_ACP}">{L_ACP}</a></li><!-- ENDIF -->
Refresh the template in admin control panel for prosilver.
pic:
pa.PNG
subsilver2 instructions.
Open styles/subsilver2/template/overall_header.html
find:

Code: Select all

<!-- IF S_DISPLAY_MEMBERLIST -->&nbsp; &nbsp;<a href="{U_MEMBERLIST}"><img src="{T_THEME_PATH}/images/icon_mini_members.gif" width="12" height="13" alt="*" /> {L_MEMBERLIST}</a><!-- ENDIF -->
add after:

Code: Select all

<!-- IF U_ACP -->&nbsp; &nbsp;<a href="{U_ACP}"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /> {L_ACP}</a><!-- ENDIF -->
Refresh the template in admin control panel for subsilver2.
pic:
sa.PNG
NAPWR wrote: Nice, Stoker is Hot
download/file.php?id=2327&mode=view
KukY13
BBCoder III
BBCoder III
Posts: 96
Joined: 26 Jun 2010, 16:23
Contact:

Re: Display admin control panel link in user menu

Post by KukY13 »

Nice, but when you are at it, wouldn't you also move MCP up there?
Or place ACP next to MCP?
Image
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 814
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Display admin control panel link in user menu

Post by Steve »

MCP is located in the index_body.html and is only needed in index,viewforum and viewtopic pages we could put the MCP link there, but dont see no reason as we would have to use a script to hide it from other pages where its not needed ;)
NAPWR wrote: Nice, Stoker is Hot
download/file.php?id=2327&mode=view
Locked