[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.
neilsav
Registered User
Posts: 27
Joined: Tue Apr 20, 2010 3:16 am

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

Post by neilsav » Thu Dec 27, 2012 1:20 pm

mjimeyg wrote:
neilsav wrote:
mjimeyg wrote:
neilsav wrote:This is weird, after months of using this plugin all of the sudden I am getting this error when trying to use facebook connect (http://www.thelocalgolfer.com/golf-foru ... e=register#):

An error occurred. Please try again later.

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

Did something change on Facebook's side?
I haven't noticed any changes and I haven't made any changes to the alternate login facebook code.

I can only suggest rechecking all your keys, secrets and urls match up in the ACP and the Facebook app page.
Just reset the secret, the URL's and Keys match exactly. I did notice in the facebook settings it does require a secure canvas URL - does facebook now require SSL? Anything else to try?
Where are you seeing the aforementioned error? Whenever I try to sign up to your site I get redirected to a Facebook Error page with no details.

Is your Facebook App in Sandbox Mode?
If you are not logged in to facebook you will get the error you received. If you are logged in to facebook you will see "Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration."

My app is not in sandbox mode, facebook must have changed something, as I have had this working for 6 months.

SwT-CarbonzZ
Registered User
Posts: 575
Joined: Tue Oct 12, 2010 7:17 am

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

Post by SwT-CarbonzZ » Thu Dec 27, 2012 6:21 pm

Thx for this awesome mod did the install with automod and got ZERO problems Thumps up my friend , only a fieuw thing tha blocks that you can enable and disable or not so good looking on my forum but that no problem i just wanted the login.

Mayb 1 problem but im need to test it and that in user control panel the button thats showing a bit strange , its showing the F twice under each others like this.

F Sign
F In

Thats how its looking.

User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

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

Post by robra » Thu Dec 27, 2012 8:14 pm

richey wrote:Hi,
...
2. when clicking the registration link in my forum, I am presented with the following error message (only):

Code: Select all

{"errors":[{"message":"Invalid or expired token","code":89}]}
It seems to be related to Twitter (but independent on my ACP setting whether to activate Twitter or not.. :?), as the error message doesn't come up if I remove the line

Code: Select all

 $tw_access_token = json_decode($user->data['session_tw_access_token']);
in includes/ucp/ucp_register.php.
...
thanks!
r.
I had exactly the same problem only on register page. On the Index and Login pages I haven't.
The Agreement doesn't show up, only the error message.
On the file includes/ucp/ucp_register.php I commented the line, like that:
// $tw_access_token = json_decode($user->data['session_tw_access_token']);
:arrow: The Agreement returned and the register page too.

Other thing is on the instructions below:
Open: styles/prosilver/template/login_body.html
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

</form>
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

        <!-- IF (S_AL_WL_ENABLED or S_AL_FB_ENABLED or S_AL_TW_ENABLED) and not S_ADMIN_AUTH -->
 <div class="panel bg3">
   <div class="inner"><span class="corners-top"><span></span></span>
      
 <h3>{L_SOCIAL_LOGIN_OPTIONS}</h3> 
                <br /> 
            <!-- IF S_AL_WL_ENABLED --> 
            <a href="{U_AL_WL_AUTHORIZE}"><img src="alternatelogin/images/windows_live_connect.png" alt="Windows Live Connect" /></a> 
        <!-- ENDIF --> 
 
        <!-- IF S_AL_FB_ENABLED --> 
            <a onclick="window.location='alternatelogin/al_fb_connect.php{S_RETURN_TO_PAGE}';" href="#" class="fb_button fb_button_medium"><span class="fb_button_text">{L_SIGN_IN}</span></a> 
        <!-- ENDIF --> 
      <!-- IF S_AL_TW_ENABLED --> 
        <a href="{U_AL_TW_REQUEST}"><img src="alternatelogin/images/sign-in-with-twitter-l.png" alt="Windows Live Connect" /></a> 
        <!-- ENDIF --> 
      
      <!-- IF S_AL_OI_ENABLED --> 
        <link type="text/css" rel="stylesheet" href="{T_TEMPLATE_PATH}/css/openid.css" />
	<script type="text/javascript" src="{T_TEMPLATE_PATH}/js/jquery-1.2.6.min.js"></script>
	<script type="text/javascript" src="{T_TEMPLATE_PATH}/js/openid-jquery.js"></script>
	<script type="text/javascript" src="{T_TEMPLATE_PATH}/js/openid-en.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			openid.init('openid_identifier');
			
		});
	</script>
        <form action="{U_AL_OI_LOGIN}" method="get" id="openid_form">
		<input type="hidden" name="action" value="verify" />
		<fieldset>
			<legend>Sign-in or Create New Account</legend>
			<div id="openid_choice">
				<p>Please click your account provider:</p>
				<div id="openid_btns"></div>
			</div>
			<div id="openid_input_area">
				<input id="openid_identifier" name="openid_identifier" type="text" value="http://" />
				<input id="openid_submit" type="submit" value="Sign-In"/>
			</div>
			
		</fieldset>
	</form>
        <!-- ENDIF --> 
   <span class="corners-bottom"><span></span></span></div>
