The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
real chat "Forbidden" errors
I'm suddenly getting a bunch of "forbidden" errors where the user counts should be displayed. The ONLY thing I did was restart realchat server.
www.talkjesus.com (top right and footer). I have two related plugins for RC. (forumhome_start) Code:
function getAPI($command) { $er = error_reporting(0); $result = file_get_contents("http://xxx.xxx.127.230:8080/?api.".$command); error_reporting($er); return $result; } $apichat['currentuserlocation'] = getAPI("UserCount"); $apichat['currentusers2'] = getAPI("UsersIn=Chat%20Cafe"); $apichat['currentusers3'] = getAPI("UsersIn=Prayer%20Room"); $apichat['currentusers4'] = getAPI("UsersIn=Teen%20Hangout"); $apichat['currentusers5'] = getAPI("UsersIn=Bible%20Study"); $apichat['currentusers6'] = getAPI("UsersIn=Parents%20Only"); $apichat['currentuserfooter'] = getAPI("UserCount"); Permission (misc_start) Code:
if ($_REQUEST['do'] == 'page' AND $_REQUEST['template'] == 'Chat') { if (!is_member_of($vbulletin->userinfo, 2,6,7,38,49)) { print_no_permission(); } } --------------- Added [DATE]1316955925[/DATE] at [TIME]1316955925[/TIME] --------------- I restored the entire RealChat directory from backups. Now, the errors are gone but the output for actual number of live chat users is just blank??? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|