News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Social Login

Started by Claude, OneAll, February 01, 2013, 03:57:31 PM

Previous topic - Next topic

Mick.

Let's put the scripts together...

<script type="text/javascript">
var oneall_js_protocol = (("https:" == document.location.protocol) ? "https" : "http");
document.write(unescape("%3Cscript src="" + oneall_js_protocol + "://appliancejunk.api.oneall.com/socialize/library.js" type="text/javascript"%3E%3C/script%3E"));
</script>

<script type="text/javascript">
oneall.api.plugins.social_login.build("social_login_container", {
  "providers" :  ["facebook", "twitter", "google", "yahoo", "openid"],
  "callback_uri": "http://appliancejunk.com"
});
</script>


...and let's try it differently.....

Find:
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
<div class="info">', $txt['quick_login_dec'], '</div>';


Replace with:
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
<div class="info">', $txt['quick_login_dec'], '</div>
                                        <div id="social_login_container"></div>';

ApplianceJunk


Claude, OneAll

#142

Mick.

Hmmmm,...... It works everywhere else but the buttons added.   :o

Are we missing some sort line like this?

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

ApplianceJunk

Quote from: - Claude - on May 09, 2013, 07:13:43 PM
Hello,

you have to use the following callback_uri:
http://appliancejunk.com/forums/index.php?action=oasl_callback;oasl_source=login


That seem to do the trick, thanks!

Now how did you or how could I have come up with that?

When using the Social Login Wizard there is a box that says...

Setup your callback URL:

I just put in my website URL and then it created this line in the code it created after I reselect the buttons I want to use.



  'callback_uri': 'http://appliancejunk.com'



Guessing I needed to do some more reading someplace.



Claude, OneAll

I've had a look at appliancejunk.com.

To add the buttons on top, you need to replace oasl_source=login with oasl_source=register.

Like this:
http://appliancejunk.com/forums/index.php?action=oasl_callback;oasl_source=register

Or you will get this error for new users: This social network has not yet been linked to an account.
You can also enter this callback_uri in the wizard.

The callback_uri is a full url to a script on your server. This script is called be the OneAll API.
The callback script comes with the SMF module and you call it by using /index.php?action=oasl_callback


ApplianceJunk

QuoteThis social network has not yet been linked to an account.

Yes, at times I seen that message too.

Tried so many different things and between a few different browsers I'm not even sure when I seen that message anymore, lol..

Sometimes it seemed I would get that message and sometimes it would just take me back to the site after it said I was logging in with Facebook/Twitter? yet I would not be logged in.

All seems good now. :D

Not sure if you had the chance to read some of my other questions in my above post yet.

What are the limitations on the free account at OneAll.com compared to say the Basic $8/month (All Social Networks
5,000 Users) package?

What does 5,000 Users mean?

Really impressed with your mod and OneAll.com


Claude, OneAll

I still see this on top of your forum:

<script type="text/javascript">
oneall.api.plugins.social_login.build("social_login_container", {
"providers" : ["facebook", "twitter", "google", "yahoo", "openid"],
"callback_uri": "http://appliancejunk.com/forums/index.php?action=oasl_callback;oasl_source=login"
});
</script>


There you need to replace oasl_source=login by oasl_source=register.

You will probably not notice the error yourself because you have already registered before.
New users will however see the error.

With the Basic plan you can remove the branding, customize the icons and raise the user limitation.
5,000 means that 5,000 unique users can register per year through Social Login.
Multiple logins count only once and the counter is reset each year.

I'm glad to hear that you like our services :) Thank you!




ApplianceJunk

QuoteThere you need to replace oasl_source=login by oasl_source=register.

Ok, I changed it. Could you please check it again to see if I have it correct now, thanks!

Quote5,000 means that 5,000 unique users can register per year through Social Login.

Here I was thinking it meant 5,000/month lol...

Being able to customize it would be cool.

What are the limitations for the free account then?

Also when I go to my Forum Profile page I see the social networks I'm using as shown in the attachment.
As the forum admin will I be able to see this information in other members Forum Profiles if they used one of the social networks to create a account on our site?




ApplianceJunk

Trying to use smaller buttons now. Thinking I have to do it with css as talked about on this page.

http://docs.oneall.com/services/customization/social-login/stylesheet/

I copy and pasted the css code they have on that page so I could past the link to my css file into the Social Login Wizard at oneall.com
I can see how the Social Login Wizard is now using the info in my css file on our site, but it looks like I need to create the css info from scratch along with uploading my own images to use.

Would like to take what I have shown now in the attachment, make the buttons a little smaller, little closer together and remove the text from under them.

Any help with the css would be greatly appreciated.

Thanks,

ApplianceJunk

No joy over the weekend. :(

David111567

Can't log in with Twitter.  Created the app properly. All should work fine.  When you try to log on, nothing happens.  No error given, but no log-in either. it just sits there.

ApplianceJunk

Well I seem to have received more support before I purchased a subscription from oneall.com :(

Being I have yet to receive any replies from my email to them from last week I will try here again.

Today I noticed these errors in our log.

Quote
http://appliancejunk.com/forums/index.php?action=oasl_callback;oasl_source=register
2: First parameter must either be an object or the name of an existing class
File: /home/applianc/public_html/forums/Sources/OneallSocialLogin.sdk.php
Line: 130

and

Quote
http://appliancejunk.com/forums/index.php?action=oasl_callback;oasl_source=register
8: Trying to get property of non-object
File: /home/applianc/public_html/forums/Sources/OneallSocialLogin.sdk.php
Line: 79

Any idea why?

Thanks,

Claude, OneAll

Hello,

sorry for the delay in answering your email.
I've send you an email with the CSS code to use!

Thank you also for the bug report. 
I've had a look and this error probably occurs when a somebody uses the browser's back button after having connected with Social Login.

I will try to get this fixed as soon as possible!

Regards,

ApplianceJunk

#154
Claude was very helpful in creating the .css file for me to get our social buttons looking exactly like I wanted on our site.

Love oneall.com and this mod, thanks!

Claude, OneAll

Thank you very much! ;)

Raths Rants

Quote from: ApplianceJunk on May 16, 2013, 08:46:27 AM
Claude was very helpful in creating the .css file for me to get our social buttons looking exactly like I wanted on our site.

Love oneall.com and this mod, thanks!

Here is a question. I am using SimplePortal. I read all the posts but did not see this answer. I would like to use a portal block instead of using a file edit. SimplePortal allows you to add custom code boxes in BBC, HTML, PHP.

Is there something I could past into one of these formats to create the block and it work correctly without having to do all the file edits?

My reasoning behind this is you can set the portal block to "Guest" for users to sign in / register. Once they are logged in they will not see the portal block again until they log out.
The DDC Network
a lot of hard work goes into easy

Claude, OneAll

Hello,

please try this code:

<div id="social_login"></div>
<script type="text/javascript">
oneall.api.plugins.social_login.build("social_login", {
"providers" : ["facebook", "twitter", "google", "yahoo"],
"callback_uri": "http://ddcgaming.com/site/index.php?action=oasl_callback;oasl_source=login"
});
</script>


The Social Login mod must be installed and setup for this to work.

Raths Rants

The DDC Network
a lot of hard work goes into easy

Swayforth

This is exactly what i am looking for. The walk through instructions were outstanding, the best i have seen. No issues to report thus far.

I am wondering, is there a way to restrict registration through social media only?

-Background info-
I am setting up a community that is based on a google game. All users must have a gmail account to play the game. I want to restrict registration to only be done through the gmail integration of your mod. Is there a setting i can set to make this happen?

I have tried turning off registration but then no one can register. I knew this but i had to try right? :)

I appreciate your help with this.

Advertisement: