mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
new image pack system user_icons images updated
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
//EXAMPLE: {EXTENDED=user_gender.value.5} will show the value of the extended field user_gender for user #5
|
//EXAMPLE: {EXTENDED=user_gender.value.5} will show the value of the extended field user_gender for user #5
|
||||||
include(e_LANGUAGEDIR.e_LANGUAGE."/lan_user_extended.php");
|
include(e_LANGUAGEDIR.e_LANGUAGE."/lan_user_extended.php");
|
||||||
$parms = explode(".", $parm);
|
$parms = explode(".", $parm);
|
||||||
global $currentUser, $sql, $tp, $loop_uid, $e107;
|
global $currentUser, $sql, $tp, $loop_uid, $e107, $imode;
|
||||||
if(isset($loop_uid) && intval($loop_uid) == 0) { return ""; }
|
if(isset($loop_uid) && intval($loop_uid) == 0) { return ""; }
|
||||||
$ueStruct = getcachedvars("user_extended_struct");
|
$ueStruct = getcachedvars("user_extended_struct");
|
||||||
if(!$ueStruct)
|
if(!$ueStruct)
|
||||||
@@ -64,9 +64,9 @@ if ($parms[1] == 'icon')
|
|||||||
{
|
{
|
||||||
return constant(strtoupper($parms[0])."_ICON");
|
return constant(strtoupper($parms[0])."_ICON");
|
||||||
}
|
}
|
||||||
elseif(file_exists(e_IMAGE."user_icons/{$parms[0]}.png"))
|
elseif(file_exists(e_IMAGE."packs/".$imode."/user_icons/{$parms[0]}.png"))
|
||||||
{
|
{
|
||||||
return "<img src='".e_IMAGE."user_icons/{$parms[0]}.png' style='width:16px; height:16px' alt='' />";
|
return "<img src='".e_IMAGE."packs/".$imode."/user_icons/{$parms[0]}.png' style='width:16px; height:16px' alt='' />";
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user