Log in

View Full Version : how to replace commas with plus signs on Currently Active Users list ?


Marcel Lee
03-14-2009, 05:07 AM
What I want to do is remove the commas and replace them with plus signs, then put a space after each name... so + that + the + list + looks + like + this.

I was able to do it in vB 3.6 by simply editing the "index.php" file, but that part of the file looks different in 3.8.

snakes1100
03-14-2009, 12:50 PM
The + symbol is used by a feature already in vbulletin, older versions that would be your "buddy list" or in the later versions "contacts".

ie...
joe* , joe1 , joe2+ , joe3*+

+ = added friend/contact/buddy
* = invisible

Marcel Lee
03-15-2009, 05:07 AM
It doesn't matter. I had the list looking like I want it to look before I upgraded, and that; what you're saying; was never a problem.

If it does become a problem, I'll just find a way to delete the plus sign as a friends list feature and only use it as a replacement for the comma.

For now, all I really need to know is how to replace the comma with a plus sign and put a (single) space after each name...
so + that + the + list + looks + like + this.

Is it (still) just a matter of editing the "index.php" file? If so, what exactly do I have to change? And if not, what exactly do I have to do to change it?

Lynne
03-15-2009, 03:07 PM
If you actually go look at the template for the usernames (probably forumhome_loggedinuser), you'll see this:
<if condition="$show['comma_leader']">, </if>So, change it to what you want.

If that isn't the template, then do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.

Marcel Lee
03-17-2009, 08:04 AM
What I need is for someone to explain exactly what I have to do to replace the comma with a plus sign and put a (single) space after each name.

Telling me what template or line of code I have to change isn't going to help unless you also tell me what to change it to.

Lynne
03-17-2009, 02:14 PM
Well, you'll have t find the template, then I can take a look at it and see. Did you try changing the template I suggested already?