Admin & Mod CP links at the top of the page

megalocker

New Member
vB Version: 3.6.x Rating: (2 votes - 5.00 average)
Released: 04 Oct 2007 Last Update: Never Installs: 6
Supported Template changes

This is a super-simple template mod to add Admin CP and Mod CP links to the top right corner of the page. The links are only shown if the user has the appropriate mod or admin permissions.

I created this for myself, because it's a lot more convenient than scrolling to the bottom for the admin/mod cp links or typing in the url. It should work for most styles, and since the links are small they are fairly non-intrusive. If you need to change the link or background colors so the links show up with your style, just ask here.



To install, simply paste the following code at the bottom of your footer template.

Code:

<if condition="$show['admincplink'] || $show['modcplink']">
<div style="position:absolute;top:2px;right:8px;font-size:x-small;">
<if condition="$show['admincplink']">
<a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a>
</if>
<if condition="$show['modcplink']">
<a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a>
</if>
</div>
 

dj_slim

New Member
Code:

<if condition="$show['admincplink'] || $show['modcplink']">
<div style="position:absolute;top:2px;right:8px;font-size:x-small;">
<if condition="$show['admincplink']">
<a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a>
</if>
<if condition="$show['modcplink']">
<a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a>
</if>
</div>

error in this code mate
 

Galeras

New Member
just add another </if> after the /div:


Code:
<[b][color=Red]if [/color][/b]condition="$show['admincplink'] || $show['modcplink']">
<div style="position:absolute;top:2px;right:8px;font-size:x-small;">
<[b][color=Magenta]if [/color][/b]condition="$show['admincplink']">
<a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a>
<[b][color=#ff00ff]/if[/color][/b]>
<[b][color=Cyan]if [/color][/b]condition="$show['modcplink']">
<a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a>
<[b][color=#00ffff]/if[/color][/b]>
</div>
<[color=Red][b]/if[/b][/color]>

That last one was missing.
 
Top