The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Nexus, Facebook & Google multiple login integration Details »» | |||||||||||||||||||||||||||||
vB Nexus, Facebook & Google multiple login integration
Developer Last Online: Jun 2020
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. DEMO: http://www.carblog.com/vbnexus Basic Instructions for your forum's users: http://carblog.com/vbnexus/user-guide/ Download Now
Show Your Support
|
Comments |
#182
|
|||
|
|||
Quote:
With this mod, if you have problems connecting to facebook, the thread (or reply) still gets posted, you just get the blank screen everyone's talking about There's other things, but that is a fairly decent change in and of itself. |
#183
|
|||
|
|||
On my site, http://www.undertherotor.com
The mod appears, but the facebook button doesn't, I've read through the thread and have seen this mentioned a couple of times, any idea why? |
#184
|
|||
|
|||
Quote:
|
#185
|
||||
|
||||
Quote:
Easiest fix is to put that hook in your footer template. This will allow the init code to run and should fix the missing Facebook button problem. |
#186
|
||||
|
||||
Just so I have a reference, and for anybody else having similar problems I am going to post the issues and solutions I have found so far.
Facebook Button does not appear next to Google Login button: Check your footer template and make sure the $template_hook[footer_links] hook is there. Add if it is missing. Login buttons do not show up in external scripts or you want to relocate them Create a new plugin with any name and set for global start. Add the following code. 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 -->'; $vbnex_login = " <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=\"/vb/vbnexus/images/nexus.gif\" border=\"0\"></a> </td> </tr> </table></div>"; } Disable Modify navbar template plugin. Google Friend Connect login does not work outside of vBulletin directory. Replace the Include facebook js after <body> template contents with the following to add the bburl path to Javascript. Code:
$headinclude .= " <script type=\"text/javascript\" src=\" ".$vbulletin->options[bburl]."/vbnexus/js/jquery.js\"></script>"; if(!$vbulletin->userinfo['userid']) { // 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('".$vbulletin->options[bburl]."/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 = '".$vbulletin->options[bburl]."/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; Go to http://www.facebook.com/developers Click on your App, then Edit Settings, the Canvas For Render Method select FBML Save, reload your site, and test. |
#187
|
|||
|
|||
i will make this work!! i still cant get buttons to show
|
#188
|
|||
|
|||
OK, Footer code, what do you mean?
|
#189
|
||||
|
||||
In your footer template look for a hook called $template_hook[footer_links] . If it is not there add it someplace. The plugin uses this hook to add code at the very bottom of the page. This inits the Facebook connect part of the mod.
Without it your button will be missing and parts of the Facebook connection will fail. |
#190
|
|||
|
|||
Alright the script is working!
Thank you so much! |
#191
|
|||
|
|||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|