Resource icon

[ValveTime.net] Google+ Share Button 1.0

No permission to download

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

OVERVIEW:
This add-on (simple template edits or TMS add-on) replaces the default Google +1 button with the new Google+ Share Button. Details can be found here.

INSTALLATION:
With Template Modification System installed (recommended)
1) Download file
2) Nothing to upload just go to Install Add On in Admin CP and install using provided XML file.

Without Template Modification...

Read more about this resource...
 
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
 
Sure

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

plusone.webp

You will find that in Admin CP > Options > Search Engine Optimization SEO
 
Top Bottom