https://www.icyphoenix.com/viewtopic.php?f=28&t=2080&p=20491#p20491
-----------------------------------
Vortex
Sun 14 Oct, 2007 19:29

Re: Activity Mod For Icy Phoenix
-----------------------------------
[quote user="Mighty Gorgon" post="20487"]Most of them are already solved.

Try Activity @ mg.com to test.[/quote]


I know... but I downloaded the package and I am testing it on my site... and still found some errors like those I've posted the fix for, above.


And now this, when you click on the best player trophies, there is a conflict with the color groups mod... 


I know the error is here

[code linenumbers=false]		/* 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?


