/* Info for the person with the most trophies */
$q = "SELECT *
FROM ". USERS_TABLE ."
ORDER BY user_trophies DESC
LIMIT 0, 1";
$r = $db->sql_query($q);
$row = $db->sql_fetchrow($r);
$usersname = color_group_colorize_name($row['user_id']);
$usersid = $row['user_id'];
$userstrophies = $row['user_trophies'];
if ($usersid != ANONYMOUS)
$top_player1 = str_replace('%n%', "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$usersid") ."' class='nav'>". $usersname ."</a>", $lang['info_box_top_trophy_holder1']);
else
$top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']);
$top_player2 = str_replace('%t%', "<a href='". append_sid("activity.$phpEx?page=trophy_search&user=$usersname") ."' class='nav'>". $userstrophies ."</a>", $top_player1);
$top_player = $top_player2;[/code]
I know that the error is caused by the $usersname variable (the code generated contains html parsing that causes Ctracker to stop it) ... I saw you solved it on
MG.com, can you just tell me how did you solved it?