
We though it would be a good idea to add a tip jar to our Drupal 6 based web site.
I looked into the modules on drupal.org to do it and found a module called: lm_paypal
Downloaded the version for our site at this time, which is version 6.x
Put the module into /sites/all/modules
Enabled the lm_paypal module and configured it with our paypal email address
So that you can run the PHP code in the block, you need to enable the PHP Code filter in the core modules
Created a block called Tip Jar
Found an image of a tip jar and put the html image tag in the block to show a tip jar image
Inside the block I put a PHP code snippet:
If you like our articles or support and want to make a donation here is the electronic tip jar.
<img width="200" height="200" src="/sites/default/files/tip-jar1.jpg"/>
<?php
if (function_exists('lm_paypal_donate')) {
print 'Write your own amount to give, we suggest $10' .
lm_paypal_donate(array(10), 'USD', 'donation to example.com') . '<br>';
}
?>Set the input filter to use PHP Code for this block.
Next place the block where you want it to show up at.
We limited the tip jar block to only show on our articles and support pages
Thats it! Customize away till it fits your site nicely.
