PayPal Donations WordPress Widget

PayPal Donation Widget Setup

PayPal Widget Setup

I just released a new version of PayPal Donations, version 1.2.

New in this version is the inclusion of a sidebar Widget for the PayPal button. I’m using the new WordPress 2.8 API for the Widget, so it’s only available if you run the plugin on WordPress 2.8 or newer.

In the widget admin you can specify a descriptive text as well as overrides for Purpose and Reference if you wish.

Enjoy and cheers!

Liked this post?

Subscribe to the site feed with RSS or by email.

Tags: ,
Category: WordPress

Digg it Delicious Stumbleupon Spread the word on Twitter! Share on Facebook Share on LinkedIn

Comments

  1. PamJuly 3, 2009

    Hi, I like you plugin and I am attempting to put a custom header img in the php. I’m not great with PHP to begin with, and I’m having trouble getting an image to show…any ideas?

    // Get the settings
    $title = ” ;

    should it not go there?

    ( Reply )
    1. JohanJuly 5, 2009

      Hi,

      If you want to edit the plugin php file to use an image for the title, locate the

      1
      2
      3
      
      function widget( $args, $instance ) {
       ...couple of lines of code...
       }

      It’s towards the end of the plugin file, around line 310. Within that function you’ll find two lines (around line 321, 322) which looks like this:

      1
      2
      
      if ( $title )
      	echo $before_title . $title . $after_title;

      Delete both those lines and replace it with this single line:

      1
      
      echo '<img src="http://URL TO YOUR IMAGE" />';

      and that should be it and the title is replaced with an image of your choice instead.

      Another solution, if you don’t want to mess with the PHP code, is to just leave the title field empty in the widget settings in the dashboard. If the title field is empty, the plugin skips displaying that section on the website, and then in the widgets textfield in the dashboard you just start the textfield by writing

      1
      
      <img src="http://URL TO YOUR IMAGE" />

      As the textfield in the plugin widget allows HTML it’s an easier solution, and also when you don’t edit the plugin’s PHP it will continue to work if you update the plugin in the future.

      Hope this helps.
      Cheers!

      ( Reply )
  2. sergiFebruary 23, 2010

    for some reason the paypal button doesn’t show up in the widget when viewing the site in safari. i had to use a “custom button” instead. have you experienced this?

    i had this same problem when i wasn’t using your plugin, or wordpress for that matter. it turned out that there was a conflict between my google analytics code and my and the code generated by paypayl’s “button generator”. (and again, the problem was only in safari.)

    ( Reply )

Leave a Reply

( Get a Gravatar )
  1. Gravatar

    Your Name
    March 10, 2010


Trackbacks and Pingbacks

( Leave a Trackback )