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)

Calash 09-23-2009 03:27 PM

Quote:

Originally Posted by Wayne Luke (Post 1889437)
Thanks Calash. Will try out your fixes. Through community development of this re-usable code we can make it a strong feature.

Let me know if there is anything wrong with it. Like I said it is my first attempt to put together a product so there may be mistakes.

I think I found a fix for some of the staying logged in problems. The specific behavior I am seeing is that, from some networks, after authenticating via Facebook you close the browser for some time. Upon returning to the site you find that you are logged in fine until you click a link or refresh. At that point you lose authentication and have to login in a second time.


I edited one of the plugins to remove what appeared to be a near random logout() call when Facebook is not sure that your cookie is valid. I believe this check was to disconnect you from the forum should you logout of Facebook, however it seemed to cause more harm than good. Removing this has eliminated the auto-logout problems for me. Manual logout still works fine.

I still want to test it for a day or so before throwing it up.



redlabour


1 - Ether try the product file I posted above or search the thread for the template bundle ID fix. I think that will clear up the problem.

2 - I looked at the site in your sig and could not see any of the vBNexus code in it. If you are missing some of the hooks and/or have a heavily modified theme this may be part of your problem.

Ohiosweetheart 09-23-2009 04:23 PM

You're a good person, Calash!

cherylferraro 09-23-2009 05:06 PM

Thank you Calash!

Calash 09-23-2009 05:21 PM

The fix I am currently testing, if anybody wants to give it a try by hand

Plugin: Is user a facebook user?

Locate the following lines
Code:

elseif(!$vbulletin->vbnexus->userinfo['associated']){
require_once(DIR . '/includes/functions_login.php');
process_logout();

Comment them out, so they look like the following

Code:

//elseif(!$vbulletin->vbnexus->userinfo['associated']){
//require_once(DIR . '/includes/functions_login.php');
//process_logout();


mikeB 09-24-2009 01:44 AM

hi can anyone tell me what might cause a white/blank page after trying to log in w/ facebook connect - IE goes to internal server error, FF goes white, safari goes white?

http://www.nickdip.com/forum/

(I tried the debug mode trick and followed all of the directions) not sure if this has come up

mikeB 09-24-2009 02:00 AM

ps if anyone would like credit or plug for helping me install this to comedian nick dipaolo's forum I can do that for you

Calash 09-24-2009 11:25 AM

Quote:

Originally Posted by mikeB (Post 1889731)
hi can anyone tell me what might cause a white/blank page after trying to log in w/ facebook connect - IE goes to internal server error, FF goes white, safari goes white?

http://www.nickdip.com/forum/

(I tried the debug mode trick and followed all of the directions) not sure if this has come up

I am not seeing any of the vB Nexus code on your page. Did you disable the plugin?

A blank page may be due to forum path settings in the Facebook application. Check there first and make sure everything is setup right.

Calash 09-24-2009 01:20 PM

1 Attachment(s)
Attached is the new product file with the following fixes

- Logout issue after clicking on a link is resolved. If you still have issues check your cookie settings as I found this can cause some odd issues, especially if you run more than 1 forum on the web host.
- Login buttons are now in a template and eval to the navbar_buttons_right hook. This looks good on my site but may not be the best place for them. Paths are relative using the $vboptions[bburl] variable so this should work well for people who run external scripts, such as CMPS. Using the template hook seems a bit more stable than the previous system.

Use at your own risk. This is not an official update but an export of what is currently running on my website. Please let me know if you see any problems or have any suggestions as to how I can improve. I am still very new at vB products.

thefarg 09-24-2009 10:52 PM

Hi Im having a problem with the facebook connect side of it. When I try to use it, the window it pops up is directed to
HTML Code:

http://youoriginal.com/vb/vbnexus/facebook/xd_receiver.htm?fb_login&fname=_opener&guid=0.42088404297828674&session=%7B%22session_key%22%3A%223.X8XEhFYBK42HkA9Z5OC96Q__.86400.1253923200-1372989372%22%2C%22uid%22%3A%221372989372%22%2C%22expires%22%3A1253923200%2C%22secret%22%3A%22kAYnWoxMZeExJB_M7MQyfw__%22%2C%22base_domain%22%3A%22youoriginal.com%22%2C%22sig%22%3A%2253406980a9f8e5003d4381a47219aac1%22%7D
. I have VB CMPS installed to root with VB installed in the forum directory. (along with VBnexus). If running CMPS should i install VBnexus to the root folder or forum? Any help with this would be much appreciated.

thefarg 09-24-2009 11:02 PM

Hi Im having a problem with the facebook connect side of it. When I try to use it, the window it pops up is directed to " http://youoriginal.com/vb/vbnexus/facebook/xd_receiver.htm?fb_login&fname=_opener&guid=0.42088404297828674&s ession=%7B%22session_key%22%3A%223.X8XEhFYBK42HkA9 Z5OC96Q__.86400.1253923200-1372989372%22%2C%22uid%22%3A%221372989372%22%2C%22 expires%22%3A1253923200%2C%22secret%22%3A%22kAYnWo xMZeExJB_M7MQyfw__%22%2C%22base_domain%22%3A%22you original.com%22%2C%22sig%22%3A%2253406980a9f8e5003 d4381a47219aac1%22%7D " . I have VB CMPS installed to root with VB installed in the forum directory, (along with VBnexus). So vbnexus and forum is at http://youoriginal.com/forum . If running CMPS should i install VBnexus to the root folder or forum? Is there a better way (i.e) change all instances of
Code:

$vboptions[bburl]
to
Code:

$vboptions[bburl]/forum/
in the product file? Any help with this would be much appreciated.


All times are GMT. The time now is 11:27 PM.

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,747KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)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