News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Social Login

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

Previous topic - Next topic

saurabh1938

Anyone ... please help?
Visit my forum : www.gotripperz.com

markus001

Guys, anyone of you have tried loginradius's Social login plugin? Source: hxxp:loginradius.com/social-login [nonactive]

ⓜⓤⓡⓐⓣ

Hi, Simpleportal to Easier add icons to social login.

Add new block and slect "PHP content"

Add this code{
global $txt, $modSettings, $boardurl;

if (!empty ($modSettings['oasl_api_key']) && !empty ($modSettings['oasl_enabled_providers']))
{
// Extract the chosen providers.
$providers = explode (',', trim ($modSettings['oasl_enabled_providers']));

// Create Random integer to prevent id collision.
$rand = mt_rand (99999, 9999999);

// Separe from the traditional login.
echo '<hr />';

// Display error messages if there are any.
if ( isset ($_REQUEST['oasl_err']))
{
switch ($_REQUEST['oasl_err'])
{
case 'user_does_not_exist':
echo '<p class="error">'.$txt['oasl_user_does_not_exist'].'</p>';
break;

case 'user_require_activation':
echo '<p class="error">'.$txt['oasl_user_require_activation'].'</p>';
break;

case 'user_registration_disabled':
echo '<p class="error">'.$txt['oasl_user_may_not_register'].'</p>';
break;
}
}

if ( ! empty ($modSettings['oasl_settings_login_caption']))
{
echo '
<p style="text-align:left;">
<strong>', $modSettings['oasl_settings_login_caption'], '</strong>
</p>';
}

echo '
<p style="text-align:left;">
<div class="oneall_social_login_providers" id="oneall_social_login_providers_', $rand, '"></div>
<script type="text/javascript">
oneall.api.plugins.social_login.build("oneall_social_login_providers_', $rand, '", {
"providers": [\'', implode ("', '", $providers), '\'],
"callback_uri": \'', $boardurl, '/index.php?action=oasl_callback;oasl_source=login\',
});
</script>
<!-- OneAll.com / Social Login for SMF -->
</p>';
}
}


According to the portal structure, specify the location.


mystik1

I am getting the problem of it no longer logging users in.  It says they have been logged in, and proceeds to redirect, but they are not actually logged in.  So, it just goes back to the main/login page.    Any ideas on a fix?

ⓜⓤⓡⓐⓣ

I tried to do the translation in Turkish. 100%


Before the ?> tag in Modifications.turkish-utf8.php I add the following:
// OneAll Social Login (https://docs.oneall.com/plugins/)
$txt['oasl_title'] = 'Sosyal giriş';
$txt['oasl_config'] = 'Yapılandırma';
$txt['oasl_settings_descr'] = 'Sosyal giriş Ayarları';
$txt['oasl_user_does_not_exist'] = "<strong>Bu sosyal ağ henüz bir hesaba bağlanmış değil.</strong><br /><br />Yeni bir hesap oluşturmak için kayıt formunu kullanınız. Zaten bir hesabınız varsa, bunu sosyal ağa bağlanmak için Lütfen profil ayarlarınızı açın.";
$txt['oasl_user_may_not_register'] = 'Üzgünüz, yetkili yeni kullanıcılar için kayıt devre dışı bıraktı. ';
$txt['oasl_user_require_activation'] = 'Hesabınız oluşturuldu fakat doğrulanması gerekiyor. Posta kutunuzu kontrol edin ve doğrulama e-postadaki linke tıklayınız.';
// OneAll Social Login (https://docs.oneall.com/plugins/)

mystik1

I had to abandon this mod.  Sorry; it stopped working.  Switched to this one in case others are having the same problem I was:

http://www.smfpacks.com/sociallogin [nofollow]

It works great!

roshaoar

Hello,

When I installed and uninstalled this mod, it left an orphan "openID" login form field on index. How would I remove it, please?

Thank you for your time

Dylert

Great mod! Thank you!

When poeple register with Facebook the avatars don't work. The avatar adress is like this: http://hellasforum.net/avatars/https://graph.facebook.com/10153345686416663/picture?type=large
(my domain is www.hellasforum.net) How can I get the right avatar path?

And: How can I change the icons? It would have been nice with something like this: http://www.auction-gaming.com/img/facebook-connect.png

Thanks in advanve! :)

DSystem

Quote from: DSystem on February 17, 2015, 07:57:46 AM
Already for some time I look at this mod. But now I decided to wait.

The NIBOGO (smfpacks) doing a no monthly fee.

http://www.smfpacks.com/b147/facebook-immediate-register/2867/

Got ready and I am already using. -> http://www.smfpacks.com/sociallogin


discusstalk.com

Hello guys,

I am new to this forum and new to SMF. I have installed SMF and moved my MyBB forum to SMF. Had few glitches but finally got it going.

I have installed the Social Login plugin and configured it but I am not seeing the Login buttons next to the traditional login buttons

Here is the link to my forum discusstalk dot com

As you can see- the buttons are only visible after user clicks on Login

I want to have them on main page so users will know that the option to login with Google,  Facebook and Yahoo IDs is available

Please help

Kindred

This mod has temporarily been removed from distribution pending confirmation of the existence of a potential security issue (or lack thereof - in which case, the mod will be restored)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Dream of Omnimaga

Is there a way to quickly disable this mod when OneAll server is extremely slow or down? When that happens, my site takes forever to load.

Or maybe there should be some sort of timeout feature that we can set in the admin panel so that when the SMF install can't establish a connection with OneAll server, it just acts like if the mod was not installed.

420Connect.co.uk

#253
Can anyone help in centering the social media icons that are displayed?

it's driving me nuts trying to figure it out  :P

The icons are in a few places but I think solving one set will shift them all / I can copy the example but you can see what I mean if you scroll down the page here: http://www.420connect.co.uk/index.php?action=register

Kind Regards

edit:

I was able to center the one one the registration page but am still struggling to center the one on the login page / in my custom Simple Portal block..

both use:

{
global $txt, $modSettings, $boardurl;

if (!empty ($modSettings['oasl_api_key']) && !empty ($modSettings['oasl_enabled_providers']))
{
// Extract the chosen providers.
$providers = explode (',', trim ($modSettings['oasl_enabled_providers']));

// Create Random integer to prevent id collision.
$rand = mt_rand (99999, 9999999);

// Separe from the traditional login.
echo '<hr />';

// Display error messages if there are any.
if ( isset ($_REQUEST['oasl_err']))
{
switch ($_REQUEST['oasl_err'])
{
case 'user_does_not_exist':
echo '<p class="error">'.$txt['oasl_user_does_not_exist'].'</p>';
break;

case 'user_require_activation':
echo '<p class="error">'.$txt['oasl_user_require_activation'].'</p>';
break;

case 'user_registration_disabled':
echo '<p class="error">'.$txt['oasl_user_may_not_register'].'</p>';
break;
}
}

if ( ! empty ($modSettings['oasl_settings_login_caption']))
{
echo '
<p style="text-align:left;">
<strong>', $modSettings['oasl_settings_login_caption'], '</strong>
</p>';
}

echo '
<p style="text-align:left;">
<div class="oneall_social_login_providers" id="oneall_social_login_providers_', $rand, '"></div>
<script type="text/javascript">
oneall.api.plugins.social_login.build("oneall_social_login_providers_', $rand, '", {
"providers": [\'', implode ("', '", $providers), '\'],
"callback_uri": \'', $boardurl, '/index.php?action=oasl_callback;oasl_source=login\',
});
</script>
<!-- OneAll.com / Social Login for SMF -->
</p>';
}
}
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

420Connect.co.uk

Solved with the help of Claude!  O:)

add this to the end of your index.css


.oneall_social_login_providers {
margin: 0 auto;
width: 152px;
}
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

ⓜⓤⓡⓐⓣ

Quote from: 420Connect.co.uk on July 27, 2015, 08:12:03 AM
Solved with the help of Claude!  O:)

add this to the end of your index.css


.oneall_social_login_providers {
margin: 0 auto;
width: 152px;
}

Good job, thank you.

Jade Elizabeth

Hey for some reason it's not grabbing avatars, it's setting it to no avatar.

I'd also like to be able to specify to take the large picture not the small one. I know you can do this because I have OneAll on my other non SMF websites and it is a setting on all of them. Are you able to look into it please? :)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

stefan357965

Quote from: 420Connect.co.uk on July 27, 2015, 08:12:03 AM
Solved with the help of Claude!  O:)

add this to the end of your index.css


.oneall_social_login_providers {
margin: 0 auto;
width: 152px;
}


Great! I was so scared, but this fixed it :D

ⓜⓤⓡⓐⓣ

Hello, profile from facebook not get the picture. The avatar ftp folder is empty.

Search way that Internet browsers.:
<img class="avatar" src="http://pcdmisforum.org/avatars/https://graph.facebook.com/10153587892709089/picture?type=large" alt="">

MarkoKg

Hey Guys,

Is there a way to add login buttons under the "login box" that I have on top-right corner in header? I don't know which code should I add to index.template, I tried with a code from oneall site, and the buttons is showing but it won't log me in at all using those buttons. I guess that the callback url is wrong, i used ...index.php?action=oasl_callback;oasl_source=login
Any advice please?

Advertisement: