The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Have you put $apichat[currentuserlocation] in the place where you want the number of users currently in chat in your FORUMHOME template to show on your page.
|
#12
|
||||
|
||||
Yes I have. It should appear on right side of shout box above 4 icons, in the blank small purple box next to "members currently in live chat".
Tried this code also 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"); I also corrected the missing "s" in what you told me to put in forumhome template currentuserslocation That still didn't fix it. |
#13
|
|||
|
|||
Does this page have this code
PHP Code:
|
#14
|
||||
|
||||
That's because Usercount is supposed to be UserCount (case sensitive)
http://147.202.66.3:8085/?api.UserCount The exact code in that rcplugin.php page is this: Code:
<?php function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://147.202.66.3:8085/?api.".$command); error_reporting($er); return $result; } echo "Number of users: ".getAPI("UserCount")."<br/>"; echo "Rooms available: ".getAPI("RoomList"); ?> |
#15
|
|||
|
|||
yes
but the problem is because of the ip We are not allowed to view it |
#16
|
||||
|
||||
http://talkjesus.com:8085/?api.UserCount
It shows "1" properly, since I'm in chat. However, still not showing up on forumhome |
#17
|
|||
|
|||
Yes but the problem is this page is still outputting
Quote:
|
#18
|
||||
|
||||
Ok fixed! Thanks for all the help folks.
Actually, maybe you can help me get this in WOL area, a new section that is (kind of like FlashChat WOL's area) where it shows you the usernames in chat and if you hover, what room they're in. I fixed the problem by adding the IP address to trusted IP in RC admin panel i used this in forumhome $apichat[currentuserlocation] And this in plugin: Code:
function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://talkjesus.com:8085/?api.".$command); error_reporting($er); return $result; } $apichat['currentuserlocation'] = getAPI("UserCount"); |
#19
|
|||
|
|||
Well you can use this but it is not going to do what you are talking about.
WhoWhere - lists all of the users in all rooms; with one room per line, formatted as: roomID: roomName: userList. Insert this code at the end of the plugin. PHP Code:
|
#20
|
||||
|
||||
Thanks, but how do I get it to appear in the WOL section (footer)?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|