WordPress.org

Support

Support » Reviews » Hupso Share Buttons for Twitter, Facebook & Google+ » Author hide a 1×1 pixel as backlink to his site…

Author hide a 1×1 pixel as backlink to his site…

  • Why on earth did the author insert an hidden 1×1 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

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

    Correct. Flagged for investigation.

    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 1×1 pixel is less so.

    Plugin Author kasal

    @kasal

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author hide a 1×1 pixel as backlink to his site…’ is closed to new replies.
Skip to toolbar