Version: 1.00, by ibautocommunity
Developer Last Online: Jun 2020
Category: Integration with vBulletin -
Version: 3.8.3
Rating:
Released: 08-12-2009
Last Update: 08-12-2009
Installs: 155
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations Is in Beta Stage
No support by the author.
vBulletin Nexus Current project release: BETA This works on vBulletin 3.7.X - 3.8.4
This product will allow visitors to join your community using their Facebook, Google, Yahoo or AIM account; and will allow your existing members to associate an existing forum account with one of the services - such as Facebook.
Please read the documentation and follow it exactly before requesting installation help. Please note, if you have heavily modified styles that are missing hooks - this product will not work and require additional installation steps.
At this point it appears the only way for existing users to tie their existing facebook account to their VB profile is to log-out, select the facebook logo, then make the connection. It would be great if VB users could access this page when logged in to add their existing facebook profile:
The a dismissable notice would be great for the option listed above for existing users.. I tried this but after adding the code nothing happens (after clicking any of the logos) since the user is already logged in..
I did tie my forum account to my fb account. But I still can't publish my posts/threads to FB, because my settings in the user cp won't stay on YES. After saving they keep reverting back to no.
Something to note about this - I'm the admin on the site. I'm the only one this is happening to. All other members can publish their posts.
It's also NOT a conflict with any other mod, because I disabled every one of them, and still no go.
I did tie my forum account to my fb account. But I still can't publish my posts/threads to FB, because my settings in the user cp won't stay on YES. After saving they keep reverting back to no.
Something to note about this - I'm the admin on the site. I'm the only one this is happening to. All other members can publish their posts.
It's also NOT a conflict with any other mod, because I disabled every one of them, and still no go.
Try a default vBulletin template please, just to test.
internet Explorer 6 Issue Fix
Bug Status: ie6 only, very site specific, NOT a mandatory product update
This is a BUG in IE6 only, we are not going to be including this into the product as it is a very site / server specific issue. If users report "Operation aborted" issue in IE6 you will need to edit plugins and replace their code with the following:
//=== New plugin code for "Include facebook js after <body>" ===
if(!$vbulletin->userinfo['userid'] AND !is_browser('ie', 6))
{
// Add google related stuff
$headinclude .= "
<!-- Load the Google AJAX API Loader -->
<script type=\"text/javascript\" src=\"http://www.google.com/jsapi\"></script>
<!-- Load the Google Friend Connect javascript library. -->
<script type=\"text/javascript\">
google.load('friendconnect', '0.8');
</script>
<!-- Initialize the Google Friend Connect OpenSocial API. -->
<script type=\"text/javascript\">
google.friendconnect.container.setParentUrl('vbnexus/google/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.initOpenSocialApi({
site: '" . $vbulletin->options['vbnexusconfig_google_apikey'] ."',
onload: function(securityToken) { loadData(); }
});
var isgooglesignin = false;
</script>
";
$headinclude .= "
<script type=\"text/javascript\">
//google.friendconnect.requestSignOut();
// load the data using open social
function loadData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
req.send(onLoadCallback);
}
// called after data is loaded
function onLoadCallback(data) {
var ongoogle = ".
(($_REQUEST['product-mod'] == 'gfconnect') ?"true": "false")."
if(data.get('viewer').getData()) {
var viewer = data.get('viewer').getData();
var name = viewer.getDisplayName();
//alert('Viewer is ' + name + viewer.getId());
if(isgooglesignin)
{
window.location = 'index.php?product=vbnexus&product-mod=gfconnect&do=login&loc=".$vbnexus_request_uri."';
}
else if(ongoogle)
{
//document.getElementById('login_username').value = viewer.getDisplayName();
}
if(!ongoogle && !isgooglesignin)
{
google.friendconnect.requestSignOut();
}
} else {
//alert('Viewer is anonymous');
//google.friendconnect.renderSignInButton({ 'id': 'google-login-button', 'style': 'long' })
}
}
</script>
";
}
$header = '<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>' . $header;
//=== New plugin code for "Modify navbar template" ===
PHP Code:
global $vbulletin;
if(!$vbulletin->userinfo['userid'])
{
global $vbnexus_request_uri;
$fb_login_button =
'<!-- fbconnect --><fb:login-button onlogin="window.location=\''.$vbulletin->options[bburl].'/index.php?product=vbnexus&product-mod=facebook&do=login&loc='.$vbnexus_request_uri.'\';"></fb:login-button><!-- / fbconnect -->';
$output = str_replace("<!-- / breadcrumb, login, pm info -->", "<!-- / breadcrumb, login, pm info -->
<div class=\"tborder\" style=\"padding:$stylevar[cellspacing]px; border-top-width:0px\">
<table cellpadding=\"3\" cellspacing=\"0\" border=\"0\" width=\"100%\">
<tr align=\"right\">
<td align=\"right\" valign=\"middle\"><span class=\"smallfont\">New! Use your <strong>Facebook, Google, AIM & Yahoo</strong> accounts to securely log into this site, <strong>click logo to login</strong></span></td>
<td width=\"380px\" align=\"right\">$fb_login_button  <a href='#' onclick='isgooglesignin = true; google.friendconnect.requestSignIn()'><img src=\"vbnexus/images/nexus.gif\" border=\"0\"></a>
</td>
</tr>
</table></div>", $output);
if(!$vbulletin->userinfo['userid'] AND is_browser('ie', 6))
{
// Add google related stuff
$ie6_end_of_body = "
<!-- Load the Google AJAX API Loader -->
<script type=\"text/javascript\" src=\"http://www.google.com/jsapi\"></script>
<!-- Load the Google Friend Connect javascript library. -->
<script type=\"text/javascript\">
google.load('friendconnect', '0.8');
</script>
<!-- Initialize the Google Friend Connect OpenSocial API. -->
<script type=\"text/javascript\">
google.friendconnect.container.setParentUrl('vbnexus/google/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.initOpenSocialApi({
site: '" . $vbulletin->options['vbnexusconfig_google_apikey'] ."',
onload: function(securityToken) { loadData(); }
});
var isgooglesignin = false;
</script>
";
$ie6_end_of_body .= "
<script type=\"text/javascript\">
//google.friendconnect.requestSignOut();
// load the data using open social
function loadData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
req.send(onLoadCallback);
}
// called after data is loaded
function onLoadCallback(data) {
var ongoogle = ".
(($_REQUEST['product-mod'] == 'gfconnect') ?"true": "false")."
if(data.get('viewer').getData()) {
var viewer = data.get('viewer').getData();
var name = viewer.getDisplayName();
//alert('Viewer is ' + name + viewer.getId());
if(isgooglesignin)
{
window.location = 'index.php?product=vbnexus&product-mod=gfconnect&do=login&loc=".$vbnexus_request_uri."';
}
else if(ongoogle)
{
//document.getElementById('login_username').value = viewer.getDisplayName();
}
if(!ongoogle && !isgooglesignin)
{
google.friendconnect.requestSignOut();
}
} else {
//alert('Viewer is anonymous');
//google.friendconnect.renderSignInButton({ 'id': 'google-login-button', 'style': 'long' })
}
}
</script>
";
}