after apply this code i get
Username:
Fatal error: Call to undefined function class_user() in /home/account.php on line 55
Username:
Fatal error: Call to undefined function class_user() in /home/account.php on line 55
"buzz_me, post: 69618":have you added cooly's class_user function , in function.php? if not it won't workafter apply this code i get
Username:
Fatal error: Call to undefined function class_user() in /home/account.php on line 55
Quote:function class_user($name){
global $site_config;
$a ="SELECT u.class, u.donated, u.warned, u.rangclass, r.name, r.rangpic FROM `users` `u` INNER JOIN `rangclass` `r` ON u.rangclass=r.id WHERE username ='".$name."'";
$res = mysql_query($a);
$classy = @mysql_fetch_row($res);
switch ($classy[0]) {
case 8: // SYS:
$col = "#15CFCD";
break;
case 7: // ADMINISTRATORSYS:
$col = "#ff0000";
break;
case 6: // Administrator
$col = "teal";
break;
case 5: // Super Moderator
$col = "#3300CC";
break;
case 4: // Moderator
$col = "#006600";
break;
case 3: // VIP
$col = "#FFFF00";
break;
case 2: // Uploader
$col = "#33FF33";
break;
default: // User
$name = $name;
}
if ($classy[1]>0){
$star="<img src='".$site_config[sITEURL]."/images/star.gif' alt='donated' border='0'>";
}else{
$star="";
}
if($classy[2]=="yes"){
$warn="<img src='".$site_config[sITEURL]."/images/warn.gif' alt='warned' border='0'>";
}else{
$warn="";
}
if($classy[3]>0){
$rang="<img src='".$site_config[sITEURL]."/images/".$classy[5]."' alt='".$classy[4]."' border='0'>";
}else{
$rang="";
}
return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$rang."</font>");
}
"buzz_me, post: 69883":If any one know how to fix it.please help on this mod :)i have found a bug here. if i apply cooly's class color function nd apply uploader rank . thn the user name color does not appear untill i give a uploader rank. If i assign a uploader rank thn user color according to class works
so i have removed aboved code nd applied original cooly's class color fun nd color is working :S
any solution?
Quote:i have found a bug here. if i apply cooly's class color function nd apply uploader rank . thn the user name color does not appear untill i give a uploader rank. If i assign a uploader rank thn user color according to class works
so i have removed aboved code nd applied original cooly's class color fun nd color is working :S
any solution?
No users online
Torrents
Members
Online