
01-25-2009, 04:17 PM
|
|
|
Join Date: Apr 2004
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by peppy
Hi
I just installed 2.0.3 and I get a whole page of SQL appear as text when I try and map the fields
query_first(" SELECT fbuid FROM " . TABLE_PREFIX . "fbuser WHERE userid = " . $userid . " LIMIT 1 "); return intval($user['fbuid']); } function fetch_fbuser_info($query) { require_once(DIR . '/includes/facebook/facebook.php'); global $vbulletin, $db; $fbusers = $db->query_read($query); $fbuids = ""; $vbuids = array(); while ($fbuser = $db->fetch_array($fbusers)) { if ($fbuser['fbuid']) { $fbuids .= $fbuser['fbuid'] . ","; $vbuids[] = $fbuser['userid']; } } $fbuids = rtrim($fbuids, ','); $fbuserinfo = $vbulletin->session->vars['fbuserinfo']; if ($vbulletin->facebook == null) $vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']); try { $fbuser = $vbulletin->facebook->api_client->users_getInfo($fbuids, 'name, first_name, last_name, affiliations, pic, pic_small, pic_square'); for ($i = 0; $i < count($fbuser); $i++) $fbuserinfo[$vbuids[$i]] = $fbuser[$i]; $v
etc..
|
double check your server settings... this is php code not mysql... you should never see this.
Quote:
Originally Posted by indie2industry
Wow!!! Insane!! Works Perfectly!!
|
Quote:
Originally Posted by Hex_legend
Im having a weird problem.
I have set it all up now, so its working apart from one thing.
I have vBA installed and anyone who is a member of the facebook group cannot view the main page due to "usergroup permissions" (which is vba)
I have set all the usergroup permissions.
I am running 3.7.4
|
i danno man... seems like a permission issue... you can try and change the default user group for facebook users (in the FB Connect Settings).
|