| Author |
Message |
Paul |
|
Post subject: paypal button
Posted: Sep 21, 2006 - 11:47 PM
|
|
Joined: Sep 19, 2006
Posts: 10
Status: Offline
|
|
im having trouble trying to add a paypal button to my site. i have created a block and pasted the html into the editor, but the only thing that shows up is a small block with the text i have entered. any help would be greatly appreciated.
thank you |
|
|
| |
|
|
|
 |
mars |
|
Post subject: RE: paypal button
Posted: Sep 21, 2006 - 11:56 PM
|
|
Site Admin

Joined: Aug 15, 2004
Posts: 3867
Status: Offline
|
|
| Can you post the code you are using? |
|
|
| |
|
|
|
 |
Paul |
|
Post subject: RE: paypal button
Posted: Sep 22, 2006 - 12:07 AM
|
|
Joined: Sep 19, 2006
Posts: 10
Status: Offline
|
|
this is the html from paypal
Code:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----
">
</form>
|
|
|
| |
|
|
|
 |
mars |
|
Post subject: RE: paypal button
Posted: Sep 22, 2006 - 12:14 AM
|
|
Site Admin

Joined: Aug 15, 2004
Posts: 3867
Status: Offline
|
|
| Ok now can you post a link to the site so I can see what it is doing? |
|
|
| |
|
|
|
 |
Paul |
|
Post subject:
Posted: Sep 22, 2006 - 12:21 AM
|
|
Joined: Sep 19, 2006
Posts: 10
Status: Offline
|
|
| the |
Last edited by Paul on Sep 23, 2006 - 05:00 AM; edited 1 time in total
|
| |
|
|
|
 |
mars |
|
Post subject:
Posted: Sep 22, 2006 - 03:08 AM
|
|
Site Admin

Joined: Aug 15, 2004
Posts: 3867
Status: Offline
|
|
It looks like PHPNuke is stripping the tags, Try it this way
Code:
<?php
if (eregi("block-Donations.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "Help keep our web site online with a donation!";
$content .= "form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">";
$content .= "input type=\"hidden\" name=\"cmd\" value=\"_xclick\">";
$content .= "input type=\"hidden\" name=\"business\" value=\"My email\">";
$content .= "input type=\"hidden\" name=\"item_name\" value=\"My Homepage\">";
$content .= "input type=\"hidden\" name=\"amount\" value=\"10.00\">";
$content .= "input type=\"hidden\" name=\"no_note\" value=\"1\">";
$content .= "input type=\"hidden\" name=\"currency_code\" value=\"USD\">";
$content .= "input type=\"hidden\" name=\"tax\" value=\"0\">";
$content .= "input type=\"image\" src=\"https://www.paypal.com/images/x-click-but04.gif\"
border=\"0\" name=\"submit\"
alt=\"Make payments with PayPal - it"s fast, free and secure!\">";
$content .= "/form>";
?>
Put the above code in a file called block-Donations.php in the blocks folder. Then, just activate and position the block from the blocks management link in the administration panel. |
|
|
| |
|
|
|
 |
Paul |
|
Post subject:
Posted: Sep 22, 2006 - 03:46 AM
|
|
Joined: Sep 19, 2006
Posts: 10
Status: Offline
|
|
the file blocks-donations.php doesnt exist in my block files. i also created a players block and that file is not in my blocks folder.
I copy and paste to notepad and saved as block-Donations.php and add
to blocks folder, and still nothing |
|
|
| |
|
|
|
 |
GodOfWonders |
|
Post subject:
Posted: Sep 28, 2006 - 08:16 PM
|
|

Joined: Aug 20, 2004
Posts: 161
Status: Offline
|
|
| Paul if your using PHP-Nuke I suggest using a module called Nuke Treasury. It allows you to integrate a paypal button into PHP-Nuke and also keeps track of donations through your database and allows you to post donaters and keep track of donations on your site. Here is the d/l link: Nuke Treasury |
|
|
| |
|
|
|
 |
|
|