Log in

View Full Version : Space in between username and comma


Saskia
12-30-2005, 08:53 AM
I'm having a slight problem which I can't seem to solve on my own, so I hope someone can.

All around my forum, I get a space in between a username and a comma, seperating multiple usernames. It's at the bottom of the forumhome in the "who's online" bit and at the top of forumdisplay where it's stating the moderators and the users browsing that forum.

I'm running vBulletin 3.5.2 and made a lot of template changes to make my forum look like vBulletin 2, but even the unchanged stylesets are having this problem. I hope someone can help me with this.

Thank you.

ETA: Oh god, I think I've posted this in the wrong forum. I'm terribly sorry if I did.

Dean C
12-30-2005, 12:41 PM
I'll let you off Saskia ;) The comma and it's space is hardcoded in the relevant files that display who's online. For your forumhome as in the screenshot you need to look at this line in index.php:


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


Be careful that you only edit the comma and it's proceding space otherwisu'll get errors :)

Saskia
12-31-2005, 08:02 AM
I've tried to see what was wrong with that code but I can't find a thing. I've got the exact same thing:

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

I took the original index.php file and it didn't change one bit. The really weird part is that when I go to "view source" on my forum's home, and go to the part that I'm having problems with, that I can't even find the comma in that code.

The only comma editing I did was on showgroups.php, but I doubt that that altered all my comma's in the process.

nexialys
12-31-2005, 01:45 PM
if your "space" is showing on people with a specific usergroup, maybe you simply have to edit the usergroup and delete all spaces in the html tags of that group.

Saskia
12-31-2005, 02:21 PM
Nope, I've tried deleting the the html tags for usergroups and tried the normal username instead of musername. The space is still there.

EDIT: Okay I've found it. I had the option "Add Template Name in HTML Comments" turned to 'yes' to be able to debug and work on the forums, so I figured that maybe that caused the space cause nothing else was really causing this. I don't understand why it would add in a space though, but I'm glad I found it.

Thanks for all the help :), I really appreciate it.