WordPress.org

Ready to get started?Download WordPress

Forums

WPSocialite
W3C Validation (9 posts)

  1. smadonnatore
    Member
    Posted 1 year ago #

    Very useful plugin.
    I found a small defect: the plugin fails w3c validation.
    There are some errors regarding whitespaces in social buttons url:

    Bad value for attribute href on element a: Whitespace in query component. Use %20 in place of spaces.

    http://wordpress.org/extend/plugins/wpsocialite/

  2. Tom
    Member
    Plugin Author

    Posted 1 year ago #

    Appreciate your feedback. I've got this scheduled to deploy in the next release. You should see this fixed soon! I'll be sure to mark this resolved when I push the update.

  3. Aditya Pandey
    Member
    Posted 1 year ago #

    Yes, just checked my validation and now I have more errors.
    I'll wait for update with xhtml valid format. I know it is very annoying to set up to make it xhtml valid. :D

  4. 3Pinter
    Member
    Posted 1 year ago #

    Hey all.

    In case you what a 'quick fix', it's the $title in wpsocialite.php which contains spaces.

    How I fixed it:
    please do back up the original

    1. open wpsocialite.php in notepad.
    2. go to line 130 where you will see:

    $title = trim($post->post_title); // get post title

    and replace it with

    $title = urlencode(trim($post->post_title)); // get post title

    3. save it
    4. upload this file again. (wp-content/plugins/wpsocialite)

    3Pinter

  5. Aditya Pandey
    Member
    Posted 1 year ago #

    Thanks.
    It worked.

    By the way, 3Pinter, if you don't mind, can you fix up at least some errors of "Watu" plugin: here : http://wordpress.org/support/topic/xhtml-validation-problem-2/

  6. Aditya Pandey
    Member
    Posted 1 year ago #

    There were more errors, this processed line :

    <ul class="wpsocialite social-buttons small"><li><a href="http://www.facebook.com/sharer.php?u=http://autospace.co/harley-davidson/&t=Harley Davidson- It" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.facebook.com']);"s Not Just The Bikes That Are Legendary" class="socialite facebook-like" data-href="http://autospace.co/harley-davidson/" data-send="false" data-layout="button_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span class="vhidden">Share on Facebook</span></a></li><li><a href="http://twitter.com/share" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://twitter.com']);" class="socialite twitter-share" data-text="Harley Davidson- It's Not Just The Bikes That Are Legendary" data-url="http://autospace.co/harley-davidson/" data-count="horizontal" data-via="" rel="nofollow" target="_blank"><span class="vhidden">Share on Twitter</span></a></li><li><a href="https://plus.google.com/share?url=http://autospace.co/harley-davidson/" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://plus.google.com']);" class="socialite googleplus-one" data-size="medium" data-href="http://autospace.co/harley-davidson/" rel="nofollow" target="_blank"><span class="vhidden">Share on Google+</span></a></li><li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://autospace.co/harley-davidson/&title=Harley Davidson- It" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.linkedin.com']);"s Not Just The Bikes That Are Legendary" class="socialite linkedin-share" data-url="http://autospace.co/harley-davidson/" data-counter="right" rel="nofollow" target="_blank"><span class="vhidden">Share on LinkedIn</span></a></li></ul>

    If you resolved validation errors in this then you can fix the errors in plugin too. :)

  7. Tom
    Member
    Plugin Author

    Posted 1 year ago #

    The latest version should resolve any validation concerns. Please let me know if there are still errors.

  8. smadonnatore
    Member
    Posted 1 year ago #

    Update to latest versionn...validation errors still present.

  9. Tom
    Member
    Plugin Author

    Posted 1 year ago #

    Hello All,

    Continuing to resolve the validation issues. Can you run the validator on your sites and link me to the errors so I can see exactly what you are getting?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic