https://www.icyphoenix.com/viewtopic.php?f=28&t=2080&p=20507#p20507 ----------------------------------- Vortex Mon 15 Oct, 2007 09:13 Re: Activity Mod For Icy Phoenix ----------------------------------- [quote user="Vortex" post="20491"] I know the error is here [quote] /* 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%', "". $usersname ."", $lang['info_box_top_trophy_holder1']); else $top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']); $top_player2 = str_replace('%t%', "". $userstrophies ."", $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?[/quote][/quote] Oh my God I feel so idiot... the error was the variable? Just create another one! [img]http://www.icyphoenix.com/images/smiles/wohow.gif[/img] [quote] /* 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']); [color=red][b] $clean_name = $row['username'];[/b][/color] $usersid = $row['user_id']; $userstrophies = $row['user_trophies']; if ($usersid != ANONYMOUS) $top_player1 = str_replace('%n%', "". $usersname ."", $lang['info_box_top_trophy_holder1']); else $top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']); $top_player2 = str_replace('%t%', "". $userstrophies ."", $top_player1); $top_player = $top_player2;[/quote] (I can't use the solution of the beta package because the color groups function is different and I think it wouldn't work on 1.1.0.15b ) Solved [img]http://www.icyphoenix.com/images/smiles/0007.gif[/img]