1
script_fu
Can anyone design a Zoullou.net style donation module?

I have a new site that I want to set up a donation module.

Is there anything like
Zoullou's setup?

How hard would this be?

2
script_fu
Re: Can anyone design a Zoullou.net style donation module?

bump

3
christian
Re: Can anyone design a Zoullou.net style donation module?
  • 2007/7/19 11:22

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

Look this page

After you can create a php file with this code below and the code attached to paypal button

<?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
///////
echo "Your code";
///////
include(XOOPS_ROOT_PATH "/footer.php");
?>

4
script_fu
Re: Can anyone design a Zoullou.net style donation module?

Hi Christian,

Thank you for the code.

Is there a way to set it up like zoullou's.

I mean his "graphics" for 'specfic tasks" with a dollar amount. So the community will know how much it will cost to code this feature or that.

5
Northern
Re: Can anyone design a Zoullou.net style donation module?
  • 2007/7/19 17:10

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


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>&nbsp;</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>&nbsp;</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.

6
Northern
Re: Can anyone design a Zoullou.net style donation module?
  • 2007/7/19 17:39

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


I just relaised i added a thankyou.php direction in the paypal scripts.

for those people that have paid services and would only like users that pay for a subscriptin to a page, this is ideal for that setup.

<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. -->


you can change this to what ever page you like.
now you will have to ajust the permissions of your site for user access, but you should beable to figure out the rest.

7
script_fu
Re: Can anyone design a Zoullou.net style donation module?

Thank Northern!

You Rock...

I will give this a run on the garage site after it hits my dev first. I think this will help alot.

I will let you guys know how it worked out.

Very cool...

8
Northern
Re: Can anyone design a Zoullou.net style donation module?
  • 2007/7/20 0:12

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


heres a few demos.
http://www.calibernation.com/d1.php
and
http://www.calibernation.com/d2.php

9
script_fu
Re: Can anyone design a Zoullou.net style donation module?

Well I would say you are on the money! lol...

Hey what about the mini donation on the front page of zoullou's site?

He has it setup so everyone can see mini donation then you click on it and it goes to full page like what you have setup.

This is awesome thank you!

10
Northern
Re: Can anyone design a Zoullou.net style donation module?
  • 2007/7/20 5:16

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


for that youll need to go to Paypal.
That type of mini donation uses a coded section.
and it contains all the need to know things.

you can get that from this link.
https://www.paypal.com/us/cgi-bin/webscr?cmd=_wp-standard-overview-outside
unless you have a account then just hit murchents, and donation, its a step by step thing.

Login

Who's Online

248 user(s) are online (183 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits