Parašė mNm.· 2014 Vas. 15 15:02:28
#10
O tu viska padarei kaip nurodyta idiegime? t.y.
Pridėti/Valdymas
HTML vartotojų grupėms forumuose ir kitose vietose.
Įdiegimas:
1.Sukelti viską pagal paskirti ir įdiegti
Sistemos valdymas-->Įskiepiai
2.Nustatimai:valdymo pultas - Įskiepiai,surasti
HTML vartotojų grupių pavadinimai
3.Atidaryti maincore.php ir surasti eilutės.
function profile_link($user_id, $user_name, $user_status, $class = "profile-link") {
global $locale, $settings;
$class = ($class ? " class='$class'" : "");
if ((in_array($user_status, array(0, 3, 7)) || checkrights("M")) && (iMEMBER || $settings['hide_userprofiles'] == "0")) {
$link = "<a href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$user_name."";
} elseif ($user_status == "5" || $user_status == "6") {
$link = $locale['user_anonymous'];
} else {
$link = $user_name;
}
return $link;
}
Pakeisti šio:
function profile_link($user_id, $user_name, $user_status, $class = "profile-link") {
$result1 = dbquery("SELECT user_groups FROM ".DB_USERS." WHERE `user_id` = '".$user_id."'");
$usergroups = "";
while ($data1 = dbarray($result1)) {
$usergroups = $data1['user_groups'];
}
$usergroupspieces = explode(".", $usergroups);
$newestgroup = $usergroupspieces[1];
$result2 = dbquery("SELECT * FROM ".DB_PREFIX."html_names WHERE `htmlname_usergroup` = '".$newestgroup."'");
$html1 = "";
$html2 = "";
while ($data2 = dbarray($result2)) {
$html1 = $data2['htmlname_html'];
$html2 = $data2['htmlname_html2'];
}
global $locale, $settings;
$class = ($class ? " class='$class'" : "");
if ((in_array($user_status, array(0, 3, 7)) || checkrights("M")) && (iMEMBER || $settings['hide_userprofiles'] == "0")) {
$link = "<a href='".BASEDIR."profile.php?lookup=".$user_id."'".$class.">".$html1.$user_name.$html2."";
} elseif ($user_status == "5" || $user_status == "6") {
$link = $locale['user_anonymous'];
} else {
$link = $user_name;
}
return $link;
}
4.Išsaugoti.