</div>
 <!-- ENDIF -->
On the line...

Code: Select all

<a href="{U_AL_TW_REQUEST}"><img src="alternatelogin/images/sign-in-with-twitter-l.png" alt="Windows Live Connect" /></a>
... the alt="Windows Live Connect" should be alt="Twitter" like on Index and Register pages. Correct :?:

[ ].

User avatar
sevenalive
Translator
Posts: 437
Joined: Thu Feb 07, 2008 4:45 am
Location: Tempe, AZ
Name: Robert

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

Post by sevenalive » Fri Dec 28, 2012 2:09 am

mjimeyg wrote:
sevenalive wrote:http://ittakestime.org/forum

The login still works, the redirect message is missing.

Error also points to the functions file.
I tried to access the link you gave but every time I try and visit the site it attempts to log me in regardless of the page I am on and I get a Facebook Error. This isn't part of the behaviour of the AlternateLogin Mod so I can only assume this is an edit you made yourself.

Also, can you provide the text of the error that tells you it is in the function file as the previous error you posted shows it to be in the al_fb_alternatelogin.php file.
I didn't make any edit to do that. Weird, I'm usually logged in so I never noticed that. I checked my forum permissions and such, it shouldn't be doing that.

I uninstalled this mod and it stopped redirecting to FB and was functioning fine. I installed the mod again (all through the latest automod version), and it did the redirect again.

Edit:

I decided to refresh my phpbb install, issue no longer happening.

I noticed you are storing everything in the template folder, including images and css. That will never pass mod validation and I don't see a reason why that's like that. Also Instead of using a physical JQuery (which is outdated btw), just link to the latest version cdn, so users always have the latest!
Last edited by sevenalive on Wed Jan 02, 2013 2:24 am, edited 2 times in total.

SwT-CarbonzZ
Registered User
Posts: 575
Joined: Tue Oct 12, 2010 7:17 am

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

Post by SwT-CarbonzZ » Fri Dec 28, 2012 7:48 am

SwT-CarbonzZ wrote:Thx for this awesome mod did the install with automod and got ZERO problems Thumps up my friend , only a fieuw thing tha blocks that you can enable and disable or not so good looking on my forum but that no problem i just wanted the login.

Mayb 1 problem but im need to test it and that in user control panel the button thats showing a bit strange , its showing the F twice under each others like this.

F Sign
F In

Thats how its looking.
Also something else i notice i went to user control panel and activated the social networking there (sharing my facebook info) so i notice bthat my signature was my laste message from facebook and when i want to go to the same pot in user control panel i cant get in its always redeirecting me. Is that normal?

I can garantee no errors on my install! :)

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

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

Post by mjimeyg » Fri Dec 28, 2012 12:07 pm

neilsav wrote:
mjimeyg wrote:
neilsav wrote:
mjimeyg wrote:
neilsav wrote:This is weird, after months of using this plugin all of the sudden I am getting this error when trying to use facebook connect (http://www.thelocalgolfer.com/golf-foru ... e=register#):

An error occurred. Please try again later.

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

Did something change on Facebook's side?
I haven't noticed any changes and I haven't made any changes to the alternate login facebook code.

I can only suggest rechecking all your keys, secrets and urls match up in the ACP and the Facebook app page.
Just reset the secret, the URL's and Keys match exactly. I did notice in the facebook settings it does require a secure canvas URL - does facebook now require SSL? Anything else to try?
Where are you seeing the aforementioned error? Whenever I try to sign up to your site I get redirected to a Facebook Error page with no details.

Is your Facebook App in Sandbox Mode?
If you are not logged in to facebook you will get the error you received. If you are logged in to facebook you will see "Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration."

My app is not in sandbox mode, facebook must have changed something, as I have had this working for 6 months.
Unfortunately at this point I am out of ideas. The only thing I can suggest is updating to the latest version of the MOD. As you said, it worked for 6 months, I can't remember any changes to the core FB API that I needed to adapt the MOD to but it is always better to use the latest version.
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,Twitter,OpenID)

Post by mjimeyg » Fri Dec 28, 2012 12:10 pm

SwT-CarbonzZ wrote:
SwT-CarbonzZ wrote:Thx for this awesome mod did the install with automod and got ZERO problems Thumps up my friend , only a fieuw thing tha blocks that you can enable and disable or not so good looking on my forum but that no problem i just wanted the login.

Mayb 1 problem but im need to test it and that in user control panel the button thats showing a bit strange , its showing the F twice under each others like this.

F Sign
F In

Thats how its looking.
Also something else i notice i went to user control panel and activated the social networking there (sharing my facebook info) so i notice bthat my signature was my laste message from facebook and when i want to go to the same pot in user control panel i cant get in its always redeirecting me. Is that normal?

I can garantee no errors on my install! :)
I am not getting your first problem myself, so I can only suggest you check the code is correct.

The second issue with being redirected I am getting and will look into that.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

User avatar
robra
Registered User
Posts: 147
Joined: Thu Dec 09, 2010 2:09 am
Location: Brazil

Small errors to fix

Post by robra » Fri Dec 28, 2012 1:06 pm

1) I had a problem with the button "connect with facebook" of the register page(ucp_register.html) and the button of the index page(index_body.html). The button of the login page(login_body.html) works correctly.
The problem is that the button of the register page and of the index page, after login through it, redirect to wrong main page URL, in the other words, instead redirect to the URL www.domain.com.br/forum/index.php did for the URL http://www.domain.com.br/forum/.index.php adding a "point" before text index.php at the end of URL.
In the file install_mod.xml installing the MOD for Prosilver, the lines for the block with the buttons of social networks are:
- login_body.html:

Code: Select all

<!-- IF S_AL_FB_ENABLED --> 
            <a onclick="window.location='alternatelogin/al_fb_connect.php{S_RETURN_TO_PAGE}';" href="#"> 
                    <img src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" alt="Login with your Facebook account!" /> 
            </a> 
        <!-- ENDIF -->
- ucp_register.html:

Code: Select all

<!-- IF S_AL_FB_ENABLED --> 
            <a onclick="window.location='alternatelogin/al_fb_connect.php';" href="#"> 
                    <img src="http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_long.gif" alt="Login with your Facebook account!" /> 
            </a> 
        <!-- ENDIF -->
- index_body.html:

Code: Select all

<!-- IF S_AL_FB_ENABLED --> 
            <a onclick="window.location='alternatelogin/al_fb_connect.php';" href="#" class="fb_button fb_button_medium"><span class="fb_button_text">{L_SIGN_IN}</span></a> 
        <!-- ENDIF -->
