The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Could anyone please help me add commas to the string of RealChat rooms that the following code generates?
PHP Code:
Quote:
The Bear's Den The Lobby Fun Staff only! No topic Bear's Den I would like commas after the names except for the last one. This is the code that came with it so I have no idea how to add the commas. Thanks in advance. ![]() |
#2
|
||||
|
||||
![]()
Assuming that each channel is being retrieved on its own line, you should be able to:
PHP Code:
|
#3
|
||||
|
||||
![]() Quote:
Quote:
And thank you, very much, sir. ![]() |
#4
|
||||
|
||||
![]()
Replace:
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
![]()
Excellent! Worked like a charm! Thank you, sir.
![]() |
#6
|
|||
|
|||
![]()
you could also use the php trim() function. It removes all surrounding whitespace characters, which is very helpful when dealing with strings.
|
#7
|
||||
|
||||
![]() Quote:
|
#8
|
||||
|
||||
![]()
Instead of doing:
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
![]() Quote:
![]() For future reference, will the trim get rid of whitespace on both sides of the line or just the preceding whitespace? |
#10
|
||||
|
||||
![]()
I am getting a comma after the amount of users in the chat room randonly now. It doesn't happen all the time but every once in a while. Like this:
Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|