The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
users in chat, confusing API
I installed and integrated Real Chat into my vbulletin forum. However, I wish to display on the forumhome (custom location and WOL area) how many members are in live chat and what room (if easily done).
I'm just not understanding this api doc at all and hope someone can help me out here. http://www.realchat.com/doc/scripting-api.html Thanks in advance. |
#2
|
||||
|
||||
I'm willing to pay $100 for someone to figure this out. Thanks.
|
#3
|
|||
|
|||
Make a plugin with these options
Hook Location: forumhome_start Title: API chat on forumhome(whatever you want to call this plugin it doesn't matter) Execution order: 1 Plugin PHP Code: PHP Code:
Remember to replace http://chathost:controlport with the link to the your api chat or this will not work. I suggest trying this on a test board before you put it on your main site to make sure it works. I suggest creating a new product by Plugins & Products -> Manage Product -> Add New Product. Then add the plugin to the product you created. Then you can put $apichat[currentuserlocation] in your FORUMHOME template. |
#4
|
||||
|
||||
Thanks for the help, but its not working.
I tried this: Code:
function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://147.202.66.3:8085/?api.".$command); //Replace http://chathost:controlport with the link to the your api chat error_reporting($er); return $result; } $apichat['currentuserslocation'] = getAPI("whowhere"); http://147.202.66.3:8085/?0,0,0,0,0 I did enable / activate plugin too. |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
Yes, because it shows it directly this way:
http://147.202.66.3:8085/?api.UserCount 0 is correct But I cannot get the plugin setup right to display usercount in forumhome --------------- Added [DATE]1198710896[/DATE] at [TIME]1198710896[/TIME] --------------- Tried this also, won't work Code:
function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://147.202.66.3:8085/?api.".$command); error_reporting($er); return $result; } $apichat['currentuserslocation'] = getAPI("usercount"); |
#7
|
|||
|
|||
make a php file and put the plugin code into it
PHP Code:
Because i'm getting an error if i want to try file_get_contents() from your ip, and if i call it direct http://147.202.66.3:8085/?api.UserCount i'm gettin the message that its forbidden |
#8
|
||||
|
||||
<a href="http://talkjesus.com/rcplugin.php" target="_blank">http://talkjesus.com/rcplugin.php</a>
Shows code only |
#9
|
|||
|
|||
with <? around, sorry
here's my try: www.ragtek.org/sandbox/chat.php my server isn't allowed to get the info also my clientpc isn't allowed when i click the link |
#10
|
||||
|
||||
Ok now it works via that link but not forumhome
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|