The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Integrate RealChat & Vbulletin
Hi Everyone,
I'm trying to integrate the new version of Realchat and Vbulletin 3.7.0. Below I will post the code RealChat gives you to use to integrate it with Vbulletin. I need to know what to put where it says rawurlencode("test") for it to pull usernames from Vbulletin. Any help would be greatly appreciated. Thank you! Jaime PHP Code:
|
#2
|
||||
|
||||
Where are you looking to put this code?
|
#3
|
|||
|
|||
It's a php page by itself, just that code on the page. The page is in my chat directory and I want it to pull the users information from Vbulletin, which is in a bbs directory.
|
#4
|
||||
|
||||
As discussed many times before, you can fetch everything you really need by including global.php.
|
#5
|
|||
|
|||
Ok I understand that, but do you know what to put in these lines? I need to replace the "test" with something that is going to be rawurlencoded. I don't understand rawurlencode.
$nickName = rawurlencode("test"); // rawurlencode is important $profileURL = rawurlencode("http://www.example.com/"); $avatarURL = rawurlencode("http://www.example.com/avatar.jpg"); Thanks Jaime |
#6
|
||||
|
||||
Something like:
PHP Code:
|
#7
|
||||
|
||||
That will only work once the $vbulletin object has been created (by including global.php).
|
#8
|
|||
|
|||
Thank you very much SecondV, that worked!
I do have one more question for you. I want my chat page to say Welcome "Username". I'm having a problem calling up the username from Vbulletin on the same page I put that code you gave me. Would you happen to know what code I would use? Thank you! Jaime |
#9
|
||||
|
||||
Quote:
Quote:
PHP Code:
|
#10
|
|||
|
|||
I'm not using it in a template, it's on a php page in my chat directory. It's the same page you gave me the other code for.
Thanks Jaime |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|