Jump to content

Twitter and Google +1 numbers


AlexJ
 Share

Recommended Posts

  • 2 weeks later...

I'm on the fence with this one. While I can see where it would be something that many could use, I think I'd like it to be optional as to whether it's shown or not. Just because it's shared across hundreds of accounts doesn't necessarily make the item newsworthy nor does it lend credence to the validity of the subject.

Not to mention. I'm starting to get pretty sick of seeing +1 all over the place. Reminds me of previous fads that got old in a hurry.

Link to comment
Share on other sites


Simply add it to the facebook like hook - you can simply alter the template and it will show fine.



This is the route I went down including adding Twitter in there as well.




I did same for 3.1.4 but I don't know how to do it for 3.2.x. I used to 2 hooks for 3.1.4 which achieves what i wanted.

Ian does the both hooks work for 3.2.x ? Did you tried?

Thanks
Link to comment
Share on other sites

  • Management

I deliberately set the "show numbers" parameter of the Google +1 tag to false because it's much larger and quite distracting. A lot of the time, it would merely show single digits or 0.

You can enable the show numbers parameter of the Google +1 template easily enough. It's under "Global Skin (Other)".

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...

I've fix in my forum simply with this...
Global template; share link, change entire code to (with backup):

{parse js_module="sharelinks"} <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a class="addthis_button_tweet"></a> <a class="addthis_button_google_plusone" g:plusone:size="medium"></a> <a class="addthis_counter addthis_pill_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ec451296ea13a27"></script> <!-- AddThis Button END --> <!-- <if test="gotLinks:|:is_array( $links )"> <ul class='{$cssClass} shareButtons ipsList_inline'> <foreach loop="cacheLoop:$links as $id => $data"> <if test="isEnabled:|:$data['share_enabled']"> <if test="hasCustom:|:$data['customOutput'] and is_array( $data['customOutput'] )"> {parse expression="$this->registry->output->getTemplate($data['customOutput'][0])->$data['customOutput'][1]( $url, $title )"} <else /> <li><a href="{parse url="sharelink={$data['share_key']};{$data['_url']};{$title}" base="public"}" rel="nofollow" target="_blank" title="<if test="!in_array( $data['share_key'], array( 'print', 'download' ) )">{$this->lang->words['gbl_sharelink_with']} {$data['share_title']}<else />{$this->lang->words['gbl_sharelink_with_' . $data['share_key'] ]}</if>" class='_slink' id='slink_{$data['share_key']}'><img src="{$this->settings['public_cdn_url']}style_extra/sharelinks/{$data['share_key']}.png" /></a></li> </if> </if> </foreach> </ul> <script type="text/javascript"> ipb.sharelinks.url = "{parse expression="IPSText::base64_decode_urlSafe($url)"}"; ipb.sharelinks.title = "{parse expression="IPSText::base64_decode_urlSafe( IPSText::htmlspecialchars( $title ) )"}"; ipb.sharelinks.bname = "{parse expression="trim(addslashes($this->settings['board_name']))"}"; </script> </if> -->


































or just to:

{parse js_module="sharelinks"} <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style"> <a class="addthis_button_facebook_like" fb:like:layout="button_count"> </a> <a class="addthis_button_tweet"> </a> <a class="addthis_button_google_plusone" g:plusone:size="medium"> </a> <a class="addthis_counter addthis_pill_style"> </a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4ec451296ea13a27"> </script> <!-- AddThis Button END -->













---
Maked thanks to: https://www.addthis....18#.TsRaJsMUq-V :wink:

---
U can see a demo in my website (click on signature) :smile:

-
Preview:

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...