Page 1 of 1

Admin Panel Link Image???

PostPosted: Fri Oct 06, 2006 5:53 pm
Author: Drop-Forged
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???

Re: Admin Panel Link Image???

PostPosted: Mon Oct 09, 2006 9:57 am
Author: BMD
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

Re: Admin Panel Link Image???

PostPosted: Mon Oct 09, 2006 10:25 am
Author: Dragonsys
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