--> Introducing "Jumbo Share Counters" Plugin | Experience Lab - Online business creation and development guide for bloggers and startups

Introducing "Jumbo Share Counters" Plugin

Did you ever wish to show off your share counts and encourage more sharing on your websites and blogs? Now you can do both with our Free Jum...



Did you ever wish to show off your share counts and encourage more sharing on your websites and blogs? Now you can do both with our Free Jumbo Share Counters (JSC) which is a PHP driven free social sharing plugin with free cloud hosting and stats reporting to help you track likes, shares and tweets in realtime! You can integrate it easily in WordPress, Blogspot and even inside your static HTML5 webpages. JSC is inspired from AddThis Pro's Jumbo Share Counter and Mashable-style share counters. Amazingly our sharing buttons are absolutely free of cost with no $10/month hosting fee or credits links! Lets redraw the slow-loading official social media sharing buttons in a unique custom way. =)


UPDATE: If your facebook share count has stopped working, please use the updated code by clicking here.


Jumbo Share Counters


Demo: Check the left and bottom of this blog post.


Over the recent two years web design trends have taken a whole new shape. Publishers today prefer big buttons, large photos, and lightweight share counters. I know most of you are tired of slow performing social sharing plugins such as Facebook like button, Twitter tweet/follow buttons, Google +1 button etc. which eats up to 30% of your entire website load time and badly effects user experience. According to Google PageSpeed insights, the code used by these social media networks contains both render-blocking JavaScript and tons of unnecessary HTML for tracking purposes which seriously affects the load time of a website in both mobile and desktop devices. Load time of a webpage is an important search engine ranking factor and Google surely favours sites in SERPs that load faster.




Keeping all these factors in mind we thus created natural look-alike of these official sharing buttons to provide the best free sharing solution.


The following features make "Jumbo Share Counters" the most advanced sharing plugin:



  • Mobile responsive,



  • SEO friendly,



  • Lightweight,



  • Animated number counter,



  • Lightening fast,



  • Natural in design



  • Customizable



  • 2 Themes - Floating bar & Horizontal bar



  • Supports top 13 sharing buttons



  • Eye catching and engaging



  • Expand/Collapse option



  • Hosted on cloud servers 



  • Free of cost!




Let me introduce to you our free Jumbo Share Counters that uses the open source share count API provided by Donreach.


How Do "Jumbo Share Counters" Plugin work?



JSC uses Donreach's free open source PHP script called ShareCount to fetch the count of social shares and output it as JSON, JSONP or XML data with the option to cache the results using memcache, APC or file cache. We optimized this script by removing the cache and cookies code to make it load more faster. We have also removed the Twitter API from the list because Twitter has recently depreciated their share count API, therefore we can no longer display the tweet counts.


We uploaded the ShareCount API on two free cloud servers provided by redhat and herokuapp which is much faster compared to shared hosting.


Jumbo Share Counters API URL is hosted on: (use the working link only)


  1. http://mbtr-counters.rhcloud.com/   Working!

  2. https://social-shares.herokuapp.com/  Facebook not working!

  3. http://share-counters.rhcloud.com/  Facebook not working!

  4. https://count.donreach.com/  Too Slow!


and it supports the following parameters:






Parameter Default Description
url (required) none The URL of the page you want to fetch the social shares for.
format (optional) json The format of the output. Can be either json, jsonp or xml.

To see share count stats for a specified URL, all you need to do is run this query inside your browser address bar:

http://mbtr-counters.rhcloud.com/?url=http://www.google.com

You can replace the Google URL with any URL of your choice. The default format is set to JSONP so the output to the above query will return the following share counts for Google:


MBTshares({


"url":"http:\/\/www.google.com","shares":{



"total":16943080,



"facebook":16589903,



"google":1,



"linkedin":13356,



"pinterest":75108,



"stumbleupon":255416,



"delicious":0,



"reddit":0,



"buffer":9018,



"vk":278



}})

We have further optimized and enhanced the shareCount API by including support for additional buttons. Jumbo Share Counters Plugin is thus the most advanced sharing plugin with support for up to 13 popular share buttons:


  1. Facebook

  2. GooglePlus +1

  3. Twitter - Will not display the tweet count because twitter abandoned their counts API

  4. LinkedIn

  5. Pinterest

  6. StumbleUpon

  7. Delicious

  8. Reddit

  9. Buffer

  10. vk

  11. Viber - Will automatically display in mobile devices

  12. Whatsapp - Auto displayed in mobile devices

  13. Print



Different Themes for Mobile and Desktop Screens


We have designed two different themes for JSC keeping the popular design trends in mind.

1. JSC Floating Social Sharing Bar

Floating Social Sharing BarThis widget floats to the left or right of your blog posts thus grabbing maximum reader attention to promote more likes, tweets and shares. It has a maximum CTR and visitors on our blog tend to share more using this design model for share buttons.

UPDATE:


It is suitable only for Desktop and Tablet screens. By default it is programmed to displayed only in desktop screens and auto hide itself in mobile devices.

2. JSC Horizontal Social Sharing Bar

Horizontal Social Sharing Bar

This design model for sharing buttons works best just below post title or at the bottom of post i.e post footer. You can add it in both these locations without sacrificing load time.

UPDATE:


It is suitable for all devices whether Desktop, Tablets or Smartphones. To keep things simple, the viber and whatsapp share buttons will be automatically displayed only in mobile devices. They wont display for desktop screens but you can surely change the settings to display them in all devices if you want.

