Admin Panel Link Image???

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Admin Panel Link Image???

PostAuthor: Drop-Forged » Fri Oct 06, 2006 5:53 pm

Hello,

Im working on a new template that Ive designed for the awaited release of 141.

All is looking good, but Ive made images for the top navigation, and was wondering if there is a way to use an admin panel link image that only a logged in admin can see???
Last edited by Drop-Forged on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://www.christiansoldiers.com/Sig/sig.png[/img][/url]
[url=http]Free IntegraMod 141 Themes at webhutch.net[/url]

Drop-Forged
Integra Member
Integra Member
 
Posts: 167
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 8:07 pm
Cash on hand: 0.00

Re: Admin Panel Link Image???

PostAuthor: BMD » Mon Oct 09, 2006 9:57 am

Drop

Yes it can.... I've had my site set up with Image Icons for the top bar from the get go.

I also have my PM Icons color coded for "New PM" has green text... "Un-Read PM" Has Red Text... and "Check PMs" and "No PMs" are in blue text...

lets users see at a glance their PM inbox status.

The icons show or don't just like the text... set in QBar.

Take a look.
:la:

Cheers
Doug
Last edited by BMD on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

BMD
Members
Members
 
Posts: 84
Likes: 0 post
Liked in: 0 post
Joined: Thu Aug 24, 2006 5:12 am
Cash on hand: 0.00

Re: Admin Panel Link Image???

PostAuthor: Dragonsys » Mon Oct 09, 2006 10:25 am

Yes, you can change the Admin Link to an Image. but the link is not generated by the Template. You would have to edit the following:

OPEN includes/functions_jr_admin.php
FIND:
Code: Select all
function jr_admin_make_admin_link(){     global $lang, $userdata, $phpEx;         $jr_admin_userdata = jr_admin_get_user_info($userdata['user_id']);         if (!empty($jr_admin_userdata['user_jr_admin']) || $userdata['user_level'] == ADMIN)     {         return '<a>' . $lang['Admin_panel'] . '</a><br><br>';     }     else     {         return '';     }}


INLINE FIND]return '<a>' . $lang['Admin_panel'] . '</a><br><br>';[/code]

REPLACE WITH:
Code: Select all
return '<a><img></a><br><br>';


of course replace
Code: Select all
{your_image_and_path}
with the actual path and filename of your image
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX


Return to General Discussion

Who is online

Registered users: App360MonitorBot, Bing [Bot]