SA Google+ intergration

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

Previous topic - Next topic

Adrek

Hi, today I noticed that there is one txt string that is not needed at login/register page.
I'm talking about $txt['gp_app_regonlyonce2']. In GPlus.template.php you have:
<div class="error">'.$txt['gp_app_regonlyonce1'].'<a href="'.$scripturl.'?action=gplus;area=logsync"> '.$txt['gp_app_regonlyonce2'].'</a> '.$txt['gp_app_regonlyonce2'].'</div>

So at this moment users will see Already registered? Click Here Here

The same thing is in SA Twitter Integration (Twitter.template.php):
<div class="error">'.$txt['tw_app_regonlyonce1'].'<a href="'.$scripturl.'?action=twitter;area=logsync"> '.$txt['tw_app_regonlyonce2'].'</a> '.$txt['tw_app_regonlyonce2'].'</div>
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

SA™

we acutaly need to remove the Here part from $txt['gp_app_regonlyonce1'] and leave the other string there other wise the here link wont be visable
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 -___-

Adrek

i don't think that i understand.. I just removed second  '.$txt['gp_app_regonlyonce2'].' and it works fine, no need to touch $txt['gp_app_regonlyonce1'] :)
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Eclipse16V

Hello,
maybe someone here can tell me where I must submit to the API, so this mod is.
'm Just not on and the instructions are no longer accessible.

It's about Facebook, Twitter and Google +.

Please help me.
I worked with:
SMF 2 in German

Shop:
SID Giessen

vbgamer45

Have taken over work/support of this mod.

What would help me out is if you any bugs that you know about why this modification let me know and I will try to get it fixed. Might back port it to 1.1.x as well not sure though.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Eclipse16V

I have to first find an explanation on how the whole set up on Google+.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Eclipse16V

I am now gone to the method in the existing manual only if I as wants to link my account get the following error message:
QuoteFatal error: Uncaught exception 'apiAuthException' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'' in /.../gplusauth/auth/apiOAuth2.php:105 Stack trace: #0 /.../gplusauth/apiClient.php(138): apiOAuth2->authenticate(Array) #1 /.../Sources/GPlus/GPlusHooks.php(232): apiClient->authenticate() #2 /.../Sources/GPlus/GPlus.php(116): gplus_init_auth() #3 /.../Sources/GPlus/GPlus.php(51): gplus_main() #4 [internal function]: GPlus() #5 /.../index.php(155): call_user_func('GPlus') #6 {main} thrown in /.../gplusauth/auth/apiOAuth2.php on line 105

What am I doing wrong?
I worked with:
SMF 2 in German

Shop:
SID Giessen

LOVELORD

I have problem when i try to register or do something with account i recive this error:

Server error
The website encountered an error while retrieving http://www.domain/index.php?action=gplus&code=sads122enm3uine932ni291niem9dfn9u3i2n9u1m092i1niern92i1p-. It may be down for maintenance or configured incorrectly.

I make application like it was said here. ANd enter details into google integrate settings in admin area...

Texan78

The url is domain/index.php

Notice it is missing the domain.com

Double check your settings for your domain in the app and in the mod.

Sounds like the same issues as you are having with the other two integration mods. You don't have the mod and apps configured correctly for your domain.

LOVELORD

Quote from: Texan78 on August 28, 2012, 08:48:24 PM
The url is domain/index.php

Notice it is missing the domain.com

Double check your settings for your domain in the app and in the mod.

Sounds like the same issues as you are having with the other two integration mods. You don't have the mod and apps configured correctly for your domain.

Here is my like i have in google api:


Client ID:    

Email address:    

Client secret:    

Redirect URIs:    http://www.domain.rs/index.php?action=gplus
JavaScript origins:    http://www.domain.rs


I remove first 3 thing for security...

I dont know where is problem... This is configuration i use for forum

kamili34

What I need to post here boards to show google+1 button on ? example, I post borardindex but still cant see google plus icon  ::)

Adrek

You have to add board ID.
for example: if link to board is http://www.simplemachines.org/community/index.php?board=59.0 board ID is 59

If you want to add more boards add another ID after comma.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

kamili34

Ok it works, but I set id board for example 5 but I see google plus icon only when I open a topic is that correct ?

How to put google + icon on index page ?

Adrek

Yeah, that's how this works.
For other Google +1 buttons you should check out Mod Site:
http://custom.simplemachines.org/mods/index.php?action=search;basic_search=google
I think that closest thing for this would be => http://custom.simplemachines.org/mods/index.php?mod=3354
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

hotwheels

Okay, trying not to clog up the site with another post, so i will just ask here for now.....I have been having problems with my site since i installed sa gplus and today i had over 60,000 gplus errors....I cleared all of the errors and shut off gplus, no errors for over an hour. I turned it back on and i am getting errors every minute........This is currently the main error i am getting:


Apply Filter: Only show the error messages of this URL
http://www.ratrodnation.com/forum/index.php?pretty;action=media&amp;sa=item;in=390desc;PHPSESSID=2532ea30df08bc1c3a3a424afb73e0d0
Apply Filter: Only show the errors with the same message
8: Undefined index: gp_app_custon_logimg
Apply Filter: Only show the errors from this file
File: /home/*****/public_html/forum/Sources/GPlus/GPlusHooks.php
Line: 74

Within 3 minutes of turning this back on, i already have over 382 errors.......


Apply Filter: Only show the error messages of this URL
http://www.ratrodnation.com/forum/index.php?pretty;board=canada;topic=canada-who.msg11635
Apply Filter: Only show the errors with the same message
8: Undefined index: gp_app_custon_logimg
Apply Filter: Only show the errors from this file
File: /home/*******/public_html/forum/Sources/GPlus/GPlusHooks.php
Line: 73

Apply Filter: Only show the error messages of this URL
http://www.ratrodnation.com/forum/index.php?pretty;board=canada;topic=canada-who.msg11635
Apply Filter: Only show the errors with the same message
8: Undefined index: gp_app_custon_logimg
Apply Filter: Only show the errors from this file
File: /home/********/public_html/forum/Sources/GPlus/GPlusHooks.php
Line: 72

This seems to be the most common factor "gp_app_custon_logimg"

Any help to solve my site errors, would be greatly appreciated.......

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

hotwheels

Yes, except for the line number.......seem to be 3 different lines. 72,73,74.

hotwheels

This is the php file area where the numbers go to:

<php>66:    

   

if (!$context['user']['is_logged']){
67:    

   

   
68:    

   

   

gplus_init_auth_url();
69:    

   

70:    

   

    $txt['guestnew'] = sprintf($txt['welcome_guest'], $txt['guest_title']);
71:    

   

       
72:    

   

    $buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$authUrl.'"><img src="'.$modSettings['gp_app_custon_logimg'].'" alt="" /></a><div class="info">'. $txt['guestnew']. '</div>', $buffer);

   

==>73:    

   

    $buffer = preg_replace('~(' . preg_quote($txt['forgot_your_password']. '</a></p>') . ')~', $txt['forgot_your_password']. '</a></p><div align="center"><a href="'.$authUrl.'"><img src="'.$modSettings['gp_app_custon_logimg'].'" alt="" /></a></div>', $buffer);
74:    

   

    $buffer = preg_replace('~(' . preg_quote('<dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>') . ')~','<dt><strong>'.$txt['gp_app_rwf'].':</strong><div class="smalltext">'.$txt['gp_app_regmay'].'</div></dt><dd><a href="'.$authUrl.'"><img src="'.$modSettings['gp_app_custon_logimg'].'" alt="" /></a></dd><dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>', $buffer);
75:    

   

}
76:    

   

return $buffer;</php>

vbgamer45

You need to set a Custom login Image in Google+ Settings
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

hotwheels

#59
What exactly is that? I tried doing a google search and there really isn't any info on a custom log in image........

Okay, i found a custom image i think.......i used the link for the image. Now when i click on google plus and the description of the page i am trying to share on google plus which has an image, all i get is the google image i used for the sa gplus.....

Advertisement: