WordPress.org

Ready to get started?Download WordPress

Forums

Hupso Share Buttons for Twitter, Facebook & Google+
Author hide a 1x1 pixel as backlink to his site... (4 posts)

1 star
  1. aguett
    Member
    Posted 1 year ago #

    Why on earth did the author insert an hidden 1x1 pixel to his website ??? And why isn't the javascript file locally located instead of located on his server ???

    I'm pretty sure this kind of code is prohibited to get integrated in the WP plugin directory anyway.

    <a class="hupso_counters" href="http://www.hupso.com/share/"><img src="http://static.hupso.com/share/buttons/dot.png" style="border:0px; padding-top:2px; float:left;" alt="Share Button"/></a>

    And why on earth is the javascript file used located on his server and not locally in the WP installation ???

    http://static.hupso.com/share/js/counters.js
  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm pretty sure this kind of code is prohibited to get integrated in the WP plugin directory anyway.

    Correct. Flagged for investigation.

  3. Okay, so this is acting as service (i.e. they're running the share stuff through their servers, just like Jetpack does and Add-to-any and share-this). So while it's odd, it's okay with the JS.

    The 1x1 pixel is less so.

  4. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    This plugin is acting as a service, so it behaves exactly like other sharing plugins (Add This, Share This, Add to Any). This is explained in the plugin FAQ, but let me be even more specific.

    dot.png is just a special version of "share image", used to replace the original share image, when user chooses to hide the share image in plugin settings (by default english share image is shown). Because the option to hide the image was added later, on user request, the script still needs img element there to operate properly. So it gets replaced by minimal img element possible - dot.png. All images have links that point to external sharing services (such as Facebook, Twitter). Links redirect throught add.php (again, the same behaviour as with other major sharing services) as this has one major advantage for WP users: they do not have to update the plugin every time a sharing services change their sharing urls. The changes are only made on the server side in add.php. Since many webmasters do not update their plugins after the website is finished, this is a great benefit to them, because the plugin keeps working without updating, even when social networks change their urls/apis.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags