WordPress.org

Support

Support » Plugins and Hacks » PHPEnkoder breaks simple Paypal buttons

PHPEnkoder breaks simple Paypal buttons

  • This isn’t a WP version specific issue.

    LOVE that enkoder convert all e-mail addresses… until it hit the e-mail address in a paypal button. On the page to the right of the button image now shows:
    email hidden; JavaScript is requiredname@domainname.com” />

    I replaced the real e-mail address with name@domainname.com in the above example.

    Since the paypal button code has an e-mail address in it, Enkoder converts that too and breaks the paypal button’s functionality completely. Since the site only sells one item it wasn’t worth the effort to set up a full e-commerce system.

    Just wanted to comment about this particular conflict.

    http://wordpress.org/extend/plugins/php-enkoder/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Update – workaround for a single paypal button:

    Obfuscate that one e-mail address for the one paypal button so that PHPEnkoder doesn’t grab it and try and encode it. HTML ascii characters. For example a = a
    name@domainname.com will look like name@domainname.com

    http://www.w3schools.com/tags/ref_ascii.asp

    I use a mac dashboard widget called “the obfuscator” to do this quickly and there are some online tools as well. I just didn’t want to have to use this manual entry for EVERY e-mail address on the website.

    Plugin Author michael_greenberg

    @michael_greenberg

    The simplest workaround is to turn off PHPEnkoder selectively, by
    calling enkoder_unregister_filters from the PHP for the page. The
    harder one is to rewrite the EMAIL_REGEX to avoid encoding a ‘value’
    field, possibly adding another regex to catch tags with value
    fields…

    This is something I’ve been meaning to fix, but WP’s almost entirely unstructured filter mechanism makes this rather difficult.

    experiencing this same problem – can you advise how to call the “enkoder_unregister_filters” PHP you reference for a given page?

    Plugin Author michael_greenberg

    @michael_greenberg

    Sure: just write <?php enkoder_unregister_filters(); ?> at the top of that page. Let me know if that works…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHPEnkoder breaks simple Paypal buttons’ is closed to new replies.