Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dosuntai

    (@dosuntai)

    You can’t. Not without modifying the plugin code.

    Thread Starter dosuntai

    (@dosuntai)

    Kinda figured that out. Since noone responded for two weeks, I explored all the options I could think of, found what lines of code to change, and made two new graphics to put in the plugins’ image folder. Yes, I know I’ll have to repeat this if/when the plugin gets updated.

    If there was any indication the author actually looks at these tickets (the number of “resolved” issues is really small, and none more recent than a year ago), I’d suggest that the next upgrade offer different buttons for users to use, and the ability to change them out.

    Can you please share how you managed to customize the button? Thank you!

    @dosuntai: I sent a pull request that would make it possible to do this without touching the plugin core (via filter), but no one has responded there either. If you rename the plugin, you won’t have to worry about losing your code on the off chance there is an update. I tried to address some of the other things that I believe need fixing (like over-reliance on javascript for form submission), but it ultimately proved to be too much work. I have looked at ~5 donations plugins and haven’t found one I like yet. I will probably have to build it from scratch.

    @threlkeld: bearing in mind the normal caveats about modifying plugin core, you can make changes at dgx-donate-paypalstd.php in the dgx_donate_paypalstd_payment_section() function.

    Thread Starter dosuntai

    (@dosuntai)

    Guys-sorry it took so long. I meant to do this after I made the change.

    The plugin uses a full color button and a greyed out button. So to get these, I went to PayPal, copied the Donate button with the credit cards (which was the one I wanted to use), copying it by right-clicking and “save image as” to my hard drive. Then I duplicated it, opened the copy in Photoshop, and desaturated the image (hue/saturation or command/control-u) by moving the saturation slider all the way left.

    Then I used my FTP client (Fetch) to load the two images to site/wp-content/plugins/seamless-donations/images/

    Then, using my FTP client, I went to the seamless-donations plugin folder, and opened the file named dgx-donate-paypalstd.php using TextWrangler (use the editor of your choice). I scrolled to lines 275 and 276 and exchanged the names of the new files for the old names.

    REMEMBER THIS (and/or copy these instructions to your drive) SO IF THE PLUGIN GETS UPDATED YOU CAN REPEAT THE PROCESS.

    And you’re done!

    Plugin Author David Gewirtz

    (@dgewirtz)

    @dosuntai, I’ve just adopted the plugin. And yes, I will look at these forums (unless I find a better mechanism for support, in which case I will let you know).

    –David

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to insert a custom PayPal button’ is closed to new replies.