[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.
jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Tue Oct 28, 2014 4:02 pm

i have this error in debug
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 » Tue Oct 28, 2014 6:34 pm

jd-Fairo wrote:i have this error in debug
Image
Replace line 165 in hook_alternatelogon.php with:

Code: Select all

'AL_FB_LOGIN_URL'								=> isset($login_url) ? $login_url : "",
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Wed Oct 29, 2014 10:23 pm

ty bro but i have this error in acp

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 203: Undefined index: al_fb_key
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 204: Undefined index: al_fb_page_url
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 205: Undefined index: al_fb_page_id
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 206: Undefined index: al_fb_page_token
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 216: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 217: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 218: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 219: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 220: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 221: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 222: Undefined index: al_facebook_topic_post_page_exclusions
and this

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 239: Undefined index: al_wl_callback
and this problem with facebook Image i have php version 5.4.34 but it says I need 5.4.0 or not working if I change to version 5.5.18 the error is still there

Postscript: I have translated to Spanish language, but this 90% full because some words have no meaning in Spanish and do not know how to translate even so I leave the attached language if someone wants to finish it
Spanish Translate

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 » Wed Oct 29, 2014 11:05 pm

jd-Fairo wrote:ty bro but i have this error in acp

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 203: Undefined index: al_fb_key
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 204: Undefined index: al_fb_page_url
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 205: Undefined index: al_fb_page_id
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 206: Undefined index: al_fb_page_token
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 216: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 217: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 218: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 219: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 220: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 221: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 222: Undefined index: al_facebook_topic_post_page_exclusions
and this

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 239: Undefined index: al_wl_callback
and this problem with facebook Image i have php version 5.4.34 but it says I need 5.4.0 or not working if I change to version 5.5.18 the error is still there

Postscript: I have translated to Spanish language, but this 90% full because some words have no meaning in Spanish and do not know how to translate even so I leave the attached language if someone wants to finish it
Spanish Translate
You can either find the lines referred to an place them in the following format:

Code: Select all

isset($config['al_fb_key']) ? $config['al_fb_key'] : '',
or you can fill values into the form fields and the warnings will vanish.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Wed Oct 29, 2014 11:33 pm

You can either find the lines referred to an place them in the following format:

Code: Select all

isset($config['al_fb_key']) ? $config['al_fb_key'] : '',
or you can fill values into the form fields and the warnings will vanish.
as I do? change all the lines with the following format like $config['al_fb_secret'], to isset($config['al_fb_secret') ? i can't understand can you explain

and y have php version 5.4.0 but it tells me I have a wrong version

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 Oct 30, 2014 2:43 am

jd-Fairo wrote:
You can either find the lines referred to an place them in the following format:

Code: Select all

isset($config['al_fb_key']) ? $config['al_fb_key'] : '',
or you can fill values into the form fields and the warnings will vanish.
as I do? change all the lines with the following format like $config['al_fb_secret'], to isset($config['al_fb_secret') ? i can't understand can you explain

and y have php version 5.4.0 but it tells me I have a wrong version
Replace:

Code: Select all

'FACEBOOK_APP_ID'						=> $config['al_fb_id'],
					'FACEBOOK_SECRET'						=> $config['al_fb_secret'],
					'FACEBOOK_KEY'  						=> $config['al_fb_key'],
					'FACEBOOK_PAGE_URL'                     => $config['al_fb_page_url'],
					'FACEBOOK_PAGE_ID'                     	=> $config['al_fb_page_id'],
					'FACEBOOK_PAGE_TOKEN'					=> $config['al_fb_page_token'],
					'SITE_DOMAIN'                           => $config['al_site_domain'],
					'FACEBOOK_LOGIN_BUTTON_TEXT'			=> $config['al_fb_login_text'],
With:

Code: Select all

'FACEBOOK_APP_ID'						=> isset($config['al_fb_id']) ? $config['al_fb_id']: '',
					'FACEBOOK_SECRET'						=> isset($config['al_fb_secret']) ? $config['al_fb_secret'] : '',
					'FACEBOOK_KEY'  						=> isset($config['al_fb_key']) ? $config['al_fb_key'] : '',
					'FACEBOOK_PAGE_URL'                     => isset($config['al_fb_page_url']) ? $config['al_fb_page_url'] : '',
					'FACEBOOK_PAGE_ID'                     	=> isset($config['al_fb_page_id']) ? $config['al_fb_page_id'] : '',
					'FACEBOOK_PAGE_TOKEN'					=> isset($config['al_fb_page_token']) ? $config['al_fb_page_token'] : '',
					'SITE_DOMAIN'                           => isset($config['al_site_domain']) ? $config['al_site_domain'] : '',
					'FACEBOOK_LOGIN_BUTTON_TEXT'			=> isset($config['al_fb_login_text']) ? $config['al_fb_login_text'] : '',
If you are sure you have the required php version then replace:

Code: Select all

'FACEBOOK_ALLOWED'						=> $fb_valid_php_version,
With:

Code: Select all

'FACEBOOK_ALLOWED'						=> true,
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Thu Oct 30, 2014 4:40 pm

more bugs in acp

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 216: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 217: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 218: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 219: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 220: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 221: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 222: Undefined index: al_facebook_topic_post_page_exclusions

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 Oct 30, 2014 5:15 pm

jd-Fairo wrote:more bugs in acp

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 216: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 217: Undefined index: al_fb_like_box
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 218: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 219: Undefined index: al_fb_friends_list
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 220: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 221: Undefined index: al_facebook_topic_post_page
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_alternatelogin.php on line 222: Undefined index: al_facebook_topic_post_page_exclusions
Replace:

Code: Select all

'FACEBOOK_QUICK_ACCOUNTS_YES'           => $config['al_fb_quick_accounts'] ? 'checked="checked"' : '',
					'FACEBOOK_QUICK_ACCOUNTS_NO'            => $config['al_fb_quick_accounts'] ? '' : 'checked="checked"',
					'FACEBOOK_ACTIVITY_YES'                 => $config['al_fb_activity'] ? 'checked="checked"' : '',
					'FACEBOOK_ACTIVITY_NO'                  => $config['al_fb_activity'] ? '' : 'checked="checked"',
					'FACEBOOK_FACEPILE_YES'                 => $config['al_fb_facepile'] ? 'checked="checked"' : '',
					'FACEBOOK_FACEPILE_NO'                  => $config['al_fb_facepile'] ? '' : 'checked="checked"',
					'FACEBOOK_LIKE_BOX_YES'                 => $config['al_fb_like_box'] ? 'checked="checked"' : '',
					'FACEBOOK_LIKE_BOX_NO'                  => $config['al_fb_like_box'] ? '' : 'checked="checked"',
					'FACEBOOK_FRIENDS_LIST_YES'             => $config['al_fb_friends_list'] ? 'checked="checked"' : '',
					'FACEBOOK_FRIENDS_LIST_NO'              => $config['al_fb_friends_list'] ? '' : 'checked="checked"',
					'FACEBOOK_TOPIC_POST_TO_PAGE_YES'       => $config['al_facebook_topic_post_page'] ? 'checked="checked"' : '',
					'FACEBOOK_TOPIC_POST_TO_PAGE_NO'        => $config['al_facebook_topic_post_page'] ? '' : 'checked="checked"',
					'S_FORUMS_LIST'							=> make_forum_select(json_decode($config['al_facebook_topic_post_page_exclusions'], true)),
With:

Code: Select all

'FACEBOOK_QUICK_ACCOUNTS_YES'           => (isset($config['al_fb_quick_accounts']) && $config['al_fb_quick_accounts']) ? 'checked="checked"' : '',
					'FACEBOOK_QUICK_ACCOUNTS_NO'            => (isset($config['al_fb_quick_accounts']) && $config['al_fb_quick_accounts']) ? '' : 'checked="checked"',
					'FACEBOOK_ACTIVITY_YES'                 => (isset($config['al_fb_activity']) && $config['al_fb_activity']) ? 'checked="checked"' : '',
					'FACEBOOK_ACTIVITY_NO'                  => (isset($config['al_fb_activity']) && $config['al_fb_activity']) ? '' : 'checked="checked"',
					'FACEBOOK_FACEPILE_YES'                 => (isset($config['al_fb_facepile']) && $config['al_fb_facepile']) ? 'checked="checked"' : '',
					'FACEBOOK_FACEPILE_NO'                  => (isset($config['al_fb_facepile']) && $config['al_fb_facepile']) ? '' : 'checked="checked"',
					'FACEBOOK_LIKE_BOX_YES'                 => (isset($config['al_fb_like_box']) && $config['al_fb_like_box']) ? 'checked="checked"' : '',
					'FACEBOOK_LIKE_BOX_NO'                  => (isset($config['al_fb_like_box']) && $config['al_fb_like_box']) ? '' : 'checked="checked"',
					'FACEBOOK_FRIENDS_LIST_YES'             => (isset($config['al_fb_friends_list'])  && $config['al_fb_friends_list']) ? 'checked="checked"' : '',
					'FACEBOOK_FRIENDS_LIST_NO'              => (isset($config['al_fb_friends_list'])  && $config['al_fb_friends_list']) ? '' : 'checked="checked"',
					'FACEBOOK_TOPIC_POST_TO_PAGE_YES'       => (isset($config['al_facebook_topic_post_page']) && $config['al_facebook_topic_post_page']) ? 'checked="checked"' : '',
					'FACEBOOK_TOPIC_POST_TO_PAGE_NO'        => (isset($config['al_facebook_topic_post_page']) && $config['al_facebook_topic_post_page']) ? '' : 'checked="checked"',
					'S_FORUMS_LIST'							=> make_forum_select(json_decode((isset($config['al_facebook_topic_post_page_exclusions']) ? $config['al_facebook_topic_post_page_exclusions'] : ''), true)),
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Thu Oct 30, 2014 5:31 pm

change 'FACEBOOK_ALLOWED' => $fb_valid_php_version, to 'FACEBOOK_ALLOWED' => true, but still tells me that I don't have the proper version

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Thu Oct 30, 2014 6:29 pm

jd-Fairo wrote:change 'FACEBOOK_ALLOWED' => $fb_valid_php_version, to 'FACEBOOK_ALLOWED' => true, but still tells me that I don't have the proper version
problem solved in adm/style/acp_alternatelogin.html i find

Code: Select all

    <!-- IF FACEBOOK_ALLOWED -->
	<td><input type="radio" name="facebook_login" value="1" {FACEBOOK_LOGIN_YES}/><label for="facebook_login">{L_YES}</label><input type="radio" name="facebook_login" value="0" {FACEBOOK_LOGIN_NO}/><label for="facebook_login">{L_NO}</label></td>
	<!-- ELSE -->
    <td><span style="color:red;">{FACEBOOK_PHP_VERSION_LOW}</span></td>
    <!-- ENDIF -->
and replace with this

Code: Select all

	<td>{L_FACEBOOK}</td>
	<td><input type="radio" name="facebook_login" value="1" {FACEBOOK_LOGIN_YES}/><label for="facebook_login">{L_YES}</label><input type="radio" name="facebook_login" value="0" {FACEBOOK_LOGIN_NO}/><label for="facebook_login">{L_NO}</label></td>
now i find more bugs [phpBB Debug] PHP Notice: in file [ROOT]/alternatelogin/al_fb_connect.php on line 360: Undefined variable: fb

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Thu Oct 30, 2014 7:27 pm

1 bug more

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/hooks/hook_alternatelogin.php on line 147: Undefined variable: post_text
PS: Great Mod :D

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 Oct 30, 2014 7:50 pm

jd-Fairo wrote:1 bug more

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/hooks/hook_alternatelogin.php on line 147: Undefined variable: post_text
PS: Great Mod :D
Add before:

Code: Select all

if($topic_id && $forum_id)
This:

Code: Select all

$post_text = "";
Is this the full error?
[phpBB Debug] PHP Notice: in file [ROOT]/alternatelogin/al_fb_connect.php on line 360: Undefined variable: fb
There is no variable called 'fb'.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

jd-Fairo
Registered User
Posts: 24
Joined: Fri Oct 17, 2014 4:08 am
Contact:

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

Post by jd-Fairo » Thu Oct 30, 2014 8:58 pm

mjimeyg wrote:Is this the full error?

[phpBB Debug] PHP Notice: in file [ROOT]/alternatelogin/al_fb_connect.php on line 360: Undefined variable: fb



There is no variable called 'fb'.
yes is the full error and in line 360 i have

Code: Select all

			$fb_username = isset($_POST['username']) ? $_POST['username'] : ($config['al_fb_quick_accounts'] ? $fb['name'] : false);
the variable is $fb['name'] i think ;)

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 Oct 30, 2014 9:06 pm

jd-Fairo wrote:
mjimeyg wrote:Is this the full error?

[phpBB Debug] PHP Notice: in file [ROOT]/alternatelogin/al_fb_connect.php on line 360: Undefined variable: fb



There is no variable called 'fb'.
yes is the full error and in line 360 i have

Code: Select all

			$fb_username = isset($_POST['username']) ? $_POST['username'] : ($config['al_fb_quick_accounts'] ? $fb['name'] : false);
the variable is $fb['name'] i think ;)
Try replacing the line with:

Code: Select all

$fb_username = isset($_POST['username']) ? $_POST['username'] : ((isset($config['al_fb_quick_accounts']) && $config['al_fb_quick_accounts']) ? $fb_user['name'] : false);
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 » Fri Oct 31, 2014 9:01 pm

Modification Version:: 2014.10.31.01

Modification Download: http://sourceforge.net/projects/alterna ... p/download

GitHub Repository (Nightly builds): https://github.com/mjimeyg/alternate-login


Major changes to current version:
  • Added asset checks to various files to clear up debug notices.
NOTICE:

Short of a major error being reported this will likely be the last update for this MOD. I will be working on trying to migrate to phpBB 3.1.

That means that this MOD will now be an Extension and will eventually be listed in the Extensions forums. I will post a link in this thread when I eventually create the thread.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

Locked

Return to “[3.0.x] Abandoned MODs”