WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] [Plugin: Share Buttons by Lockerz / AddToAny] 'Add to Any' sending code for quotation mark (25 posts)

  1. lwdgrfx
    Member
    Posted 2 years ago #

    Hi, everyone - recently A2A started sending the code for, for instance, quotation marks instead of the actual symbols, e.g., "“" (ampersand hashtag 8 2 2 0 semicolon) instead of " (as a curly left quote). Do any of you have any idea why this is happening and how I can prevent it? It happens with apostrophes as well.

    http://wordpress.org/extend/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    Can you point us to a live example or walk through how to reproduce?

  3. lwdgrfx
    Member
    Posted 2 years ago #

    For some reason my earlier reply by email didn't make it to the forum.
    This is what it said:
    ~~~~~~~~~~~~~~~~~~~~~~~~~

    Sure. Go to http://thepoliticalcarnival.net and share a story - this one, for instance:

    http://thepoliticalcarnival.net/2012/03/12/doonesbury-the-trans-vaginal-ultrasound-theme-some-papers-dont-want-you-to-see-the-shaming-room/

    The headline says:

    Doonesbury- The trans-vaginal ultrasound theme some papers don’t want you to see: “The Shaming Room.”

    When I click on the Twitter 'share' button, I get:

    Doonesbury- The trans-vaginal ultrasound theme some papers don’t want you to see: “The Shaming Room.” http://j.mp/za6cH8

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  4. lwdgrfx
    Member
    Posted 2 years ago #

    Ah hah....the forum accepted the code so you don't see it here except in symbol form.

    The apostrophe in the A2A tweet is:
    & # 8 2 1 7 ;
    The quotation marks are:
    Left quotation mark: & # 8 2 2 0 ;
    Right quotation mark: & # 8 2 2 0 ;

    HTH - I'm baffled. I read one 'fix' which said to add this code:

    remove_filter('the_content', 'wptexturize');
    remove_filter('comment_text', 'wptexturize');
    remove_filter ('single_post_title', 'wptexturize');
    remove_filter ('the_title', 'wptexturize');
    remove_filter ('wp_title', 'wptexturize');

    to the functions.php file but I'm reluctant to mess with core files unless I absolutely have to.

  5. lwdgrfx
    Member
    Posted 2 years ago #

    Well, this is very strange.

    I changed nothing at all, hoping for another response from this forum, and this morning the problem is gone.

    A friend has taken over some of the more complicated admin stuff on this site so I will ask him if he's changed anything in this regard.

    Strange but I'm not complaining!

  6. The lines to add to your theme's function.php file (NOT core, your theme) were the right ones :)

  7. lwdgrfx
    Member
    Posted 2 years ago #

    Hi, Ipstenu - thanks for the input. I may do that anyway but unless my co-administrator friend changed something, I don't understand why I would no longer have the problem today unless it was somehow on 'AddToAny' 's end.

  8. I would guess your co-admin did something. Unless you upgraded the plugin, ad-to-any couldn't have.

  9. lwdgrfx
    Member
    Posted 2 years ago #

    I haven't had time to check with him yet. I'll report back if I find out anything.

  10. lwdgrfx
    Member
    Posted 2 years ago #

    I spoke too soon. The problem's back again.

    I entered the 'remove_filter' etc. code above into the functions.php file of my theme, saved it, and tried a tweet via the Twitter 'AddToAny' button and it showed the html code again, - e.g., & # 8220 ; etc. in spite of the updated file.

    It also show this: & # 038 ; for a dash. It varies between browsers and is sometimes there, sometimes not.

    It's not just the quotes - it's also apostrophes and, now, the dash as well.

    Will appreciate any input.

  11. lwdgrfx
    Member
    Posted 2 years ago #

  12. lwdgrfx
    Member
    Posted 2 years ago #

    Hmmm there seems to be no way to edit a post here --- the 'dash' I mention in the post two above this is an ampersand. & # 038 ;

  13. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    You have a larger fixable issue - the AddToAny JavaScript isn't loading because you have an advanced option enabled that isn't working on your site.

    Go to http://thepoliticalcarnival.net/wp-admin/options-general.php?page=add-to-any.php and uncheck "Cache AddToAny locally with daily cache updates **" then save changes.

    Your drop-down menu on the Share/Save button will start appearing again, and your primary issue here should also be fixed.

  14. lwdgrfx
    Member
    Posted 2 years ago #

    Hi, Micropat - thanks for responding. I unchecked "Cache AddToAny locally with daily cache updates" then saved the changes, as you suggested.

    Unfortunately, the problem's still there.

    If you go to this page:

    http://thepoliticalcarnival.net/2012/03/20/why-didnt-rick-santorum-denounce-the-immoral-epidemic-of-child-abuse-in-the-catholic-church/

    and click on the 'Tweet' button, you'll see this [I'm putting a space between the html characters so that the code for the apostrophe doesn't appear in this forum as a symbol]:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Why Didn & # 8217 ; t Rick Santorum Denounce the Immoral Epidemic of Child Abuse in the Catholic Church? http://j.mp/GBjn8x
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    There's a 'reset' button in the Add-to-Any settings. I thought I might try that next.

  15. lwdgrfx
    Member
    Posted 2 years ago #

    Every time I think I'm making progress with this, it happens again. I thought for a while it might be browser-specific or just happen when I clicked from the 'single.php' page but it's not. There's no way to upload attachments here that I see or I would show you screenshots, but I just tried it with this story

    http://thepoliticalcarnival.net/2012/03/20/video-russ-feingold-being-pressured-but-im-not-running-for-governor-of-wisconsin/

    using Internet Explorer 9 and it happened. The quotation marks and apostrophe in "I'm not running." were code the first time so I tried it again and then they were symbols.

    Is there a setting somewhere other than in the add-to-any dashboard which would cause this?

  16. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    It's fully working for me now in all browsers including IE9. When you click your Share/Save button, does the drop-down menu appear, or does it navigate away to another page on addtoany.com?

  17. lwdgrfx
    Member
    Posted 2 years ago #

    I normally never click the 'Share/Save' button - I click directly on the Twitter icon. When I do click on the 'Share/Save' button, though, yes, the dropdown menu appears and when I use that, it seems to work fine.

  18. lwdgrfx
    Member
    Posted 2 years ago #

    I've tried so many combinations of this that unfortunately now I can't remember which combination led me to the page on addtoany.com but that has happened too.

    I appreciate your trying to work this through with me. I use that Twitter icon twenty times a day at least.

  19. lwdgrfx
    Member
    Posted 2 years ago #

    Incidentally, I noticed the problem the other day on a friend's tweet:

    https://twitter.com/#!/misslindadee/status/182036426274258944

    but I don't know if that was through Add-to-Any

  20. lwdgrfx
    Member
    Posted 2 years ago #

    Mmmmmm.....why is this problem marked 'resolved' ? I can still reproduce the problem.

    Go to this page: http://www.thepoliticalcarnival.net/?s=feingold and click on the 'Twitter' icon - not the 'Share/Save' button.

    I just saw the code in two different browsers - the most recent versions of Firefox and Opera. It seems okay in Chrome and IE9.

  21. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    I was able to reproduce when *quickly* clicking the standalone Twitter button during page load, before the 'drop-down menu' script loads. This happens because the plugin provides a fallback link for the standalone Twitter button, etc. that is used temporarily until the script loads and overrides the link.

    If you wait for your page to fully load, it works flawlessly. If you're quick like a cat, the special character encoding is messed up.

    So you're not crazy :) - the fallback links have a character encoding bug. This bug will be addressed in the next plugin release. Thanks for reporting!

  22. lwdgrfx
    Member
    Posted 2 years ago #

    Ahh...I hadn't seen it as connected to the speed I click on the Twitter icon with...thanks for checking on this.

    It's always good to know that I'm not crazy but as you know, there are always so many variables which affect this stuff that it's very difficult to isolate what's what. I am a fast typist and, in the case of that site which I'm the webmaster for, when I see that one of the two content creators I work with has posted something I find of interest, I do want to get it out on Twitter asap.

    Not knowing exactly how you have it set up, I had not realized it would be connected to the fallback links. We just switched to a new host and that's when I noticed the problem, so it may have something to do with the speed of our new server.

    I'm happy to know that it will be addressed in the next plugin release and I'm certainly happy to report it. We've used Add-to-Any for close to two years now and that's the only problem I remember ever having with it.

  23. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in the latest release. Thanks again for raising the issue!

  24. lwdgrfx
    Member
    Posted 2 years ago #

    Wow - when you said 'the next plugin release' I didn't know you meant right away. Thanks very much. I use Add-to-Any all the time, usually through Opera, my default browser, so having to replace that code was getting old. I don't remember ever having to do it before moving to our new host, though....very strange.

    This is *much* appreciated!

  25. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    @lwdgrfx thanks for your kind words. :)

    @Perez_ doesn't appear to be. Please post a new topic with the details of your downloading issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags