WordPress.org

Ready to get started?Download WordPress

Forums

Social Subscribers Counter
Twitter counter needs to be updated (9 posts)

  1. pacovitiello
    Member
    Posted 1 year ago #

    Hello,
    Twitter counter has stopped working 3 days ago. I have replaced

    http://twitter.com/users/show.json?screen_name=

    with

    http://api.twitter.com/1/users/show.json?screen_name=

    into social-subscriber-counter.php file at lines 61 and 121.

    Now it works, but you seriously need to update this plugin.
    P.S. Please consider also that feedburner, during some hours of the day, counts 0 subscribers... I suggest to add an option for showing a custom number in case Feedburner counts zero.

    http://wordpress.org/extend/plugins/social-subscribers-counter/

  2. Reza Shadpay
    Member
    Posted 1 year ago #

    pacovitiello, thank you for update!
    I replaced the code you mentioned, but it didn't work for me yet.
    this plugin has 4 developers and unfortunately no one answer any question!

  3. pacovitiello
    Member
    Posted 1 year ago #

    Have you tried to empty the cache of your browser?

  4. Reza Shadpay
    Member
    Posted 1 year ago #

    Yes, I did, but as you mentioned too, plugin has several bugs (FeedBurner and links doesn't open in new page (I fixed it but developers didn't update the plugin)), I selected and installed a very nice plugin today, here.

    By the way, thanks for replay.
    Appreciated

  5. pacovitiello
    Member
    Posted 1 year ago #

    The trick worked for me, but unfortunately I can't help you because I am not very good with php. Let's wait, maybe the developers will release an update soon.

  6. o0R3D0o
    Member
    Posted 1 year ago #

    Thanks a lot this trick worked for me... @Reza you must Deactivate then Delete it then Re-Upload it again with the modification of twitter api link then it will work...

  7. ollyb
    Member
    Posted 1 year ago #

    If the updated code doesn't work right away, you might not have to deactivate the plugin. The twitter number is cached by default for an hour. Even when it fails, it looks to me like it's caching an empty string.

    I updated my code, and it's working fine. Occasionally though, when the server can't get through to twitter for whatever reason, it caches the empty string for an hour. We don't want that, nor do we want the server hammering twitter. So I set mine to cache for just 1 minute in the event that a non-numeric response is received from twitter (or, not at all):

    if(is_numeric($followers)){
          set_transient('social_subscribers_counter_twitter', $followers, 3600);
    }else{
          set_transient('social_subscribers_counter_twitter', $followers, 60);
    }
  8. BradGroux
    Member
    Posted 1 year ago #

    ollyb, could you please let me know what line I need to place your code snippet on? Do I need to overwrite old code with this updated code?

    Thanks!

  9. ollyb
    Member
    Posted 1 year ago #

    It just needs to go in place of the existing "set_transient" line. So take that line out, and put the 5 lines from the snippet above in its place.

    Hope that helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.