[ABD]AlternateLogin(Windows Live,Facebook,OpenID)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Fri Sep 19, 2014 7:42 am

Nor7on wrote:Yes! it work fine, but now appear this:

Code: Select all

Google Adsense [Bot]	66.249.90.41	Mié, 17 Sep 2014, 11:39	{Failed to get extended access token - hook alternatelogin.php:36}	
Google Adsense [Bot]	66.249.90.28	Mié, 17 Sep 2014, 11:36	{Failed to get extended access token - hook alternatelogin.php:36}	
Google Adsense [Bot]	66.249.90.28	Mié, 17 Sep 2014, 11:36	{Failed to get extended access token - hook alternatelogin.php:36}	
Google Adsense [Bot]	66.249.90.28	Mié, 17 Sep 2014, 11:36	{Failed to get extended access token - hook alternatelogin.php:36}
and more :roll:
Try replacing the same line with the following:

Code: Select all

if($user->data['al_fb_access_token']  && $user->data['user_id'] != ANONYMOUS  && !$user->data['is_bot'])
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Nor7on » Fri Sep 19, 2014 11:01 am

Yeahhh!!! :D

It work!

Thanks dude!

Regards!

princengwakwe
Registered User
Posts: 1
Joined: Sat Sep 20, 2014 12:38 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by princengwakwe » Sat Sep 20, 2014 1:01 am

Please help us out by resolving the error quoted below

This problem persist only when replying or editing announcements

**** No problem when posting announcement rather editing and replying
bikempire wrote:Hi everyone, I've just installed alternate log in and everything looked like working but when I got into a topic it gives the following error:

Code: Select all

Error General
SQL ERROR [ mysqli ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [1064]

SQL

SELECT user_avatar_type, user_avatar FROM (phpbb_users u) WHERE u.user_id = 

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 189
CALL: dbal->sql_error()

FILE: [ROOT]/includes/hooks/hook_alternatelogin.php
LINE: 59
CALL: dbal_mysqli->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: CSAlternateLogin::page_header()

FILE: [ROOT]/includes/hooks/index.php
LINE: 141
CALL: call_user_func_array()

FILE: [ROOT]/includes/functions.php
LINE: 4955
CALL: phpbb_hook->call_hook()

FILE: [ROOT]/includes/session.php
LINE: 1829
CALL: phpbb_user_session_handler()

FILE: [ROOT]/viewtopic.php
LINE: 363
CALL: user->setup()
In the installation process everything went OK. Hope you can help me out. Thanks.

EDIT: I just relized that it only happens when the thread is a Global thread, in regular and fixed threads everything works ok

User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Sat Sep 20, 2014 9:03 am

princengwakwe wrote:Please help us out by resolving the error quoted below

This problem persist only when replying or editing announcements

**** No problem when posting announcement rather editing and replying
bikempire wrote:Hi everyone, I've just installed alternate log in and everything looked like working but when I got into a topic it gives the following error:

Code: Select all

Error General
SQL ERROR [ mysqli ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [1064]

SQL

SELECT user_avatar_type, user_avatar FROM (phpbb_users u) WHERE u.user_id = 

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()

FILE: [ROOT]/includes/db/mysqli.php
LINE: 189
CALL: dbal->sql_error()

FILE: [ROOT]/includes/hooks/hook_alternatelogin.php
LINE: 59
CALL: dbal_mysqli->sql_query()

FILE: (not given by php)
LINE: (not given by php)
CALL: CSAlternateLogin::page_header()

FILE: [ROOT]/includes/hooks/index.php
LINE: 141
CALL: call_user_func_array()

FILE: [ROOT]/includes/functions.php
LINE: 4955
CALL: phpbb_hook->call_hook()

FILE: [ROOT]/includes/session.php
LINE: 1829
CALL: phpbb_user_session_handler()

FILE: [ROOT]/viewtopic.php
LINE: 363
CALL: user->setup()
In the installation process everything went OK. Hope you can help me out. Thanks.

EDIT: I just relized that it only happens when the thread is a Global thread, in regular and fixed threads everything works ok
I will look into it as soon as I can.

Unfortunately I have another bug someone reported that has me stumped and it is one that can shut down a board.

I promise to get back to you as soon as I have a solution.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Sat Sep 20, 2014 4:10 pm

I have just discovered that Facebook as a new SDK out.

I will be spending some time incorporating this into the MOD.

All currently unresolved bugs are on my radar and will be dealt with as I can.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Nor7on » Wed Sep 24, 2014 5:37 pm

Hi again...

I have this message now.

Code: Select all

charly23	82.159.10.220	Mié, 24 Sep 2014, 17:31	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:31	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:30	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:30	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:30	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:30	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:30	{Failed to get extended access token - hook alternatelogin.php:36}	
charly23	82.159.10.220	Mié, 24 Sep 2014, 17:29	{Failed to get extended access token - hook alternatelogin.php:36}	
Ichazo Russo	190.245.0.104	Mié, 24 Sep 2014, 14:05	{Failed to get extended access token - hook alternatelogin.php:36}	
Ichazo Russo	190.245.0.104	Mié, 24 Sep 2014, 14:05	{Failed to get extended access token - hook alternatelogin.php:36}
:oops:

khabbab
Registered User
Posts: 23
Joined: Tue Apr 19, 2011 12:42 pm

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by khabbab » Thu Sep 25, 2014 7:52 am

Can it be used in production 3.0.12? Also i am using a custom theme, will i need to change code manually?

Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Nor7on » Thu Sep 25, 2014 10:23 am

khabbab wrote:Can it be used in production 3.0.12? Also i am using a custom theme, will i need to change code manually?
Yes, i'm use 3.0.12 and it work, just configure your custopm style based in prosilver or subsilver.

User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Thu Sep 25, 2014 1:19 pm

Nor7on wrote:
khabbab wrote:Can it be used in production 3.0.12? Also i am using a custom theme, will i need to change code manually?
Yes, i'm use 3.0.12 and it work, just configure your custopm style based in prosilver or subsilver.
khabbab:

This MOD seems to be a bit hit or miss at the moment. It may or may not work on your site. I recommend waiting until I can clear up these bugs.

If you do still try the current version then I recommend testing it on a clone of your site or that at the very least you take a full backup before installing.

Nor7on:

At this point that error is likely just a nuisance and nothing more. The simplest thing to do is ignore it.

If you want to stop it adding lines to your error log then comment out the following line in hook_alternatelogin.php:

Code: Select all

add_log('critical', 'Failed to get extended access token - hook_alternatelogin.php:36');
That doesn't explain the error but as it doesn't seem to be having an affect on your users I recommend ignoring it until I can deal with the latest mess from the Facebook SDK.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

khabbab
Registered User
Posts: 23
Joined: Tue Apr 19, 2011 12:42 pm

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by khabbab » Thu Sep 25, 2014 1:43 pm

I did try it on my forum after taking backup and no error but it did not work. I applied changes to my custom theme but still no success. Now after uninstalling the mod, i am still seeing "ACP_CONSOF" tab in my ACP :(

Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Nor7on » Sun Sep 28, 2014 3:49 pm

In debug mode i get this message:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/hooks/hook_alternatelogin.php on line 49: Undefined index: locale
In line 49 i have this:

Code: Select all

				$fb_lang = $fb_user['locale'];

User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Sun Sep 28, 2014 4:03 pm

Nor7on wrote:In debug mode i get this message:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/hooks/hook_alternatelogin.php on line 49: Undefined index: locale
In line 49 i have this:

Code: Select all

				$fb_lang = $fb_user['locale'];
At this time I'm not going to worry about warnings in debug mode. It won't affect the users experience.

I will tackle any additional issues after I've completed the latest upgrade to Facebook SDK 4.0.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

Nor7on
Registered User
Posts: 76
Joined: Tue Jul 22, 2014 10:20 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Nor7on » Sun Sep 28, 2014 4:05 pm

Ok mjimeyg!

Thanks.

I have a little questión... i don't remember what version i have installed... so, how i can what version i have?

In ACP->CONSOF don't display it.

User avatar
mjimeyg
Registered User
Posts: 840
Joined: Sat Aug 29, 2009 7:38 pm
Location: London

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by mjimeyg » Sun Sep 28, 2014 4:18 pm

Nor7on wrote:Ok mjimeyg!

Thanks.

I have a little questión... i don't remember what version i have installed... so, how i can what version i have?

In ACP->CONSOF don't display it.
You'd need to check the install package I believe.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

User avatar
Dead Man
Registered User
Posts: 241
Joined: Tue Jun 05, 2012 12:35 am

Re: [RC]AlternateLogin(Windows Live,Facebook,OpenID)

Post by Dead Man » Mon Sep 29, 2014 8:55 pm

How do I install from other styles that are subsilver2 base.

Because the mod let you install it to other styles in the AutoMod Page but i do not see an option to uninstall from other styles besides Prosilver and SubSilver

Locked

Return to “[3.0.x] Abandoned MODs”