Horizontal Sharing Bar in Mobile view


Installation Instructions



We will first help you add the necessary JavaScript code to your websites, in our next post we will share separate tutorials to add "Jumbo Share Counters" in blogger templates and WordPress themes.


The steps below are standard and are same for all CMS platforms:


1 Paste the following code just above </head> inside your template:


(OPTIONAL STEP) Skip this step if you have already added JQuery and FontAwesome libraries inside your templates.


<script async='' src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>

<link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>


2 Paste the following JS code just above </body> tag of your template


UPDATE: Facebook has deprecated its REST API, as a result of which the facebook share count could not be fetched using our old files. I have updated the code with facebook Graph API and everything works just fine now. Please update the URL link below inside your template. Modified code is highlighted as yellow.


<script type='text/javascript'>

//<![CDATA[


/* ##### FREE JUMBO SHARE COUNTERS #######


Developed by: www.MyBloggerTricks.com


Dual licensed under the MIT license and GPL license.


Copyright (c) 2015-2016 STCnetwork.org


###### PHP script ########################


Developed by http://donreach.com/,


Optimized by STCnetwork.org


####### Animation ########################


Supported by: waypoints.js and Counterup.js


Customized by STCnetwork.org


Source: https://github.com/bfintal/Counter-Up


#######################################*/

ADD CODE HERE

/*##########Plugin Settings#############*/

$(document).ready(function() {


var shareUrl=$("link[rel=canonical]").attr("href");


$.getJSON('http://mbtr-counters.rhcloud.com/?url=' + encodeURIComponent(shareUrl) + "&callback=?",function(data){shares=data.shares;$(".count").each(function(index,el){service=$(el).parents(".share-btn").attr("data-service");count=shares[service];$(el).text(count)});


});

/*#########Animation Settings###########*/

$(window).load(function() {


    $('.anim').counterUp({


      delay:20, //Smaller value gives more frames


      time: 1000 //Higher value slows down animation


    });


});

});

//]]></script>

Customization:


  • If you have uploaded the scripts yourself then you can replace https://count.donreach.com with your API URL

  • To increase the frames of the rotating numbers, reduce value of delay

  • To slow down the animation speed, increase the value (in milli seconds) of time



3 In the above code replace the line "ADD CODE HERE" with this code






4 Save your template and all done!


Follow the coming tutorials to add JSC stylesheet and HTML to your sites.


Upload ShareCount Script Yourself - (Optional)



If you want even faster performance and wish to upload the shareCount API yourself on your webhost then you can surely do that. To upload files over a cloud server you need a SSH client such as PuTTY for windows. These days, SSH (Secure Shell) is used to log into and execute code on remote hosts and transfer files. Unlike FTP, use of SSH is a little more techy.


To upload the PHP scripts on your webhost or on a free cloud server, follow these steps to get started:




  1. Download the ShareCount script and upload it on a free cloud server using SSH Client like PuTTY. You can use herokuapp or Redhat's OpenShift cloud servers.




  2. If you are not comfortable working on a cloud environment then you can also upload the scripts on a shared hosting such as Hostgator using FTP client like Fileziila. Don't forget to tell your webhost to whitelist MOD security of your page. Read this Github thread where my discussion with Adam Bouqdib (developer of ShareCount API) could help you.




Credits & License:


Creative Commons License

© Copyright 2015-2016 STCnetwork.org

Beta Version: 1.0 (29 Feb, 2016)


Jumbo Share Counters Plugin by STCnetwork is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. JSC Plugin is dual licensed under the MIT license and GPL license. You are most welcomed to share the plugin with your audience as long as you attach credit links back to this webpage. Kindly avoid selling the plugin in a commercial product or service. Its use is restricted to individuals alone.

We have to thank a lot of people here for helping us in the Plugin development:




  • Adam Bouqdib who personally helped me in troubleshooting some of the errors.




  • Donreach for open sourcing their social share count API.




  • Herokuapp or Redhat OpenShift cloud servers for providing free hosting.




  • STCnetwork's senior developer, Ahmed Nasir  for giving a helping hand.




  • A special thanks to developers of waypoints.js and counterup.js for providing the animation effect.




Need Help?



Coding this plugin required great effort and a lot of time. We did all this for the love of knowledge. We just hope you like it. =)


"Jumbo Share Counters" plugin will tremendously help you boost your social shares and referral traffic. It will surely improve your social media optimization strategy and will positively affect your search ranking thanks to its lightweight and better performance.


Do let me know if you need any help with regard to any part of this introductory tutorial. We are always open to constructive feedback to further improve and keep developing JSC plugin. Peace and blessings buddies!


COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Introducing "Jumbo Share Counters" Plugin
Introducing "Jumbo Share Counters" Plugin
https://lh3.googleusercontent.com/-AhNJL_UA1mc/VtrMiuNL6dI/AAAAAAAAQhQ/Zw5-7yvBOeY/image3%25255B1%25255D.png?imgmax=800
https://lh3.googleusercontent.com/-AhNJL_UA1mc/VtrMiuNL6dI/AAAAAAAAQhQ/Zw5-7yvBOeY/s72-c/image3%25255B1%25255D.png?imgmax=800
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2016/02/introducing-share-counters-plugin.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2016/02/introducing-share-counters-plugin.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy