News:

Wondering if this will always be free?  See why free is better.

Main Menu

SA Google+ intergration

Started by SMFHacks.com Team, February 16, 2012, 11:16:04 AM

Previous topic - Next topic

Nitesh Kunnath

Quote from: SA™ on March 18, 2012, 03:25:48 AM
in that file find

$gplus_log_url = !empty($modSettings['gp_app_custon_logurl']) ? $modSettings['gp_app_custon_logurl'] : $scripturl;

redirectexit($gplus_log_url);


replace with

if ((!empty($_SESSION['login_url']) && strpos($_SESSION['login_url'], 'enotify')) || empty($_SESSION['login_url'])){

   $gplus_log_url = !empty($modSettings['gp_app_custon_logurl']) ? $modSettings['gp_app_custon_logurl'] : $scripturl;

   redirectexit($gplus_log_url);
}
else{
   
    $temp = $_SESSION['login_url'];
    $gplus_log_url = !empty($modSettings['tw_app_log_url']) ? $modSettings['tw_app_log_url'] : $temp;
    unset($_SESSION['login_url']);
    redirectexit($gplus_log_url);
}

Thanks a lot buddy :)

Nitesh Kunnath

#21
@SA:

I get this error while registering :(

Fatal error: Uncaught exception 'apiServiceException' with message 'Error calling GET https://www.googleapis.com/plus/v1/people/me?alt=json&key=...................................

SA™

you registerd with google plus?

the plus/v1/people/me api returns a 404 Not Found when the user hasn't registered for Google+

Quote from: shumilica on February 26, 2012, 07:10:18 AM
It was because i was trying to log on with a google apps account which doesn't have g+ enabled.
When I tried to log in from a google account with g+ it worked flawlessly.
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Nitesh Kunnath

Quote from: SA™ on March 18, 2012, 06:17:27 PM
you registerd with google plus?

the plus/v1/people/me api returns a 404 Not Found when the user hasn't registered for Google+

Quote from: shumilica on February 26, 2012, 07:10:18 AM
It was because i was trying to log on with a google apps account which doesn't have g+ enabled.
When I tried to log in from a google account with g+ it worked flawlessly.
I guess I logged in with my another account (Which isnt registered with Google+)...let me check once again !!!

BTW, is there a provision to show a message to user as : "Sorry friend, you need to have a Google+ account"

The current thrown error looks like the forum is having a bug and user will have a bad impression on forum !!!

Nitesh Kunnath

Update: I checked, its showing the same error for my actual gmail account which is registered with Google+

Can you try it here ? : http://forum.gizmolord.com

SA™

yes we can catch errors with try and catch functions this will be done in the next realse

Quote from: die2mrw007 on March 18, 2012, 06:27:56 PM
Update: I checked, its showing the same error for my actual gmail account which is registered with Google+

Can you try it here ? : http://forum.gizmolord.com

thats a different error there is a fix here for that
http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=48

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Nitesh Kunnath

Quote from: SA™ on March 18, 2012, 06:29:55 PM
yes we can catch errors with try and catch functions this will be done in the next realse

Quote from: die2mrw007 on March 18, 2012, 06:27:56 PM
Update: I checked, its showing the same error for my actual gmail account which is registered with Google+

Can you try it here ? : http://forum.gizmolord.com

thats a different error there is a fix here for that
http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=48


Line 32 ?? :o

I am confused.... its currently a closing tag (check screenshot).
I have attached the file too !!!

SA™

wrong file apiFileCache.php os the one you want
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Nitesh Kunnath

Quote from: SA™ on March 18, 2012, 06:41:45 PM
wrong file apiFileCache.php os the one you want
Ooops, extremely sorry !!! My mistake !!!
Just edited the apiFileCache.php file and now its perfect :)
Thanks to you !!!

distante

Quote from: SA™ on March 18, 2012, 06:29:55 PM
yes we can catch errors with try and catch functions this will be done in the next realse

Quote from: die2mrw007 on March 18, 2012, 06:27:56 PM
Update: I checked, its showing the same error for my actual gmail account which is registered with Google+

Can you try it here ? : http://forum.gizmolord.com

thats a different error there is a fix here for that
http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=48



This is a must do fix?

Nitesh Kunnath

Quote from: distante on March 18, 2012, 09:07:28 PM
Quote from: SA™ on March 18, 2012, 06:29:55 PM
yes we can catch errors with try and catch functions this will be done in the next realse

Quote from: die2mrw007 on March 18, 2012, 06:27:56 PM
Update: I checked, its showing the same error for my actual gmail account which is registered with Google+

Can you try it here ? : http://forum.gizmolord.com

thats a different error there is a fix here for that
http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=48



This is a must do fix?
I guess not actually..... I am using Enotify and hence some codes needs to be changed

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

new version addded

Quoteadded check for valide gplus accounts when regisring
fixed issue with guest acesss dissabled
updated the gplus sdk to the latest version
added support for auto login
added support for importing avatars
fixxed issue Could not create storage directory:
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

distante


Nitesh Kunnath

Quote from: SA™ on March 19, 2012, 03:16:30 AM
new version addded

Quoteadded check for valide gplus accounts when regisring
fixed issue with guest acesss dissabled
updated the gplus sdk to the latest version
added support for auto login
added support for importing avatars
fixxed issue Could not create storage directory:
Wow, thatz so fast update :)

SA™

there be another one in a few days aswell that will use oauth2 authentacion flow  instead than we can get an email adresse and do auto register
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Nitesh Kunnath

Quote from: SA™ on March 19, 2012, 03:17:03 PM
there be another one in a few days aswell that will use oauth2 authentacion flow  instead than we can get an email adresse and do auto register
Cool :)
Looking forward to it :)

SA™

new version added

Quote
changed to oauth2 authentication
mod now works with standard google accounts aswell as plus accounts
added support for auto register
fixed approval promt now it only show on first authorisation
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sadaam

Quote from: SA™ on February 16, 2012, 11:16:04 AM
Link to Mod

Reqirements:

  • CURL PHP extension
  • JSON PHP extension
  • PHP Version 5

Features:

  • Login with google+
  • Register with google+
  • Google+ logs
  • Set a custom login url
  • Set a custom login image
  • Choose what group google+ users goto
  • Google+1 button on boards you choose

Creating your application:

  • Visit the Google API Console to generate OAuth2 client id, OAuth2 client secret, and register your OAuth2 redirect uri.
    https://code.google.com/apis/console

  • Click on "Services" in the left column and turn on "Google+ API".

  • Click on "API Access" in the left column and click the button labeled "Create an OAuth2 client ID"

  • Give your application a name and click "Next"

  • Select "Web Application" as the "Application type"

  • Click on (more options) and in Authorized Redirect URIs enter
    http://www.example.com/index.php?action=gplus

  • in Authorized JavaScript Origins enter
    http://www.example.com

  • Click "Create client ID"

now you have your OAuth2 client id, OAuth2 client secret keys input these into gplus admin area

App setup guide with pictures

SA Google+ is released under the Mozilla Public License v1.1

Dear, i do the following steps completly but google+1 buttons not appeare at any of mu forum board plz guide me brother....

""Creating your application:
Visit the Google API Console to generate OAuth2 client id, OAuth2 client secret, and register your OAuth2 redirect uri.
https://code.google.com/apis/console
Click on "Services" in the left column and turn on "Google+ API".
Click on "API Access" in the left column and click the button labeled "Create an OAuth2 client ID"
Give your application a name and click "Next"
Select "Web Application" as the "Application type"
Click on (more options) and in Authorized Redirect URIs enter
http://www.example.com/index.php?action=gplus
in Authorized JavaScript Origins enter
http://www.example.com
Click "Create client ID" "".............

plz guide me brother...
Me feel proude to use SMF!!

SA™

set it up properly? everything is in gplus admin area
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: