class images in userdetails

Started by DarkWarrior2, January 04, 2012, 02:14:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DarkWarrior2

yes did the trick  many thax

[attachment deleted by admin]

Mindless

So you havint looked to see that only get_user_class_name is in use on userdetails, functions provided so you can make simple edits thats up to.

Code (php) Select
$HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_class']}</td><td align='left'>" . get_user_class_name($user["class"]) . "</td></tr>\n";

To

Code (php) Select
$HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_class']}</td><td align='left'>" . get_user_class_name($user["class"]) . "&nbsp;&nbsp;<img src='" . get_user_class_image($user["class"]) . "' alt='".get_user_class_name($user["class"])."' title='".get_user_class_name($user["class"])."' /></td></tr>\n";

That much should be pretty obvious eh : )

DarkWarrior2

 config


$class_images = array(
        UC_USER                 => $INSTALLER09['pic_base_url'].'class/user.gif',
        UC_POWER_USER           => $INSTALLER09['pic_base_url'].'class/power.gif',
        UC_VIP                  => $INSTALLER09['pic_base_url'].'class/vip.gif',
        UC_UPLOADER             => $INSTALLER09['pic_base_url'].'class/uploader.gif',
        UC_MODERATOR            => $INSTALLER09['pic_base_url'].'class/moderator.gif',
        UC_ADMINISTRATOR        => $INSTALLER09['pic_base_url'].'class/administrator.gif',
        UC_SYSOP                => $INSTALLER09['pic_base_url'].'class/sysop.gif');



would someone tell me where i can set the above class images in userdetails