SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Location
    Hillsborough NH
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with customizing ShareThis buttons and count functionality

    I am working on a project that requires we build custom sharing buttons with counts that display above them.....this is the code I am using that I follow instructions on from ShareThis.com

    <div class="shareholder fright clearfix">
    <div class="st_sharethis_custom box boxsharethis fleft"><span id="sharecount"></span></div>
    <div class="st_twitter_custom box boxtwitter fleft"><span id="twitcount"></span></div>
    <div class="st_facebook_custom box boxfacebook fleft"><span id="fbcount"></span></div>
    <div class="st_pinterest_custom box boxpinterest fleft"><span id="pcount"></span></div>
    <div class="st_googleplus_custom box boxgoogleplus fleft"><span id="gpluscount"></span></div>
    </div>
    <script type="text/javascript" src="http://wd.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript">
    stLight.options({publisher:'e9cfe4f1-9ef0-4fcc-9e38-abe46621532c'});
    stButtons.getCount("http://sharethis.com","facebook",document.getElementById('fbcount'));
    //(url,service,elemnt)
    stButtons.getCount("http://sharethis.com","twitter",document.getElementById('twitcount'));
    stButtons.getCount("http://sharethis.com","pinterest",document.getElementById('pcount'));
    stButtons.getCount("http://sharethis.com","googleplus",document.getElementById('gpluscount'));
    stButtons.getCount("http://sharethis.com","sharethis",document.getElementById('sharecount'));
    </script>

    Which produces these results (see attachment).

    social-counts-snapshot.jpg

    The problem is that the counts that appear above the social icons are not coming from our publisher account, the numbers are the same on EVERY page we have this displaying on. I have double checked my publisher id in the code above 10 times and it's correct so I have no idea why this is happening.....please help!
    Matt Nelson
    Nelson Design Studios
    www.nelsondesignstudios.com

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,892
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    Hi there,

    I'm not overly familiar with ShareThis.com, however if you could post a link to the instructions you are following, as well as the page where these buttons are not working, I don't mind taking a look for you.

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,656
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I toyed with this for a while. I ended up using http://share.lockerz.com/ and it works perfect. Much faster than ShareThis too. All you have to do is add a img inside the li (I believe) for custom icons.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •