[gnomeweb-wml] Make monthly donation configurable



commit b4b9a6fa66926d77ca983552a233c76b16148fad
Author: Jaap A. Haitsma <jaap haitsma org>
Date:   Sat Aug 29 17:33:49 2009 +0200

    Make monthly donation configurable
    
    Based on a patch of Guy Lunardi <glunardi novell com>

 www.gnome.org/friends/index.wml |    2 +-
 www.gnome.org/friends/step2.wml |   78 +++++++++++++++++++++++++-------------
 2 files changed, 52 insertions(+), 28 deletions(-)
---
diff --git a/www.gnome.org/friends/index.wml b/www.gnome.org/friends/index.wml
index f8c4a20..2dbf30b 100644
--- a/www.gnome.org/friends/index.wml
+++ b/www.gnome.org/friends/index.wml
@@ -59,7 +59,7 @@ in 2008 we were able to:
 <div class="box active">
 <input type="radio" name="aidtype" value="adopt" checked>
 <img src="images/postcard.png">
-<h3>Adopt a hacker $10 (Monthly)</h3>
+<h3>Adopt a hacker $10 or more (Monthly)</h3>
 <strong>You get:</strong> A set of GNOME stickers, a thank you postcard from your favorite hacker, and a t-shirt after your first year!
 </div>
 
