The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Can someone please tell me how I would add commas after the room names and user names in this piece of code. I don't want and comma after the last room name or lat user name, though, if possible.
PHP Code:
|
#2
|
||||
|
||||
![]()
I don't see any User- or Room Names in this Code ...
Or in other Words: How does $userList look like? |
#3
|
||||
|
||||
![]()
Here is the code I am currently using, but as you can see there is an extra comma after the room names. It happens with more than one user, too. That's why I thought with fresh code as above, it might be easier to do the commas right.
![]() PHP Code:
![]() |
#4
|
||||
|
||||
![]()
OK, so where do you want to add commas (as there already seem to be some)?
|
#5
|
||||
|
||||
![]()
I edited my post above.
![]() |
#6
|
||||
|
||||
![]()
I don't really understand the Code
![]() PHP Code:
|
#7
|
||||
|
||||
![]()
It's for RealChat. The roomList is for the rooms and the userList is for the users. That's about all I know about it.
Here is the raw data. Quote:
|
#8
|
|||
|
|||
![]()
Simplest solution in general to a problem like this is to put all usernames/roomnames into an array. Then when all names are collected do:
PHP Code:
|
#9
|
||||
|
||||
![]()
And how would you go about putting them all into an array?
|
#10
|
||||
|
||||
![]() PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|