![]() |
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:
|
Where are you looking to put this code?
|
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.
|
As discussed many times before, you can fetch everything you really need by including global.php.
|
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 |
Something like:
PHP Code:
|
That will only work once the $vbulletin object has been created (by including global.php).
|
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 |
Quote:
Quote:
PHP Code:
|
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 |
Then just use:
PHP Code:
|
I figured out the code for the usernames. Trying to have it call this up under the username "You last visited: Yesterday at 02:16 AM", of course have it read what time the user was there last for each user, like it does on the message board. Do you know the code to pull that up?
Thank you! Jaime |
PHP Code:
|
Using that code makes it just say "03-15-2009 03:04 AM. ". I wouldn't mind that if it said the word at between the date and time. I see the date and time of the last visit for users is a vbphrase, is there a way to call up a vbphrase on a regular php file?
Thank you! Jaime |
PHP Code:
|
I put that code in and it doesn't show anything at all. Will paste below exactly what I put in the file.
PHP Code:
Jaime |
You need to include global.php for it to work...
|
It is set to include global.php. It acts like it is the right code, but isn't reading right for some reason. Will post what I have at the top of my file.
This is at the top of my file PHP Code:
|
Just download the zip file here: http://www.realchat.com/doc/database-integration.html
You don't need any of that. I'm still looking for a way to display what users are currently in chat. If anyone has something like that plz let me know. |
All times are GMT. The time now is 11:33 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:
|