1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[ValveTime.net] Google+ Share Button 1.0

Replaces the default +1 button with the new Google+ Share Button

  1. Chris D

    Chris D XenForo Developer Staff Member

    Yorick submitted a new resource:

    [ValveTime.net] Google+ Share Button (version 1.0) - Replaces the default +1 button with the new Google+ Share Button

    Read more about this resource...
     
    RobinHood and yavuz like this.
  2. Coop1979

    Coop1979 Well-Known Member

    Edit: Nevermind, my mind was somewhere else.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

  4. Coop1979

    Coop1979 Well-Known Member

    Yorick likes this.
  5. Coop1979

    Coop1979 Well-Known Member

    Here is an amended version of the mod with TMS changes to XenPorta, as well.
     

    Attached Files:

    Yorick likes this.
  6. Bonta-kun

    Bonta-kun Member

    Hello, i do not see the Google+ Share Button!
    share_page:
    Code:
    <xen:if hascontent="true">
        <xen:require css="share_page.css" />
     
        <div class="sharePage">
            <h3 class="textHeading larger">{xen:phrase share_this_page}</h3>
            <xen:contentcheck>
                <xen:hook name="share_page_options">
                <xen:if is="{$xenOptions.tweet.enabled}">
                    <div class="tweet shareControl">
                        <a href="https://twitter.com/share" class="twitter-share-button"
                            data-count="horizontal"
                            data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
                            data-url="{$url}"
                            {xen:if {$thread.title}, 'data-text="{xen:helper threadPrefix, $thread, escaped}{$thread.title}"'}
                            {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                            {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                    </div>
                </xen:if>
                <xen:if is="{$xenOptions.plusone.enabled}">
                    <div class="plusone shareControl" style="padding-right: 30px;">
                        <xen:require js="//apis.google.com/js/plusone.js" />
                        <div class="g-plus" data-action="share" data-annotation="bubble" data-href="{$url}"></div>
                    </div>
                </xen:if>
                <xen:if is="{$xenOptions.facebookLike}">
                    <div class="facebookLike shareControl">
                        <xen:container var="$facebookSdk">1</xen:container>
                        <fb:like href="{$url}" show_faces="true" width="500" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                    </div>
                </xen:if>
                </xen:hook>
            </xen:contentcheck>
        </div>
    </xen:if>
    sidebar_share_page:
    Code:
    <xen:if hascontent="true">   
        <xen:require css="sidebar_share_page.css" />
        <div class="section infoBlock sharePage">
            <div class="secondaryContent">
                <h3>{xen:phrase share_this_page}</h3>
                <xen:contentcheck>
                    <xen:hook name="sidebar_share_page_options">
                    <xen:if is="{$xenOptions.tweet.enabled}">
                        <div class="tweet shareControl">
                            <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"
                                data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
                                data-url="{$url}"
                                {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                                {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                        </div>
                    </xen:if>       
                    <xen:if is="{$xenOptions.facebookLike}">
                        <div class="facebookLike shareControl">
                            <xen:container var="$facebookSdk">1</xen:container>
                            <fb:like href="{$url}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                        </div>
                    </xen:if>
                    <xen:if is="{$xenOptions.plusone}">
                        <div class="plusone shareControl">
                            <xen:require js="//apis.google.com/js/plusone.js" />
                            <div class="g-plus" data-action="share" data-annotation="bubble" data-href="{$url}"></div>
                        </div>
                    </xen:if>   
                    </xen:hook>       
                </xen:contentcheck>
            </div>
        </div>
    </xen:if>
    Can you help me? Please
    mfg Peter
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    Sure

    You need to make sure the Google +1 button is enabled in the options:

    plusone.PNG

    You will find that in Admin CP > Options > Search Engine Optimization SEO
     
    Bonta-kun likes this.
  8. Bonta-kun

    Bonta-kun Member

    OK, thanks for help. I´m new in XenForo and i must more looking.
     
    Chris D likes this.
  9. zRnM

    zRnM Member

    Where i can get TMS and read about it?
     
  10. Chris D

    Chris D XenForo Developer Staff Member

    zRnM likes this.
  11. giorgino

    giorgino Well-Known Member

    Dear @Chris Deeming this is giorgino, a fan :D
    1.2 compatibility? :censored:
     

Share This Page