PHPEnkoder breaks simple Paypal buttons (5 posts)

  1. FascinationDesign
    Posted 5 years ago #

    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.


  2. FascinationDesign
    Posted 5 years ago #

    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


    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.

  3. michael_greenberg
    Plugin Author

    Posted 5 years ago #

    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

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

  4. netarc
    Posted 4 years ago #

    experiencing this same problem - can you advise how to call the "enkoder_unregister_filters" PHP you reference for a given page?

  5. michael_greenberg
    Plugin Author

    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHPEnkoder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic