Компоненты — Форум — Звания на форуме (иконка звездочки)
Там и пишете за сколько сообщений присваивать звания)
/components/forum/includes/forumcore.php
в функции forumUserRank
был запрос такой:
$rights = dbGetFields('cms_user_groups g, cms_users u', "u.group_id = g.id AND u.id = $uid", 'g.id, g.access as access');
$rights = dbGetFields('cms_user_groups g, cms_users u', "u.group_id = g.id AND u.id = $uid", 'g.id, g.title, g.access as access');
if ($rights['id'] > 10) { $userrank = '<span id="moder">'.$rights['title'].'</span>'; }
function forumUserRank($uid, $messages, $ranks, $modrank=true){ $inDB = cmsDatabase::getInstance(); $inCore = cmsCore::getInstance(); $inUser = cmsUser::getInstance(); global $_LANG; $userrank = ''; if ($inUser->id) { //check is admin if ($inCore->userIsAdmin($uid)){ $userrank = '<span id="admin">'.$_LANG['ADMINISTRATOR'].'</span>'; } else { //rank by messages foreach($ranks as $k=>$rank){ if ($messages >= $rank['msg'] && $rank['msg'] != ''){ $userrank = '<span id="rank">'.$rank['title'].'</span>'; } } } else { $userrank = '<span id="rank">'.$_LANG['USER'].'</span>'; } //check is moderator $rights = dbGetFields('cms_user_groups g, cms_users u', "u.group_id = g.id AND u.id = $uid", 'g.id, g.title, g.access as access'); if ($modrank){ $userrank .= '<span id="moder">'.$_LANG['MODER'].'</span>'; } else { $userrank = '<span id="moder">'.$_LANG['MODER'].'</span>'; } } if ($rights['id'] > 10) { $userrank = '<span id="moder">'.$rights['title'].'</span>'; } } } return $userrank;
www.hyundai-solaris.com/forum/thread197-18.html