PDA

View Full Version : Remove commas


NuclioN
12-23-2006, 04:00 PM
How can i remove commas in the display of online users on forumhome? :)

kobescoresagain
12-23-2006, 07:33 PM
I figured I would spread around a little Xmas help.

On your index.php page for your forum find the following code


if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}


change it to


if (fetch_online_status($loggedin))
{
$numbervisible++;
eval('$activeusers .= " ' . fetch_template('forumhome_loggedinuser') . '";');
}


Then right below it find this code

$activeusers = substr($activeusers, 2); // get rid of initial comma

and change it to


//$activeusers = substr($activeusers, 2); // get rid of initial comma

That will remove the commas for you. If you want to put something else in there, you can do that also. My suggestion is that if you are editing files to make sure that you do not delete lines but comment them out and also add comments around the line to help you figure out what you changed at later dates.

NuclioN
12-23-2006, 07:50 PM
Tnx kobescoresagain, that works ok. :) merry xmas.