Quote:
Originally Posted by LiLSnooP
what about color
because every single group have other color to recognise it
could you explain me how to make colors for
/index.php?do=activitystat
|
I haven't tested this, but it should work... you should copy out the old plugin and keep it in notepad so you can put it back if it doesn't work.
Go to AdminCP|Plugin System|Plugin Manager, and find the Activity Modification plugin named "Top Activity" for forumhome_start.
find
Code:
//*****************************
// Display the top X activity
$count=0;
$userlist='0';
foreach($WWU002statdata as $index=>$value){
$userlist.=','.$value[0];
}//endforeach($WWU002statdata as $index=>$value)
$exists=$vbulletin->db->query_read('SELECT posts,userid,usergroupid,membergroupids,username FROM '.TABLE_PREFIX.'user WHERE userid IN ('.$userlist.')');
$userlist=array();
while($existuser=$vbulletin->db->fetch_array($exists)){
$userlist[intval($existuser['userid'])]=$existuser;
}//endwhile($existuser=$vbulletin->db->fetch_row($exists))
$vbulletin->db->free_result($exists);
replace it with
Code:
//*****************************
// Display the top X activity
$count=0;
$userlist=array();
foreach($WWU002statdata as $index=>$value){
$userlist[intval($value[0])]=fetch_userinfo($value[0]);
}//endforeach($WWU002statdata as $index=>$value)
below that, find
Code:
$info[1]=$userinfo['username'];
replace it with
Code:
$info[1]=$userinfo['musername'];
This may result in extra queries to view the Top Activity page. Again, this may not work, so make a backup of the old version of the plugin before editing it. I'll try to remember this feature for when I release a new version.