Log in

View Full Version : Issue with Commas


Super Shadow
12-09-2003, 01:09 AM
I'm having a bit of a problem with separating users on the "Who's Online", "Who was online today" and "Users Browsing This Forum" list amongst others. It seems, anywhere the forum (as in, not made by a poster) PHP is supposed to insert a comma as 'Word, words.', it inserts it as Word , words.'

Is there any way I can fix this to have only one space AFTER the comma?

If you think you can help, but aren't exactly clear as to what I'm saying, look on www.FFEntity.com/forums and find "Who was online today" at the bottom of Forum. You should see the problem in the list of users.

Dean C
12-09-2003, 10:49 AM
I believe they call the comma in the eval function - you may have to edit the source a little bit :)

Super Shadow
12-09-2003, 06:26 PM
*PHP zero*

Would you be so kind as to pinpoint me? Files, maybe? SQL queries? Thanks ^_^

g-force2k2
12-15-2003, 03:17 PM
There shouldn't be a space before unless I am mistaken, but if you're looking for the general area the commas are placed when eval'ing the templates. For the whos online on the index it would be located in the index.php file and here's the general line that you would be looking for.

eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");

If you look at the $activeusers variable to the right you see the comman then space before the gettemplate function is preformed that is where you comma and space are added.

Regards,
g-force2k2