vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - vB Nexus, Facebook & Google multiple login integration (https://vborg.vbsupport.ru/showthread.php?t=220820)

webrats 08-28-2009 09:26 PM

everytime i chaneg the template ids it goes back to 2147483647

Ohiosweetheart 08-28-2009 10:17 PM

Quote:

Originally Posted by RidinHighSpeeds (Post 1875892)
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. :rolleyes:

ibautocommunity 08-28-2009 10:23 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1876051)
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. :rolleyes:

Try a default vBulletin template please, just to test.

Ohiosweetheart 08-28-2009 10:30 PM

On the same forum? Yes I've tested this on the default vB style. Same result. :(

ibautocommunity 08-28-2009 10:37 PM

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>" ===
PHP Code:

$headinclude .= "
<script type=\"text/javascript\" src=\"vbnexus/js/jquery.js\"></script>"
;

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 &nbsp<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>   
    "
;
}

$output str_replace("</body>"$ie6_end_of_body."</body>"$output);





webrats 08-28-2009 11:09 PM

i think the my problem is that facebooks template numbers are to large now

wolfstream 08-29-2009 12:10 AM

Quote:

Originally Posted by Ohiosweetheart (Post 1876051)
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.

Try this:
using phpmyadmin, delete your user from the vbnexus table:

Code:

delete from vbnexus_nonvbuser WHERE userid='insertuseridhere'
Then associate the account again. That might solve the problem?

Ohiosweetheart 08-29-2009 11:57 AM

Quote:

Originally Posted by wolfstream (Post 1876104)
Try this:
using phpmyadmin, delete your user from the vbnexus table:

Code:

delete from vbnexus_nonvbuser WHERE userid='insertuseridhere'
Then associate the account again. That might solve the problem?

bbbrrrrr, I hate messing with the db. I'm so liable to mess it up big time. :o

I'm about ready to uninstall this mod, due to lack of support from the coder.

Veer 08-29-2009 02:33 PM

I changed the Default USERGROUP ID for non-vBulletin Users to other than 2, but it does not effect.

Any solution?

glorify 08-29-2009 02:51 PM

Damn, such a great idea. Wish it worked correctly.


All times are GMT. The time now is 08:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01345 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete