Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

No Google + Social Connect?

I am trying to setup google + with vanilla but there is no option in the social integration. How can I get the option?

http://blog.vanillaforums.com/help/social-connect-google-plus/

«1

Comments

  • R_JR_J Ex-Fanboy Munich Admin

    Your request is less than 10 hours old, are you in a hurry?

    Have you looked for answers in the forum? What have you found, what have you tried?
    The link above points to vanillaforums.com. Blog posts there might be helpful, but because they are related to the hosted version of Vanilla they do not have to be useful for the OS version of Vanilla.

    Have you checked the addons repository at GitHub? I think there is a Google+ connector, but I do not know if that is working with 2.1.

  • hgtonighthgtonight ∞ · New Moderator

    Last I tried, the G+ connector worked in 2.1.x: https://github.com/vanilla/addons/tree/master/plugins/GooglePlus

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • edited November 2014

    @R_J said:
    Your request is less than 10 hours old, are you in a hurry?

    Have you looked for answers in the forum? What have you found, what have you tried?
    The link above points to vanillaforums.com. Blog posts there might be helpful, but because they are related to the hosted version of Vanilla they do not have to be useful for the OS version of Vanilla.

    Have you checked the addons repository at GitHub? I think there is a Google+ connector, but I do not know if that is working with 2.1.

    I am in a hurry because my school project is due tomorrow... I'm still getting used to the forums. But I will definitely look in the questions for any question I have.

    @hgtonight said:
    Last I tried, the G+ connector worked in 2.1.x: https://github.com/vanilla/addons/tree/master/plugins/GooglePlus

    Thanks!

  • @hgtonight said:
    Last I tried, the G+ connector worked in 2.1.x: https://github.com/vanilla/addons/tree/master/plugins/GooglePlus

    Whenever I enable the plugin, I get this message on my homepage, "Fatal error: Call to undefined function SocialSignInButton() in /class.googleplus.plugin.php on line 150"

    Is there any way to fix this?

  • hgtonighthgtonight ∞ · New Moderator

    @orangesmasher221 said:
    Is there any way to fix this?

    Yes. Search for it.

    http://vanillaforums.org/discussion/comment/215333/#Comment_215333

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • peregrineperegrine MVP
    edited November 2014

    it is missing the function. I use neither - but this might solve your problem.

    since you don't have this in vanilla 2.1.5
    https://github.com/vanilla/vanilla/blob/master/library/core/functions.render.php#L1006

    you can probably add the code below to the bottom of class.googleplus.plugin.php AFTER the last closing } in class.googleplus.plugin.php

        if (!function_exists('SocialSignInButton')) {
        function SocialSignInButton($Name, $Url, $Type = 'button', $Attributes = array()) {
        TouchValue('title', $Attributes, sprintf(T('Sign In with %s'), $Name));
        $Title = $Attributes['title'];
        $Class = val('class', $Attributes, '');
        switch ($Type) {
        case 'icon':
        $Result = Anchor('<span class="Icon"></span>',
        $Url, 'SocialIcon SocialIcon-'.$Name . ' ' . $Class, $Attributes);
        break;
        case 'button':
        default:
        $Result = Anchor('<span class="Icon"></span><span class="Text">'.$Title.'</span>',
        $Url, 'SocialIcon SocialIcon-'.$Name.' HasText ' . $Class, $Attributes);
        break;
        }
        return $Result;
        }
        }
    

    https://github.com/vanilla/addons/blob/master/plugins/GooglePlus/class.googleplus.plugin.php

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited November 2014

    just saw hgtonight's info - potentially either will work.

    report back. what you tried and if it worked.

    if the above adding to class.googleplus.plugin.php works. then it could be another plugin added to the add-ons section maybe.

    since it would be all self-contained.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @peregrine 's option worked. Except the g+ logo is a little big. Can I change that with css?

  • thanks for the feedback.

    Can I change that with css?

    perhaps if you check with web developer and identify class. i have no way of testing.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • edited November 2014

    @peregrine said:

    thanks for the feedback.

    Do you know if it is possible to change it without css?

  • peregrineperegrine MVP
    edited November 2014

    @orangesmasher221 said:
    Do you know if it is possible to change it without css?

    no, I don't. what have you tried to do changing via css? and what class or id do you see?

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @peregrine said:
    no, I don't. what have you tried to do changing via css? and what class or id do you see?

    I tried .SocialIcon

    It didn't work. I see class "Icon" in the developer tools in chrome.

  • @peregrine But that is using the plugin cssedit. Is that how I should change it?

  • peregrineperegrine MVP
    edited November 2014

    I don't use the plugin and I don't know and I can't test.

    final answer.

    by posting exactly what you tried i.e. exact code and screenshot as well as a screenshot from developer tools might help some one help you. but since I can't test, I can't help you. good luck and I hope you get your answer.

    IF it is changeable via css - cssedit or custom.css would both work.

    I have no idea if this is even related.

    https://developers.google.com/+/web/signin/customize

    this is about google +1 - something different but

    it may give you insights.

    https://productforums.google.com/forum/#!topic/webmasters/mYEuIOsDiC8

    you can also google google.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I think I figured it out. (YES!) I have to change something in the custom.css file.

  • Nevermind... When I'm in the developer tools, It shows that there is a string with a height of 43px and a width of 43 px (that is the google icon) but when I search for it in the file, nothing related shows up. :/

  • peregrineperegrine MVP
    edited November 2014

    read up on theme customization lots of tutorials.

    maybe something like this in custom.css

    .SocialIcon-Google {
    height :33px !important;
    width: 33px !important;
    }
    

    http://www.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/

    http://www.w3.org/TR/CSS2/cascade.html

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • I'm running 2.1.11 and I have enabled the OpenID and then Google Sign In plugins without error, but I still do not see the Google Social Connect under Dashboard > Addons > Social.

    Any ideas?

Sign In or Register to comment.