| Author |
Message |
ironhorse
Nuke Soldier


Joined: Dec 10, 2005
Posts: 16
|
Posted:
Sat Dec 10, 2005 10:00 am |
  |
I am trying to make a donation block for my site but I have the html code for the paypal button but when I try putting it into a block it falls over
All I am after doing is to have one like the support block on this site.
Can anyone help please (I am new to php code )
Thanks
Ironhorse |
|
|
   |
 |
astalavistabd
Captain


Joined: Dec 19, 2004
Posts: 663
Location: Canada
|
Posted:
Sat Dec 10, 2005 11:09 am |
  |
|
        |
 |
ironhorse
Nuke Soldier


Joined: Dec 10, 2005
Posts: 16
|
Posted:
Sat Dec 10, 2005 12:03 pm |
  |
Thanks for this toolset but I am not sure what I am meant to do as everytime I convert to either php or block and try using it its messing up
| Code: |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="******************">
<input type="hidden" name="item_name" value="**************">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<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!">
</form>
|
This is the code I am given by paypal, how do I convert it, I know it was said that "The editor will not accept form tags." but can you give is some help on what I am doing please? i dont know which tools to use
Thanks
Ironhorse |
|
|
   |
 |
astalavistabd
Captain


Joined: Dec 19, 2004
Posts: 663
Location: Canada
|
Posted:
Sat Dec 10, 2005 4:20 pm |
  |
Make a block-Paypal.php file using your text/html/php editor with the following code :
| Code: |
<?php
#### Generated by Block Creator by Astalavista-BD (www.phpnuke-downloads.com) ###
if (eregi("block-Paypal.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<center><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=\"******************\">";
$content .= "<input type=\"hidden\" name=\"item_name\" value=\"**************\">";
$content .= "<input type=\"hidden\" name=\"no_note\" value=\"1\">";
$content .= "<input type=\"hidden\" name=\"currency_code\" value=\"GBP\">";
$content .= "<input type=\"hidden\" name=\"tax\" value=\"0\">";
$content .= "<input type=\"hidden\" name=\"bn\" value=\"PP-DonationsBF\">";
$content .= "<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!\">";
$content .= "</form></center> ";
?>
|
Then upload it to your nuke blocks folder an activate the block.  |
_________________ Free PHPNuke Themes, PHPNuke Modules, PHPNuke Blocks (No Registration Required) |
|
        |
 |
bigone
Nuke Cadet


Joined: Apr 17, 2006
Posts: 7
|
Posted:
Mon Apr 17, 2006 11:01 am |
  |
|
   |
 |
lornaben
Nuke Cadet


Joined: Feb 27, 2005
Posts: 8
|
Posted:
Tue Jun 20, 2006 1:35 pm |
  |
It seems the HTML is getting 'trimmed' by the WYSIWYG editor.
All looks OK until you save it, then most of the code gets 'cleaned'
Try changing whats allowed in config.php |
|
|
   |
 |
Kingmarine
Nuke Cadet


Joined: Feb 13, 2007
Posts: 4
|
Posted:
Fri Mar 09, 2007 11:01 pm |
  |
Hi, I am trying to put two paypal images in one block, one above the other. I made new images for each button, but can't seem to get the code correct. Only one will show up and I can't get them to separate. It always shows the lower section. I copied what was above and tried to paste the same code right below that. I tried all kinds of different ways to separate it and I can't get it to work. Please help. Thx
Kingmarine |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12342
|
Posted:
Sat Mar 10, 2007 1:09 am |
  |
|
     |
 |
Kingmarine
Nuke Cadet


Joined: Feb 13, 2007
Posts: 4
|
Posted:
Sun Mar 11, 2007 7:41 am |
  |
Thx, it is working like a charm now. Sometimes the smallest things will frustrate you to no end... |
|
|
   |
 |
|
|