The line that contains the information to redirect to the main page after log in, and it's working properly in login_body.html is:

Code: Select all

<a onclick="window.location='alternatelogin/al_fb_connect.php{S_RETURN_TO_PAGE}';" href="#">
In the index_body.html and ucp_regiser.html files, their line are this:
<a onclick="window.location='alternatelogin/al_fb_connect.php';" href="#">

:arrow: The problem was solved replacing this...
<a onclick="window.location='alternatelogin/al_fb_connect.php';" href="#">... for this:

Code: Select all

<a onclick="window.location='alternatelogin/al_fb_connect.php{S_RETURN_TO_PAGE}';" href="#">
... including on style Subsilver2 too.

2) In the login_body.html, the lines are:

Code: Select all

<fieldset>
			<legend>Sign-in or Create New Account</legend>
			<div id="openid_choice">
				<p>Please click your account provider:</p>
				<div id="openid_btns"></div>
			</div>
In the index_body.html and ucp_regiser.html files, the same lines are:

Code: Select all

<fieldset>
			
			<div id="openid_choice">
				
				<div id="openid_btns"></div>
			</div>
So, was only add the informations <legend>Sign-in or Create New Account</legend> and
<p>Please click your account provider:</p> that was missing.

[].

User avatar
Luckyluciano
Registered User
Posts: 93
Joined: Tue Feb 05, 2008 11:09 pm
Location: Italy
Name: Luciano
Contact:

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

Post by Luckyluciano » Mon Dec 31, 2012 11:28 am

Small bug in root\styles\prosilver\template\ucp_alternatelogin.html

search

Code: Select all

<dt><label for="fb_status_sync">{L_FB_SYNC}:</label></dt> 
replace with

Code: Select all

<dt><label for="fb_status_sync">{L_FB_STATUS}:</label></dt> 
in root\styles\prosilver\template\login_body.html

search

Code: Select all

<a href="{U_AL_TW_REQUEST}"><img src="alternatelogin/images/sign-in-with-twitter-l.png" alt="Windows Live Connect" /></a> 
replace

Code: Select all

<a href="{U_AL_TW_REQUEST}"><img src="alternatelogin/images/sign-in-with-twitter-l.png" alt="Twitter" /></a> 
Official support Italian to Portal XL

RavenAlias
Registered User
Posts: 38
Joined: Sat Apr 08, 2006 7:55 am

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

Post by RavenAlias » Fri Jan 04, 2013 10:16 pm

Hi consof and all!
I'm trying this mod on my forum (facebook login for beginning) but it doesn't work, probably i'm missing something.

I installed it with automod (latest version), i have the lastest version of phpbb too.
I created a facebook app, i obtained api and secret, i inserted site domain too and all seems to be well done, but for example my dialog is not as that on first page, i cannot choose a nickname o something of similar.
i can join with a default nickname "peperone", an account with my email, but nothing more.

Im missing something or through this mod should i can login with my "fist name, surname" as on fb? or choose a nickname?

i ask you a favour: try to login my forum HERE and give me your feedbacks, help.

thanks boys, i'm crazing on it :?

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

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

Post by mjimeyg » Fri Jan 04, 2013 11:25 pm

RavenAlias wrote:Hi consof and all!
I'm trying this mod on my forum (facebook login for beginning) but it doesn't work, probably i'm missing something.

I installed it with automod (latest version), i have the lastest version of phpbb too.
I created a facebook app, i obtained api and secret, i inserted site domain too and all seems to be well done, but for example my dialog is not as that on first page, i cannot choose a nickname o something of similar.
i can join with a default nickname "peperone", an account with my email, but nothing more.

Im missing something or through this mod should i can login with my "fist name, surname" as on fb? or choose a nickname?

i ask you a favour: try to login my forum HERE and give me your feedbacks, help.


