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)

Shamil. 08-24-2009 02:07 AM

Michael (Anders), could you make it so that jquery is pulled from Google CDN, instead of using the locally hosted one... it removes around 1s of time, and does save a bit of bandwidth :)

wolfstream 08-24-2009 02:38 AM

Quote:

Originally Posted by CallieJo (Post 1870665)
Received a blank grey page after submitting a new thread.
However, the post was posted.


Quote:

Originally Posted by CallieJo (Post 1871831)
Also, does anyone else get blank pages when posting threads? I am trying to narrow down the issues I have when this addon is enabled.

Make that 2 people with the same problem, and I'd bet it's universal for everyone, just like the login/logout thing. There are a couple reasons this could be.

1: facebook does suffer a good bit of downtime on their dev. network, and this could be related. At least the thread is getting posted, so that's the main part, right?

2: this could be directly related to some sort of session or connect setup that needs to be refreshed, lengthened, or something.

As soon as I restarted my browser (and was forced to relog), there were no issues. I had the browser open and @ the forum for a good # of hours, so, that could easily have caused the problem.

Just throwing ideas out. If you get the blank grey page, try restarting your browser.

puertoblack2003 08-24-2009 03:01 AM

1 Attachment(s)
Quote:

Originally Posted by CallieJo (Post 1870665)
Logged in with facebook on FF.
Connected my forum account with facebook account.
Tried to post a new thread in a private forum to test it.
Received a blank grey page after submitting a new thread.
However, the post was posted.

I have several thread mods. Not sure what could be causing an issue.


same issue here

wolfstream 08-24-2009 03:34 AM

Quote:

Originally Posted by puertoblack2003 (Post 1873091)
same issue here

It looks like you haven't understood and followed the install instructions here. These can be rather confusing, but you gotta follow them:

Go into vb options -> vBnexus Configuration
At the bottom of the page, you'll see
Quote:

Facebook Wall Feed Template Configuration
Click the link directly below.

Click 'Save changes'

Go back to vB options -> vBnexus Configuration
Now, your templates will have actual id's instead of 1,etc
Click on Save (this is important)

You're getting that error because your template id (1) is invalid. If you follow the steps I just gave, you should see that specific error go away, as long as you've assigned the proper app id and secret.

CallieJo 08-24-2009 05:11 AM

Quote:

Originally Posted by wolfstream (Post 1873084)
Make that 3 people with the same problem, and I'd bet it's universal for everyone, just like the login/logout thing. There are a couple reasons this could be.

1: facebook does suffer a good bit of downtime on their dev. network, and this could be related. At least the thread is getting posted, so that's the main part, right?

2: this could be directly related to some sort of session or connect setup that needs to be refreshed, lengthened, or something.

As soon as I restarted my browser (and was forced to relog), there were no issues. I had the browser open and @ the forum for a good # of hours, so, that could easily have caused the problem.

Just throwing ideas out. If you get the blank grey page, try restarting your browser.

Thank you ;)

I have disabled it until I find out why it's messing up a few other mods...and no time to fiddle with it. Just watching this thread in the meantime.

Calash 08-24-2009 12:17 PM

I get that blank page when it goes to post the thread to Facebook. Once I select Yes or No it refreshes and brings me back to the page I was viewing.

I got this to stop by changing the render method in the Facebook application. It is now set to FBML instead of IFRAME. This matches how the Facebook Connect mod functioned and seems to work well.

Also, make sure you remove every bit of the Facebook Connect code, if you are migrating from it. That is what was causing my quick reply problems.

drsli 08-24-2009 01:38 PM

I tested it on my forum and the avatars don´t show up (postbit legacy). After disabling the mod the avatars are back again.

Ohiosweetheart 08-24-2009 02:08 PM

hmmm I haven't had the avatar issue.



Quote:

Originally Posted by wolfstream (Post 1873084)
Make that 2 people with the same problem, and I'd bet it's universal for everyone, just like the login/logout thing. There are a couple reasons this could be.

Nope, I've not had any blank page issues.

Ohiosweetheart 08-24-2009 02:09 PM

Hopefully Anders will be back in town and working on this today.

wolfstream 08-24-2009 02:43 PM

Quote:

Originally Posted by Ohiosweetheart (Post 1873391)
hmmm I haven't had the avatar issue.
Nope, I've not had any blank page issues.

The avatar issue I haven't had either. Most likely, this is theme specific, as is my facebook connect issue, which, again, all the more reason to template much of this out, not throw it into str_replace (ugly).

As far as blank pages, give it time. This mod has only been out for a brief period of time, and there are already a number of problems with it like this. Most likely, as I said, this is due to leaving a browser open and not actively viewing the website, but who knows. This is still enough of an issue.

Ohiosweetheart 08-24-2009 03:25 PM

These are the only real issues I'm having:

1 - We're getting an application response error when both registering and logging in via FB, and when we create a new thread, or make a post.

2 - There is no prompt to publish a post or thread or anything else to FB, altho when I first installed it, there was.

3 - Even tho I set my settings to yes in the userCP, they keep reverting back to No, which I'm assuming is why there's no prompt to publish to FB.

I AM, however, getting the notifications of new threads, new replies, etc, at FB.

Calash 08-24-2009 03:38 PM

Quote:

3 - Even tho I set my settings to yes in the userCP, they keep reverting back to No, which I'm assuming is why there's no prompt to publish to FB.
Did you migrate from the Facebook Connect mod?

If so, the second query I posted will resolve this problem. It may cause a duplicate entry for some users if they joined after the migration, so check the table after running and delete any duplicates.

If you did not migrate just ignore me :)

Ohiosweetheart 08-24-2009 03:52 PM

lol.

Nope I never used the FB connect mod.

webrats 08-24-2009 04:55 PM

can you send me the mysql commands that the xml does when it installs

i have a very large database and need to do it the install threw mysql

wolfstream 08-24-2009 05:07 PM

Quote:

Originally Posted by webrats (Post 1873525)
can you send me the mysql commands that the xml does when it installs

i have a very large database and need to do it the install threw mysql

You shouldn't have a problem installing the SQL with this, the user tables aren't altered.

3 tables are created, vbnexus_nonvbuser, vbnexus_facebookuser and vbnexus_templates. The code for creating them is below. Note that this assumes that you're not using a prefix for your tables (ie: vb_ , etc). If you are, add the prefix to the 3 insert statements , so
Code:

CREATE TABLE IF NOT EXISTS `vbnexus_facebookfeedtemplates` (
would actually be
Code:

CREATE TABLE IF NOT EXISTS `vb_vbnexus_facebookfeedtemplates` (
in my above example:

The queries:
Code:

CREATE TABLE IF NOT EXISTS `vbnexus_facebookfeedtemplates` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `type` varchar(20) default NULL,
  `content` mediumtext,
  PRIMARY KEY  (`id`)
) ;


CREATE TABLE IF NOT EXISTS `vbnexus_nonvbuser` (
  `nonvbid` bigint(20) unsigned NOT NULL,
  `userid` int(11) NOT NULL,
  `associated` tinyint(1) default '0',
  `type` enum('1','2') NOT NULL default '1',
  `emailonfile` tinyint(1) default '0',
  PRIMARY KEY  (`nonvbid`,`type`),
  KEY `userid_type` (`userid`,`type`)
) ;

CREATE TABLE IF NOT EXISTS `vbnexus_facebookuser` (
  `uid` bigint(20) unsigned NOT NULL,
  `newthreadfeed` tinyint(1) unsigned default '1',
  `newreplyfeed` tinyint(1) unsigned default '1',
  `newalbumfeed` tinyint(1) unsigned default '1',
  `newpmnotify` tinyint(1) unsigned default '1',
  `mythreadnotify` tinyint(1) unsigned default '1',
  `subscribedthreadnotify` tinyint(1) unsigned default '1',
  PRIMARY KEY  (`uid`)
) ;


wolfstream 08-24-2009 07:41 PM

Another bug (do we have a list of these yet?)
When editing a post (inside the post, not when clicking on "go advanced"), the "do you want to submit this to facebook" pops up. When skipped, it goes to "page can not be found". This shouldn't even popup at all, it's just an edit.

wolfstream 08-25-2009 05:06 AM

And a request, sorry, not meaning to "hijack" the thread here, by any means
Currently, the system shows the notifications like
Quote:

You've received a NEW thread reply on forumname
Can we please change that to be less generic? Tell us what thread, who posted the reply!

Also, for those wanting to change the notifications in the popup, the stuff that says "I posted a reply", or "I started a new thread", you can edit out

$vbphrase[vbnexus_facebook_user_posted_a_new_reply]

and

$vbphrase[vbnexus_facebook_user_posted_a_new_thread]

and configure that. I just blanked them out, it makes no sense at all to have these filled in.

Michael2 08-25-2009 01:29 PM

Still receiving this error when attempting to publish a reply...

Quote:

Application response error

Invalid template bundle id specified: 2147483647. You can see this because you are one of the developers of the app.
I've tried re-installing the mod and the same thing. I even deleted and re-added the application in FB. :(

Ryan Ashbrook 08-25-2009 04:58 PM

FOr those getting the array_merge warning, simply do this.

Open the *** Initialize app *** plugin and find this:

PHP Code:

$phrasegroups array_merge($phrasegroups, array('vbnexus')); 

And above put this:

PHP Code:

if ( !is_array $phrasegroups ) )
{
    
$phrasegroups = array ( );



Quote:

Originally Posted by wolfstream
Coders don't work on demand for free.

Real coders are willing to help anyone, regardless.

cory_booth 08-25-2009 05:01 PM

Quote:

Originally Posted by wolfstream (Post 1873058)
Let me count the ways:
  1. The author at least tries to support the mod
  2. Logging you out of the forum doesn't log you out of facebook
  3. Allows for other (non facebook) logins
  4. New thread notifications actually point to the thread
  5. PM notifications
  6. Album Notifications
  7. Much, much more configurable

There are a few downsides, such as the non templated login stuff, but this is a beta mod, and they at least try to provide support, whereas the author for the other mod has ignored his own mods for months on end.


Awesome, going to install... Yes I paid for the other one, but my point wasn't to compare yours to his, rather verify if some of the lagging issues of the other one would be present in this one by virtue of being a facebook connection app.

I look forward to using this as I had to shut down the other.

wolfstream 08-25-2009 05:12 PM

Quote:

Originally Posted by cory_booth (Post 1874200)
Awesome, going to install... Yes I paid for the other one, but my point wasn't to compare yours to his

Do keep in mind that this is not mine, just a minor correction. This is just another (more efficient) mod to do the same thing, better.

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.

iflymyhelishigh 08-25-2009 05:54 PM

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?

webrats 08-25-2009 06:21 PM

Quote:

Originally Posted by iflymyhelishigh (Post 1874233)
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?

im with this guy

Calash 08-25-2009 06:40 PM

Quote:

Originally Posted by iflymyhelishigh (Post 1874233)
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?

Looking at your page you appear to be missing the footer code. It attaches to the $template_hook[footer_links], so if your custom template does not have this hook the code will not be entered and you will not initialize the Facebook portion.

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.

Calash 08-25-2009 07:05 PM

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 &nbsp<a href='#' onclick='isgooglesignin = true; google.friendconnect.requestSignIn()'><img src=\"/vb/vbnexus/images/nexus.gif\" border=\"0\"></a>
    </td>
  </tr>
</table></div>";

}

In your header or navbar template place $vbnex-login where you want the login buttons to appear

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;

Blank page appears in background when Facebook asks if you want to post to profile. Blank sometimes stays after you accept or deny.

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.

webrats 08-25-2009 07:47 PM

i will make this work!! i still cant get buttons to show

iflymyhelishigh 08-25-2009 07:49 PM

OK, Footer code, what do you mean?

Calash 08-25-2009 07:53 PM

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.

iflymyhelishigh 08-25-2009 07:54 PM

Alright the script is working!

Thank you so much!

webrats 08-25-2009 08:20 PM

can you look at mine

forums.webrats.com

cory_booth 08-25-2009 08:27 PM

Greets everyone...
I LOVE the idea behind this plugin. My site has an issue I have not seen yet addressed.
I get the login buttons and login windows.
But when logging in and redirected back to the site, it loads, but returns back to the "guest" screen with no authentication set.

To be fair, I do have the index.php file from VBAdvanced with the IBProArcade edit applied. My old index.php file is now forum.php - would this make a difference? Can I simply add the code to index.php if needed?

cad2go 08-25-2009 09:01 PM

Quote:

Originally Posted by Ryan Ashbrook (Post 1874198)
FOr those getting the array_merge warning, simply do this.

Open the *** Initialize app *** plugin and find this:

PHP Code:

$phrasegroups array_merge($phrasegroups, array('vbnexus')); 

And above put this:

PHP Code:

if ( !is_array $phrasegroups ) )
{
    
$phrasegroups = array ( );


Real coders are willing to help anyone, regardless.

perfect! thanks.

btw wolfstream has shown those 'real coders' characteristics extensively on the fb connect mod. As have you above.

Thanks to both of you.:up:

cory_booth 08-25-2009 09:47 PM

Looks like my last post didn't make it.

I would like to let everyone know I got mine working by following all the instructions posted in the forum. I did have an issue with the login redirect not taking the user to the create user function. I have vbAdvanced and to make vbAdvanced my startup screen, I renamed the vbulletin index.php file to forum.php and then let vbAdvanced use index.php.

This was causing my problems. If you edit the product.xml file and follow the instructions posted earlier, rename index.php to your original vbulletin index.php file.

cory_booth 08-25-2009 11:35 PM

Couple more issues:

Got the following error: class_dm_user.php(2962) until I disabled sending a PM under registration options.

When I tried to re-register (after dumping the Nexus records) I get a a database error. All that the screen says is "Here" and then the standard vbull database errror screen without any SQL.

I suppose I should ask again...

Does this system require the same edits for vbGallery as fbconnect?

cory_booth 08-25-2009 11:59 PM

1 Attachment(s)
I figure pictures are worth a thousand words. Here is what I did.
Using Yahoo.

I tried to login...

I show the PM error screen.

I clean the database using phpAdmin and remove all entries created by plugin.

I disable the PM

I relogin same as before

I show the database error screen.

The only way I get my website back is to clear the user table, nexus table and session table.

TrueDarKZONE 08-26-2009 08:52 AM

right i am also geting the error message from fb. Invalid template bundle id specified: Number You can see this because you are one of the developers of the app.

to stop the message comeing up on screen and ect. say no to everything under the numbers in the admin cp panel

cad2go 08-26-2009 09:11 AM

Yahoo, Google work for me. fb pops up and takes the username/password but then loads domain.com inside the pop-up itself and I'm not logged in.

Set the callback fine:
Quote:

Set Callback URL to vBulletin Forum URL (http://www.mysite.com/forum/)

cory_booth 08-26-2009 10:42 AM

Putting a call out to anyone regarding conflicting apps...
FaceBook Connect indicated a conflict with vbGallery:
"Disable the following PhotoPost vBGallery plugins:
•Userinfo Merge
•Integrate Postbit Showthread"

What about things like:
Cyb - Advanced Registration
Automatic Profile Commenter
Enhanced Captcha Image Verification

Calash 08-26-2009 11:23 AM

Quote:

Originally Posted by TrueDarKZONE (Post 1874630)
right i am also geting the error message from fb. Invalid template bundle id specified: Number You can see this because you are one of the developers of the app.

to stop the message comeing up on screen and ect. say no to everything under the numbers in the admin cp panel

I think this is an error on Facebook side. You can go to the facebook developers page and see a list of all registered template bundles. Make sure the numbers match up to what you have in the vBnexus control area.

I have not played with this much yet but you may be able to deactivate the bundles, clear out the numbers from the control panel, and click the link to recreate them again if you are still having problems.

Ohiosweetheart 08-26-2009 12:25 PM

ugh I hope Anders comes back soon.


All times are GMT. The time now is 12:40 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.01726 seconds
  • Memory Usage 1,881KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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