Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
megalocker's Avatar
megalocker : Newbie +
megalocker will become famous soon enough
offline Joined: Sep 2007 Posts: 18 Thanked: 4
  #1  
Thread Starter Unread 10-14-07
Admin & Mod CP links at the top of the page

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's Avatar
dj_slim : Member
dj_slim has a spectacular aura aboutdj_slim has a spectacular aura about
offline Joined: Sep 2007 Posts: 41 Thanked: 39
  #2  
Unread 10-18-07
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's Avatar
Galeras : 50+
Galeras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of lightGaleras is a glorious beacon of light
offline Joined: Sep 2007 Location: Promyshlennyi Vorkuta Posts: 164 Thanked: 47
  #3  
Unread 10-18-07
just add another </if> after the /div:


<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>
</if>
That last one was missing.
megalocker's Avatar
megalocker : Newbie +
megalocker will become famous soon enough
offline Joined: Sep 2007 Posts: 18 Thanked: 4
  #4  
Thread Starter Unread 10-19-07
Galeras, those damn /if are a pain....thanks....
mynamesbob's Avatar
mynamesbob : Member
mynamesbob is on a distinguished road
offline Joined: Nov 2007 Posts: 22 Thanked: 0
  #5  
Unread 11-26-07
it isnt showing up for me
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
top, page, mod, links, admin
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021