thanks boys, i'm crazing on it :?
It looks like you have Quick Accounts enabled. You can disable it in the ACP->ConSof->Facebook Manager it is the first option in the option lists.
Questions answered via forums only, no pms or emails. Thank you.

ConSof Alternate Login for phpBB

Image Image

RavenAlias
Registered User
Posts: 38
Joined: Sat Apr 08, 2006 7:55 am

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

Post by RavenAlias » Sat Jan 05, 2013 11:44 am

thanks!
i just see your nickname "Martin Jim", thanks for your help.

So, i just disabled that option but it's the same.

maybe you didn't notice a warning message after login and before the dialog to choose a nickname (dialog that doesn't appear but the mod chooses a default nickname), the message is:
"Warning: require_once(../mkportal/include/PHPBB3/php_out.php): failed to open stream: No such file or directory in /web/htdocs/www.MYDOMAIN/home/forum/includes/functions.php on line 4924 Fatal error: require_once(): Failed opening required '../mkportal/include/PHPBB3/php_out.php' (include_path='.:/php5.3/lib/php/') in /web/htdocs/www.MYDOMAIN/home/forum/includes/functions.php on line 4924"

My forum is INSIDE a cms, to put it inside i inserted a modifcation in includes/functions.php.
i paste here the code, maybe you could help me to solve the problem.

to open my phpbb3 in my cms the modification is:

Code: Select all

--- edit includes/functions.php ---

FIND
$template->display('body');

garbage_collection();

AFTER ADD

if (strpos($_SERVER['REQUEST_URI'], '/adm/') === false) {
	define ( 'IN_MKP', 1 );
	require_once "../mkportal/include/PHPBB3/php_out.php";
	mkportal_board_out();
}
any solution?
thanks for your help, i really appreciate it!

RavenAlias
Registered User
Posts: 38
Joined: Sat Apr 08, 2006 7:55 am

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

Post by RavenAlias » Mon Jan 07, 2013 9:30 am

Any help? :-(

RavenAlias
Registered User
Posts: 38
Joined: Sat Apr 08, 2006 7:55 am

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

Post by RavenAlias » Mon Jan 07, 2013 12:25 pm

Hola!
I installed this mod on a fresh phpbb3 HERE

But it's the same, the "second dialog", to choose an username doesn't appear.
What is wrong?

thanks!

PS: fb quick accounts is not active..

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

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

Post by mjimeyg » Mon Jan 07, 2013 3:31 pm

RavenAlias wrote:thanks!
i just see your nickname "Martin Jim", thanks for your help.

So, i just disabled that option but it's the same.

maybe you didn't notice a warning message after login and before the dialog to choose a nickname (dialog that doesn't appear but the mod chooses a default nickname), the message is:
"Warning: require_once(../mkportal/include/PHPBB3/php_out.php): failed to open stream: No such file or directory in /web/htdocs/www.MYDOMAIN/home/forum/includes/functions.php on line 4924 Fatal error: require_once(): Failed opening required '../mkportal/include/PHPBB3/php_out.php' (include_path='.:/php5.3/lib/php/') in /web/htdocs/www.MYDOMAIN/home/forum/includes/functions.php on line 4924"

My forum is INSIDE a cms, to put it inside i inserted a modifcation in includes/functions.php.
i paste here the code, maybe you could help me to solve the problem.

to open my phpbb3 in my cms the modification is:

Code: Select all

--- edit includes/functions.php ---

FIND
$template->display('body');

garbage_collection();

AFTER ADD

if (strpos($_SERVER['REQUEST_URI'], '/adm/') === false) {
	define ( 'IN_MKP', 1 );
	require_once "../mkportal/include/PHPBB3/php_out.php";
	mkportal_board_out();
}
any solution?
thanks for your help, i really appreciate it!
If you delete the user Martin Jim I can try again and see if the error appears, but from the looks of the error you posted it doesn't seem to have much if anything to do with this MOD.
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”