Hello,
A nice little hack that is used to put the name and the member of the country's flag.
Files modified: Yes
Sql: No
BEFORE ANY CHANGES MAKE A VAS.
Open blocks / login_blocks.php and searching
$avatar = htmlspecialchars($CURUSER["avatar"]);
if (!$avatar)
$avatar = $site_config["SITEURL"]."/images/default_avatar.png";
$userdownloaded = mksize($CURUSER["downloaded"]);
$useruploaded = mksize($CURUSER["uploaded"]);
$privacylevel = T_($CURUSER["privacy"]);
$bonus = $CURUSER['seedbonus'];
if ($CURUSER["uploaded"] > 0 && $CURUSER["downloaded"] == 0)
$userratio = "Inf.";
elseif ($CURUSER["downloaded"] > 0)
$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);
else
$userratio = "---";
Add below:
/*On affiche le drapeau*==*/
$res = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$CURUSER[country] LIMIT 1") ;
if (mysql_num_rows($res) == 1) {
$arr = mysql_fetch_assoc($res);
$country = "".$arr['name']." <img src=images/countries/$arr[flagpic] height=10 width=25 border=0>";
}
else{
$country = "<img src='images/flags/inconnu.png' width='25' />"; ///change default image
Search :
". T_("RATIO") .": $userratio
Next add:
<br />Country: $country</b>
result:
A nice little hack that is used to put the name and the member of the country's flag.
Files modified: Yes
Sql: No
BEFORE ANY CHANGES MAKE A VAS.
Open blocks / login_blocks.php and searching
$avatar = htmlspecialchars($CURUSER["avatar"]);
if (!$avatar)
$avatar = $site_config["SITEURL"]."/images/default_avatar.png";
$userdownloaded = mksize($CURUSER["downloaded"]);
$useruploaded = mksize($CURUSER["uploaded"]);
$privacylevel = T_($CURUSER["privacy"]);
$bonus = $CURUSER['seedbonus'];
if ($CURUSER["uploaded"] > 0 && $CURUSER["downloaded"] == 0)
$userratio = "Inf.";
elseif ($CURUSER["downloaded"] > 0)
$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);
else
$userratio = "---";
Add below:
/*On affiche le drapeau*==*/
$res = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$CURUSER[country] LIMIT 1") ;
if (mysql_num_rows($res) == 1) {
$arr = mysql_fetch_assoc($res);
$country = "".$arr['name']." <img src=images/countries/$arr[flagpic] height=10 width=25 border=0>";
}
else{
$country = "<img src='images/flags/inconnu.png' width='25' />"; ///change default image
Search :
". T_("RATIO") .": $userratio
Next add:
<br />Country: $country</b>
result: