5
Heres a sideways paypal. block.
<?php
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
elseif(file_exists("../mainfile.php")) {
include("../mainfile.php");
}
else {
include("../../mainfile.php");
}
include(XOOPS_ROOT_PATH . "/header.php");
$xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks
?>
<table align="center">
<tr>
<td id="head"width="152" style="text-decoration: none; text-align:center; border: medium none;">
<font face="Tahoma" style="font-size: 11pt">Name</font></td>
<!-- name your paypal box ( topic )-->
<td id="odd" width="70" style="text-decoration: none; text-align:center; border: medium none;">
<font face="Tahoma" style="font-size: 9pt">Say what you need to say. </font> </td>
<!-- what is it that they are buying? -->
<td id="even" width="75" style="text-decoration: none; text-align:center; border: medium none;">
<font face="Tahoma" style="font-size: 9pt">What do you get?</font> </td>
<!-- What all comes with it? -->
<td id="foot" width="64" style="text-decoration: none; text-align:center; border: medium none;"><b><font face="Arial, Helvetica, sans-serif" size="2">$0.00 <br>what will it cost you?</font></b></td>
<!-- How its to ime to tell them what will it cost them $$$$$-->
<td id="foot" width="87" style="text-decoration: none; border: medium none"> <div align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="youremailaccount@paypal.com">
<!-- this is you paypal account that the buyer will send the money too. -->
<input type="hidden" name="item_name" value="What is it that they are buying?">
<!--You should always tell them what they just spent there hard earned cash on... -->
<input type="hidden" name="return" value="http://www.yoursite.com/signup_thanks.php">
<!-- Thank yous are always nice thing to have but you dont needed them, if your mean. -->
<input type="hidden" name="cancel_return" value="http://www.yoursite.com">
<!-- this will take the buyer back to what ever page you tell it.-->
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<p>
<input type="image" src="http://www.paypal.com/en_US/i/logo/ppslv2.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="73" height="44" style="text-decoration: none; border: medium none">
<input type="hidden" name="a3" value="$ 0.00">
<!-- Its time for the price tag -->
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</p>
</form>
</div></td>
</tr>
</table>
<?php
include(XOOPS_ROOT_PATH . "/footer.php");
?>
or you can make one like Zoullou's
<?php
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
elseif(file_exists("../mainfile.php")) {
include("../mainfile.php");
}
else {
include("../../mainfile.php");
}
include(XOOPS_ROOT_PATH . "/header.php");
$xoopsTpl->assign('xoops_showrblock', 0); // 1 display right blocks
$xoopsTpl->assign('xoops_showlblock', 0); // 1 display right blocks
?>
<table style="width:100%; border: 2px groove; margin-bottom:10px;">
<tr>
<td colspan="2" style="padding-bottom:10px;"><span style="font-weight:bold; text-decoration:underline;">Name of item :</span><br />discribe the item that you are selling or that needed dontated and why.</td>
</tr>
<tr>
<td id="even" style="border:1px solid black; width:60%; text-align:center;" title="Vote already Done">$30</td>
<td id="odd" style="border:1px solid black; width:40%; text-align:center;" title="Vote needed more to add this feature">$20</td>
</tr>
<tr>
<td colspan="2" style="text-align:center; padding:5px;">
<b>Click below to vote</b><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="youremailaccount@paypal.com">
<!-- this is you paypal account that the buyer will send the money too. -->
<input type="hidden" name="item_name" value="What is it that they are buying?">
<!--You should always tell them what they just spent there hard earned cash on... -->
<input type="hidden" name="return" value="http://www.yoursite.com/signup_thanks.php">
<!-- Thank yous are always nice thing to have but you dont needed them, if your mean. -->
<input type="hidden" name="cancel_return" value="http://www.yoursite.com">
<!-- this will take the buyer back to what ever page you tell it.-->
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<p>
<input type="image" src="http://www.paypal.com/en_US/i/logo/ppslv2.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="73" height="44" style="text-decoration: none; border: medium none">
<input type="hidden" name="a3" value="$ 0.00">
<!-- Its time for the price tag -->
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</p>
</form>
</td>
</tr>
</table>
<?php
include(XOOPS_ROOT_PATH . "/footer.php");
?>
Need more?
I can doo these all day long, LOL
Havent tested them, but they should be plug and play for xoops.