![]() |
Hi,
A quick intro. I am brand newbie to vBulletin and paid for my license tonight. I have tried to install this but it won't work. The page just comes up blank and if I change the path testing various possiblies it mostly give me the not found error. Any ideas? I am running vBulletin on a win2k machine, might this be the issue? I would really appreciate any help you could give. |
I have installed this hack but when you try to load it it seems to "pause" for ages then comes up with :
Closing Link ...blah blah.. (USER: bad username) Any ideas ? |
To solve the error in the login, in the chat template change the line
<param name="username" value="$bbuserinfo[username]"> to <param name="username" value="javauser"> or put your site name or something there instead of "javauser".... |
Quote:
|
Some characters can not be used in usernames. I don't know about the requirements for this particular chat, but if a name contains invalid characters then you will not get into chat.
|
Well that was something I overlooked, the apostraphe is invalid. Any suggestions on how to work the apostraphe? Can these be masked out or something? Thanks in advance, if all else fails I can edit members user names and make a note when registering not to use ' in the user name. Currently out of about 450, only 14 member names have the invalid charachter.
[edit] I figured out how to strip the apostraphe using the str_replace, but now I seem to get the apostraphe stripped and it only uses the first part of the user name, ie. Mike's Dad is Mikes. Here is my chat.php PHP Code:
|
Well, look at your code:
the first "$chatusername=..." line, what does this do? It looks at $bbuserinfo[username] (Mike's Dad), replaces each space with an underscore, and then stores the edited value in $chatusername (Mike's_Dad) The second line again looks at $bbuserinfo[username] (Mike's Dad), removes each apostrophe, and the stores the edited value in $chatusername (Mikes Dad), overwriting the already existing value of Mike's_Dad :( Since the first value was overwritten, $chatusername now has a value of "Mikes Dad". Your chat only accepts the first part, before the space, meaning "Mikes Dad" will be logged in as "Mikes". Back to the drawing board ;) |
Quote:
PHP Code:
|
Thanks for the input and Slynderdale, your code worked great. Thanks again.
|
Hell'o there. Many thanx for that great and easy hack.
BUT I'M STILL WONDERING... Is there a way to have an "Who's chatting on line" list for that ? |
All times are GMT. The time now is 12:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|