Salut a vous !
Je viens voir que si je désactive un compte j’ai pas ma petite icon en image pour l’indiquer a coté du pseudonyme, mais je les si il a avertissement
*Vous devez avoir installer le mode class_user
Je vous partage la modification a faire.
//////////////////////////////////////////
Hello to everybody !
I come to see that if I deactivate an account I don't have my little icon in the image to indicate it next to the pseudonym, but I will tell them if there is a warning
*You must have class_user mode installed
I share with you the modification to be made.
Ouvrir /Open functions.php et chercher / and seek :
Changer pour / Change to:
il vous reste a ajouter les deux images dans dossier images ou mettre les votre, mais n'oubliez pas de faire les modifications de la direction des images et je vous laise le soint de mettre en anglais pour le title
/////////////////////////////////////////
you still have to add the two images in the images folder or put your own, but don't forget to make the changes to the direction of the images and I leave it to you to put in English for the title
Je viens voir que si je désactive un compte j’ai pas ma petite icon en image pour l’indiquer a coté du pseudonyme, mais je les si il a avertissement
*Vous devez avoir installer le mode class_user
Je vous partage la modification a faire.
//////////////////////////////////////////
Hello to everybody !
I come to see that if I deactivate an account I don't have my little icon in the image to indicate it next to the pseudonym, but I will tell them if there is a warning
*You must have class_user mode installed
I share with you the modification to be made.
Ouvrir /Open functions.php et chercher / and seek :
// Mod class_user color
function class_user($name)
{
global $site_config;
$a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
//echo "Query a".$a."<br />";
$res = SQL_Query_exec($a);
$classy = @mysql_fetch_array($res);
$gcolor = $classy['Color'];
if ($classy['donated'] > 0) {
$star = "<img src='" . $site_config[SITEURL] . "/images/users/money.gif' alt='donated' border='0' width='12' height='12'>";
} else {
$star = "";
}
if ($classy['warned'] == "yes") {
$warn = " <img src='" . $site_config[SITEURL] . "/images/warned.gif' alt='Warned' border='0' width='12' height='12'>";
} else {
$warn = "";
}
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "</font>");
}
// End class_user color Changer pour / Change to:
#======================================================================#
# Start class_user function
#======================================================================#
function class_user($name)
{
global $site_config;
$a = "SELECT u.class, u.donated, u.warned, u.enabled, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
//echo "Query a".$a."<br />";
$res = SQL_Query_exec($a);
$classy = @mysqli_fetch_array($res);
$gcolor = $classy['Color'];
if ($classy['donated'] > 0) {
$star = " <img src='" . $site_config['SITEURL'] . "/images/star.png' title='Soutien Le CrazySpirits ♥' border='0' width='25' height='19'>";
} else {
$star = "";
}
//Warned img
if ($classy['warned'] == "yes") {
$warn = " <img src='" . $site_config['SITEURL'] . "/images/warn.png' title='Avertissement Écrite ! ✍ ⚠' border='0' width='18' height='18'>";
} else {
$warn = "";
}
//Enabled img
if ($classy['enabled'] == "no") {
$enab = " <img src='" . $site_config['SITEURL'] . "/images/enab.png' title='Compte Désactivé ! ✍ ⚠' border='0' width='18' height='18'>";
} else {
$enab = "";
}
$rang = auto_rank_icon($classy['uploaded'], $classy['downloaded'], $classy['level']);
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "" . $enab . "" . $rang . "</font>");
}
#======================================================================#
# End Start class_user function
#======================================================================#il vous reste a ajouter les deux images dans dossier images ou mettre les votre, mais n'oubliez pas de faire les modifications de la direction des images et je vous laise le soint de mettre en anglais pour le title
/////////////////////////////////////////
you still have to add the two images in the images folder or put your own, but don't forget to make the changes to the direction of the images and I leave it to you to put in English for the title