diff --git a/www.gnome.org/friends/step2.wml b/www.gnome.org/friends/step2.wml
index b110db4..918e6e9 100644
--- a/www.gnome.org/friends/step2.wml
+++ b/www.gnome.org/friends/step2.wml
@@ -43,37 +43,50 @@ improve GNOME products.</li>
 	if(!empty($_POST['aidtype'])) {
 		switch($_POST['aidtype']) {
 			case 'adopt':
-			echo 'You have chosen to <strong>adopt a hacker</strong> <a href="index.html">(change)</a> for a monthly amount of $10';
-                        echo '<h3>Pick a hacker from whom you will receive a post card:</h3>
-                        <input type="hidden" value="Favorite Hacker" name="on0"/>
-                        <input type="radio" value="You will receive a postcard from Emmanuele Bassi" name="os0"/><a href="http://live.gnome.org/EmmanueleBassi"; target="_blank">Emmanuele Bassi</a><br/>
-                        <input type="radio" value="You will receive a postcard from Brian Cameron" name="os0"/><a href="http://live.gnome.org/BrianCameron"; target="_blank">Brian Cameron</a><br/>
-                        <input type="radio" value="You will receive a postcard from Diego Escalante Urrelo" name="os0"/><a href="http://live.gnome.org/DiegoEscalanteUrrelo"; target="_blank">Diego Escalante Urrelo</a><br/>
-                        <input type="radio" value="You will receive a postcard from Behdad Esfahbod" name="os0"/><a href="http://live.gnome.org/BehdadEsfahbod"; target="_blank">Behdad Esfahbod</a><br/>
-                        <input type="radio" value="You will receive a postcard from Andre Klapper" name="os0"/><a href="http://live.gnome.org/AndreKlapper"; target="_blank">Andre Klapper</a><br/>
-                        <input type="radio" value="You will receive a postcard from Alexander Larsson" name="os0"/><a href="http://blogs.gnome.org/alexl"; target="_blank">Alexander Larsson</a><br/>
-                        <input type="radio" value="You will receive a postcard from Federico Mena Quintero" name="os0"/><a href="http://live.gnome.org/FedericoMenaQuintero"; target="_blank">Federico Mena Quintero</a><br/>
-                        <input type="radio" value="You will receive a postcard from Andreas Nilsson" name="os0"/><a href="http://live.gnome.org/AndreasNilsson"; target="_blank">Andreas Nilsson</a><br/>
-                        <input type="radio" value="You will receive a postcard from John Palmieri" name="os0"/><a href="http://live.gnome.org/JohnPalmieri"; target="_blank">John Palmieri</a><br/>
-                        <input type="radio" value="You will receive a postcard from Frederic Peters" name="os0"/><a href="http://live.gnome.org/FredericPeters"; target="_blank">Frederic Peters</a><br/>
-                        <input type="radio" value="You will receive a postcard from Stormy Peters" name="os0"/><a href="http://live.gnome.org/StormyPeters"; target="_blank">Stormy Peters</a><br/>
-                        <input type="radio" value="You will receive a postcard from Lucas Rocha" name="os0"/><a href="http://live.gnome.org/LucasRocha"; target="_blank">Lucas Rocha</a><br/>
-                        <input type="radio" value="You will receive a postcard from Vincent Untz" name="os0"/><a href="http://live.gnome.org/VincentUntz"; target="_blank">Vincent Untz</a><br/>
-                        <input type="radio" value="You will receive a postcard from Luis Villa" name="os0"/><a href="http://live.gnome.org/LuisVilla4"; target="_blank">Luis Villa</a><br/>';
-			break;
+				echo 'You have chosen to <strong>adopt a hacker</strong> <a href="index.html">(change)</a><br />'; 
+				echo '<strong>Monthly amount:</strong> <input type="text" style="text-align: right" id="amount" name="a3" value="10" size=5>$<br />';
+				echo 'Please increase the amount above if you want to make a larger difference.';
+
+	                        echo '<h3>Pick a hacker from whom you will receive a post card:</h3>
+				<input type="hidden" value="Favorite Hacker" name="on0"/>
+				<input type="radio" value="You will receive a postcard from Emmanuele Bassi" name="os0"/><a href="http://live.gnome.org/EmmanueleBassi"; target="_blank">Emmanuele Bassi</a><br/>
+				<input type="radio" value="You will receive a postcard from Brian Cameron" name="os0"/><a href="http://live.gnome.org/BrianCameron"; target="_blank">Brian Cameron</a><br/>
+				<input type="radio" value="You will receive a postcard from Diego Escalante Urrelo" name="os0"/><a href="http://live.gnome.org/DiegoEscalanteUrrelo"; target="_blank">Diego Escalante Urrelo</a><br/>
+				<input type="radio" value="You will receive a postcard from Behdad Esfahbod" name="os0"/><a href="http://live.gnome.org/BehdadEsfahbod"; target="_blank">Behdad Esfahbod</a><br/>
+				<input type="radio" value="You will receive a postcard from Andre Klapper" name="os0"/><a href="http://live.gnome.org/AndreKlapper"; target="_blank">Andre Klapper</a><br/>
+				<input type="radio" value="You will receive a postcard from Alexander Larsson" name="os0"/><a href="http://blogs.gnome.org/alexl"; target="_blank">Alexander Larsson</a><br/>
+				<input type="radio" value="You will receive a postcard from Federico Mena Quintero" name="os0"/><a href="http://live.gnome.org/FedericoMenaQuintero"; target="_blank">Federico Mena Quintero</a><br/>
+				<input type="radio" value="You will receive a postcard from Andreas Nilsson" name="os0"/><a href="http://live.gnome.org/AndreasNilsson"; target="_blank">Andreas Nilsson</a><br/>
+				<input type="radio" value="You will receive a postcard from John Palmieri" name="os0"/><a href="http://live.gnome.org/JohnPalmieri"; target="_blank">John Palmieri</a><br/>
+				<input type="radio" value="You will receive a postcard from Frederic Peters" name="os0"/><a href="http://live.gnome.org/FredericPeters"; target="_blank">Frederic Peters</a><br/>
+				<input type="radio" value="You will receive a postcard from Stormy Peters" name="os0"/><a href="http://live.gnome.org/StormyPeters"; target="_blank">Stormy Peters</a><br/>
+				<input type="radio" value="You will receive a postcard from Lucas Rocha" name="os0"/><a href="http://live.gnome.org/LucasRocha"; target="_blank">Lucas Rocha</a><br/>
+				<input type="radio" value="You will receive a postcard from Vincent Untz" name="os0"/><a href="http://live.gnome.org/VincentUntz"; target="_blank">Vincent Untz</a><br/>
+				<input type="radio" value="You will receive a postcard from Luis Villa" name="os0"/><a href="http://live.gnome.org/LuisVilla4"; target="_blank">Luis Villa</a><br/>';
+				break;
+
 			case 'associate':
-			echo 'You have chosen to become a <strong>associate</strong> <a href="index.html">(change)</a> for a one time donation of<input type="text" id="amount" name="amount" value="$25" size=5>';
-			break;
+				echo 'You have chosen to become a <strong>associate</strong> <a href="index.html">(change)</a> <br />'; 
+				echo '<strong>One time amount:</strong> <input type="text" style="text-align: right" id="amount" name="amount" value="25" size=5>$ <br />';
+				echo 'Please increase the amount above if you want to make a larger difference.';
+				break;
+
 			case 'sponsor':
-			echo 'You have chosen to become a <strong>sponsor</strong> <a href="index.html">(change)</a> for a one time donation of <input type="text" id="amount" name="amount" value="$500" size=5>';
-			break;
+				echo 'You have chosen to become a <strong>sponsor</strong> <a href="index.html">(change)</a> <br />';
+				echo '<strong>One time amount:</strong> <input type="text" style="text-align: right" id="amount" name="amount" value="500" size=5>$ <br />';
+				echo 'Please increase the amount above if you want to make a larger difference.';
+				break;
+
 			case 'philanthropist':
-			echo 'You have chosen to become a <strong>philanthropist</strong> <a href="index.html">(change)</a> for a one time donation of <input type="text" id="amount" name="amount" value="$1200" size=5>';
-			break;
+				echo 'You have chosen to become a <strong>philanthropist</strong> <a href="index.html">(change)</a><br />';
+				echo '<strong>One time amount:</strong> <input type="text" style="text-align: right" id="amount" name="amount" value="1200" size=5>$ <br />';
+				echo 'Please increase the amount above if you want to make a larger difference.';
+				break;
+
 			default:
 				header('location: ./index.html');
 				die('No type selected.');
-			break;
+				break;
 		}
 
 		
@@ -95,6 +108,7 @@ improve GNOME products.</li>
 <input type="radio" value="No" name="os1"/>Don't send me a gift, please.<br/>
 <small>If you do not want to receive a gift, we will save the money for the gift and shipping and use it to further the mission of the GNOME Project, bringing a free desktop to the public.</small><br/>
 
+
 <h3>Select whether you want to have your name listed in the donors page:</h3>
 <input type="hidden" value="List name in the donors page" name="on2"/>
 <input type="radio" value="Yes" name="os2" checked>Yes<br/>
@@ -112,11 +126,21 @@ improve GNOME products.</li>
 				<!-- Identify your business so that you can collect the payments. --> 
 				<input type="hidden" name="business" value="friends gnome org"/> 
 				<!-- Specify a Subscribe button. --> 
-                                <input type="hidden" name="cmd" value="_s-xclick">
+                                <!-- <input type="hidden" name="cmd" value="_s-xclick"> -->
+                                <input type="hidden" name="cmd" value="_xclick-subscriptions">
                                 <input type="hidden" name="hosted_button_id" value="2854082">
 				<!-- Identify the subscription. -->
-				<input type="hidden" name="item_name" value="Friends of GNOME - Adopt a hacker for $10/month"/> 
+				<input type="hidden" name="item_name" value="Friends of GNOME - Adopt a hacker monthly subscription"/> 
 				<input type="hidden" value="http://www.gnome.org/friends/thank-you.html"; name="return"/>
+				<!-- Define the intervals between payments. "1" means every period. -->
+				<input type="hidden" name="p3" value="1">
+				<!-- "t3" defines the period duration (D=days; W=weeks; M=months and Y=Years). --> 
+				<input type="hidden" name="t3" value="M">
+				<!-- "src" with a value of "1" causes it to repeat for every interval. -->
+				<input type="hidden" name="src" value="1">
+				<!-- Not sure what "sra" does. Doesn not seem to harm the form (part of sample). -->
+				<input type="hidden" name="sra" value="1">
+				<input type="hidden" name="currency_code" value="USD">
 				<!-- Display the payment button. --> 
 				<input type ="image" name= "submit" src="images/donate-button.png" alt="PayPal - The safer, easier way to pay online"/> 
 				<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif"; />';



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]