Ok got a better fix to the double comma issue. One that won't bugger up when the plugin is disabled. The previous fix would cause no comma's to be shown if you disabled the plugin.
Firstly undo the steps highlighted by GamerGirl27 if you indeed followed them.
It then requires changes to 2 of the 3 plugins used for this Product.
On the
Aufteilen plugin (the one attached to the
forumhome_loggedinuser hook ).
Find (appears several times - be sure to replace each one):
Replace with:
This will appear inside the eval function for each of the member groups. And all we're doing is removing the , and space from each function. This then causes a slight error with a missing <a for the first user. To fix this you need to do the second plugin alteration.
On the
Ausgeben plugin (the one attached to the
forumhome-complete hook).
Replace your entire plugin code with the following:
Code:
if(($activeonlineusers['team'] OR $activeonlineusers['members'] OR $activeonlineusers['premiummembers'] OR $activeonlineusers['vips']) AND $vbulletin->options['split_useronline_active'])
{
unset($activeusers);
if($activeonlineusers['team'])
{
$activeusers .= "<b>".$vbphrase['team'].":</b> ".$activeonlineusers['team']."<br /><br />"; }
if($activeonlineusers['vips'])
{
$activeusers .= "<b>".$vbphrase['vips'].":</b> ".$activeonlineusers['vips']."<br /><br />";
}
if($activeonlineusers['premiummembers'])
{
$activeusers .= "<b>".$vbphrase['premiummembers'].":</b> ".$activeonlineusers['premiummembers']."<br /><br />";
}
if($activeonlineusers['members'])
{
$activeusers .= iif($show['othergroups'], "<b>".$vbphrase['members'].":</b> ").$activeonlineusers['members']."<br />";
}
}
All I did was remove every instance of the substr function. Originally this was used to delete the extra ", " that would have been produced by the first plugin we altered. As this is no longer produced it is deleting code that we no longer need it to.
Congratulations the online users will display correctly now whether you have the plugin enabled or disabled.