Hi there,

I've installed the IM Paypal module on my site, but I don't know how to get the donation buttons up. Everything else seems to be hooked up fine. Can someone point me in the next direction?

thanks!
Terri

Comments

vm’s picture

isn't there a donation block in administer -> blocks ?

pluginamp’s picture

Yes, and I tried that one too, but that one works with the donorge website, which is down right now - so I decided to try again with IM Paypal. Also, I think there are other reasons I'll need the IM Paypal.

vm’s picture

I was not talking about a donation module. I was talking about LM_paypal

according to the readme.txt file for LM_paypal

lm_paypal_donations
-----------------------

All donations are generated with PHP snippet like the following:

<?php
if (function_exists('lm_paypal_donate')) {
  // 10 = amount, 'USD' is the currency followed by a description
  print 'We would really like a $10 donation ' .
    lm_paypal_donate(10, 'USD', 'donation to example.com') .'<br>';
  // The amount is a one element array so an text input with the one value as
  //  default
  print 'Write your own amount to give, we suggest $5' .
    lm_paypal_donate(array(5), 'USD', 'donation to example.com') . '<br>';
  // The amount is a multi element array so a select will be used. Note if one
  //   of the elements is itself an array that will be the default selection
  // The final two parameters are an alternative button (here we use the default)
  //   and a replacement label before the amount
  print 'We would really like a $10, or more, donation ' .
    lm_paypal_donate(array(5,array(10),15), 'USD', 'donation to example.com', '', 'Donation') .'<br>';
}
?>

which suggests at least to me, that this code gets added to a block.

pluginamp’s picture

Hi,

I just found a donations block! (That's a bit weird, because I could swear it wasn't there last night when I carefully examined the blocks.) And enabled it too...and there it is...but I don't know where to get the code to put in it! Thanks so far! Your help is working so far! ;) But where do I find that code?

Terri

vm’s picture

My understanding is you must create a block and add the php snippet to the block and submit it using the php input filter.

pluginamp’s picture

I think I figured it out. Thanks!

Terri

kzjbry’s picture

Did you get some weird formatting when using this php snippet?

I installed the code and it works, but the box appears elongated, and the donation button is multiple lines from the rest of the text.

My site is at www.myfavoritepic.com

Thanks in Advance,

Steve

vm’s picture

Take a look at your source code:

<div class="block-block-block" id="block-block-11">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="bleft">&#160;</td>
<td class="bleft-img">&#160;</td>
<td class="blocktitle">
Tips Jar</td>
<td class="bright-img">&#160;</td>
<td class="bright">&#160;</td>
</tr></table><div class="blockcontent">
<p>MyFavoritePic is supported totally by donations from our members.
</p>
<p>Thank You for your generosity!
</p>
<form action="http://www.paypal.com/cgi-bin/webscr" method="post" >
<table >
<tr align="center">
<td>Amount $ <input name="amount" size="3" value="5">
</td>
</tr>
<tr align="center">
<td><input type="hidden" name="cmd" value="_xclick"><br />
<input type="hidden" name="business" value="kzjbry@verizon.net"><br />
<input type="hidden" name="item_name" value="donation to myfavoritepic.com"><br />
<input type="hidden" name="notify_url" value="http://www.myfavoritepic.com/drupal/lm_paypal/ipn"><br />
<input type="hidden" name="no_shipping" value="1"><br />
<input type="hidden" name="return" value="http://www.myfavoritepic.com/drupal//lm_paypal/donations_thanks"><br />
<input type="hidden" name="currency_code" value="USD"><br />
<input type="hidden" name="no_note" value="1"><br />
<input type="hidden" name="custom" value="0"><br />
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</td>
</tr>
</table>
</form>
<p><br><br class="giImageBlock-clear-both" /></p>
</div>

and a closer look at the block on top of the donation block, they seem nested somehow or something. could be a problem in the theme ? There is no gapping between support & tip jar.

kzjbry’s picture

Which file are you looking at?

Thanks.

Steve

vm’s picture

I'm viewing the source of your front page. by right clicking, view source.
Thus I'm not directly looking at a file, only the way the page itself is rendered.

There is no gapping between the support block and the top jar blocks. Leads me to believe it may be a theme problem. what if you move the block around ? and view the source of the rendered page ?

i notice some <p> tags in the block did you alter the snippet ? Did you submit it with line breaks ?

kzjbry’s picture

I noticed in the source that the donation button image is after about 9 rows of 'hidden' text. These lines match the line feeds before the image.

I will have to find our how those lines are inserted. I'll bet that is where the problem is.

Steve

trantt’s picture

this donation/paypal block is no where to be found on my servers (local and live website). I'm not sure what need to be done here. I'm so confused with all of these donation/paypal modules.

vm’s picture

extremely difficult to help you with that limited information.

Need to know which module is in use, before anyone can comment on which block you should be looking for, or which code to use to create the block.
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime

trantt’s picture

All of those above four modules were enabled, all four were configed in the admin/settings/* sections but however, no link, button, or block was produce from these modules. I was guessing by enter mysite.org/donate and was able to see the donation page but however, this page was built particularly for drupal donation...

I was also by pass these modules and added the donation html syntax (button) directly to the block body. It was working perfectly but however, this block's height is much higher than the actual button itself. Is there a way that I can reduce the block height? Here is my original link to it http://drupal.org/node/149374#comment-261233

Thanks

trantt’s picture

All of those above four modules were enabled, all four were configed in the admin/settings/* sections but however, no link, button, or block was produce from these modules. I was guessing by enter mysite.org/donate and was able to see the donation page but however, this page was built particularly for drupal donation...

I was also by pass these modules and added the donation html syntax (button) directly to the block body. It was working perfectly but however, this block's height is much higher than the actual button itself. Is there a way that I can reduce the block height? Here is my original link to it http://drupal.org/node/149374#comment-261233

Thanks

trantt’s picture

All of those above four modules were enabled, all four were configed in the admin/settings/* sections but however, no link, button, or block was produce from these modules. I was guessing by enter mysite.org/donate and was able to see the donation page but however, this page was built particularly for drupal donation...

I was also by pass these modules and added the donation html syntax (button) directly to the block body. It was working perfectly but however, this block's height is much higher than the actual button itself. Is there a way that I can reduce the block height? Here is my original link to it

Thanks

trantt’s picture

All of those above four modules were enabled, all four were configed in the admin/settings/* sections but however, no link, button, or block was produce from these modules. I was guessing by enter mysite.org/donate and was able to see the donation page but however, this page was built particularly for drupal donation...

I was also by pass these modules and added the donation html syntax (button) directly to the block body. It was working perfectly but however, this block's height is much higher than the actual button itself. Is there a way that I can reduce the block height? Here is my original link to it

Thanks

trantt’s picture

didnt mean it. My post didnt show up and i kept posting....

sorry

vm’s picture

see: http://drupal.org/node/149374#comment-261509
_____________________________________________________________________________________________
give a person a fish and you feed them for a day but ... teach a person to fish and you feed them for a lifetime