9 $member_srl = $matches[3];
15 $orig_text = preg_replace(
'/' . preg_quote($matches[5],
'/') .
'<\/' . $matches[6] .
'>$/',
'', $matches[0]);
19 if($oMemberModel->getGroupImageMark($member_srl))
21 return $orig_text . $matches[5] .
'</' . $matches[6] .
'>';
24 if(!isset(
$GLOBALS[
'_pointLevelIcon'][$member_srl]))
39 $oPointModel = &
$GLOBALS[
'_pointModel'];
42 if(!$oPointModel->isExistsPoint($member_srl))
47 $point = $oPointModel->getPoint($member_srl);
50 $level = $oPointModel->getLevel($point, $config->level_step);
54 $level_icon = sprintf(
'%smodules/point/icons/%s/%d.gif',
Context::getRequestUri(), $config->level_icon, $level);
58 if($level < $config->max_level)
60 $next_point = $config->level_step[$level + 1];
61 $present_point = $config->level_step[$level];
64 $per = (int) (($point - $present_point) / ($next_point - $present_point) * 100);
69 $title = sprintf(
'%s:%s%s%s, %s:%s/%s',
Context::getLang(
'point'), $point, $config->point_name, $per ?
' (' . $per .
')' :
'',
Context::getLang(
'level'), $level, $config->max_level);
72 $GLOBALS[
'_pointLevelIcon'][$member_srl] = sprintf(
'<img src="%s" alt="%s" title="%s" class="xe_point_level_icon" style="vertical-align:middle;margin-right:3px;" />', $level_icon, $alt, $title);
74 $text =
$GLOBALS[
'_pointLevelIcon'][$member_srl];
76 return $orig_text . $text . $matches[5] .
'</' . $matches[6] .
'>';
pointLevelIconTrans($matches)
Function to change point icon.
if(file_exists(_XE_PATH_. 'config/config.user.inc.php')) if(!defined('__DEBUG__')) if(!defined('__DEBUG_OUTPUT__')) if(!defined('__DEBUG_PROTECT__')) if(!defined('__DEBUG_PROTECT_IP__')) if(!defined('__DEBUG_DB_OUTPUT__')) if(!defined('__LOG_SLOW_QUERY__')) if(!defined('__LOG_SLOW_TRIGGER__')) if(!defined('__LOG_SLOW_ADDON__')) if(!defined('__LOG_SLOW_WIDGET__')) if(!defined('__DEBUG_QUERY__')) if(!defined('__OB_GZHANDLER_ENABLE__')) if(!defined('__ENABLE_PHPUNIT_TEST__')) if(!defined('__PROXY_SERVER__')) if(!defined('__ERROR_LOG__')) if(!defined('__DISABLE_DEFAULT_CSS__')) if(!defined('__AUTO_OPCACHE_INVALIDATE__')) if((__DEBUG_OUTPUT__==2)&&version_compare(PHP_VERSION, '6.0.0')===-1) if(version_compare(PHP_VERSION, '5.3.0') >=0) $GLOBALS['__xe_autoload_file_map']
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)