View Full Version : paypal module (dropdown)
divided_by_fear
12-20-2005, 12:05 AM
ok we made a little paypal module figured we would share... but before i go any further i would like to thank derekivey for helping me out on this... so here is a image to show you how it looks... and i am trying to explain this as best as i can and make it as simple as i can... keep in mind i change my image, this code will show paypals button
http://img470.imageshack.us/img470/3175/paypal6rg.jpg
what we did was made a new template named it adv_portal_paypal
and in that template we added this code...
<tr>
<td class="$bgclass">
<center><span class="smallfont">If you like this website, and would like to give something in return, you can make a donation. Your donation will be used to pay for hosting service, domain, & maintenance costs only!</span></center>
<br />
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="youremail@whatever.com" />
<input type="hidden" name="item_name" value="Website Support Donation" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="tax" value="0" />
$<SELECT NAME="amount">
<OPTION value="1.00">1.00</option>
<OPTION value="2.00">2.00</option>
<OPTION value="3.00">3.00</option>
<OPTION value="4.00">4.00</option>
<OPTION value="5.00">5.00</option>
<OPTION value="10.00">10.00</option>
<OPTION value="20.00">20.00</option>
<OPTION value="25.00">25.00</option>
<OPTION value="50.00">50.00</option>
<OPTION value="100.00">100.00</option>
</SELECT>
<br /><br />
<center><span class="smallfont">Select your donation amount and then press the Donate button.</span></center>
<br />
<tr>
<td class="$getbgrow" align="center"><span class="smallfont">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<br />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0"></a>
<br /><br />
</td>
</tr>
in the code make sure you change youremail@whatever.com to your email...
then add a module, you want to add a Template Module
and in the module settings add this
Module Title: Donations
Template to Include: adv_portal_paypal
Use Module Shell Template : yes
Title Row Colspan: 1
and set your Usergroups to what ever you want
hope this helps and if any one wants to edit the code or make it easier to install feel free, im still new to this and getting the feel for it.
pennylessz28
12-21-2005, 10:13 PM
excellent work brother man
divided_by_fear
12-26-2005, 05:32 AM
thanks :)
Nice looks great. I hope somone uses the $100 tab
Robbed
12-27-2005, 09:44 PM
Good job, nice and simple.
livedesi
12-30-2005, 04:31 AM
Thanks
Ozzie
12-31-2005, 11:40 AM
This is great! Easy to set up and simple to customize if you wish. Thanks much!:)
Ins4n3
01-02-2006, 11:33 AM
This works great, thank you. Just thought I would mention its missing a </form> so if theres any other forms on the page you put this on they will be messed up. Great work though :)
Rocket_Cowboy
01-02-2006, 03:46 PM
Does this tie into vb's subscription interface in any kind of way? It would be great if a donation here could be tied to a subscription level, so that users don't have to hop through the User CP links to find them.
Danny Diamond
01-04-2006, 12:03 AM
Thanks man.
DementedMindz
01-14-2006, 02:56 AM
here is the same module but 100% completely html complaint...
<tr>
<td class="$bgclass">
<center><span class="smallfont">If You Like This Website, And Would Like To Give Something In Return, You Can Make A Donation. Your Donation Will Be Used To Pay For Hosting Service, Domain, And Maintenance Costs Only!</span></center>
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="youremail@whatever.com" />
<input type="hidden" name="item_name" value="Website Support Donation" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="tax" value="0" />
$
<select name="amount">
<option value="1.00">1.00</option>
<option value="2.00">2.00</option>
<option value="3.00">3.00</option>
<option value="4.00">4.00</option>
<option value="5.00">5.00</option>
<option value="10.00">10.00</option>
<option value="20.00">20.00</option>
<option value="25.00">25.00</option>
<option value="50.00">50.00</option>
<option value="100.00">100.00</option>
</select>
</div>
<center>
<br />
<center><span class="smallfont">Select Your Donation Amount And Then Press The Donate Button.</span></center>
<br />
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<br />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" alt="Make payments with PayPal - it's fast, free and secure!" /><br /></fieldset></center>
</form>
</td>
</tr>
ill attach a module but im not a pro at this let me know if the module works
gothic1213
01-14-2006, 05:04 AM
Many thanks for sharing, really good.
DementedMindz
01-14-2006, 05:25 AM
no problem glad you enjoy... my main goal was to make it flly html complaint i posted it on http://www.vbulletin.org/forum/showthread.php?t=105276 as i am on there more and can give support on it more there.
-Haro`
01-18-2006, 04:19 PM
is there anyway to modify the code as to where you can type the amount you want rather then select it?
Ozzie
01-18-2006, 08:31 PM
I used this to eliminate the amount selection part and deleted all the selection 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!">
Gary Bolton
02-09-2006, 07:16 AM
I've re-wrote this PayPal code quite a lot becuase there were a few closing tags missing and to many times were "center" was used using the SPAN command when it was not needed.
In your custom modual were you add the "custom content" bit to be used. Just add this below.
<!-- Text Start -->
<div class="smallfont">
If you like this site and would like to give something, you can make a free donation. Your donation will be used to pay for hosting & maintenance costs.
</div>
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="your_email_here" />
<input type="hidden" name="item_name" value="Your Site Name" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USB" />
<input type="hidden" name="tax" value="0" />
<div class="smallfont" align="center">
$<SELECT NAME="amount">
<OPTION value="1.00">1.00</option>
<OPTION value="2.00">2.00</option>
<OPTION value="3.00">3.00</option>
<OPTION value="4.00">4.00</option>
<OPTION value="5.00">5.00</option>
<OPTION value="10.00">10.00</option>
<OPTION value="20.00">20.00</option>
<OPTION value="25.00">25.00</option>
<OPTION value="50.00">50.00</option>
<OPTION value="100.00">100.00</option>
</SELECT>
</div>
<br />
<div class="smallfont" align="center">
Select your donation amount
<br />
and press the "Donate Button".
</div>
<br />
<br />
<fieldset class="fieldset">
<legend><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" alt="Click to make a donation" border="0"></a> </legend>
</fieldset>
</form>
<!-- Text End -->
</td>
</tr>
</table>
<!-- Paypal End -->
This is setup for "£" is you want to use Dollars, just change the GBP to USD and the £ to $ in the code.
Centurio
02-09-2006, 11:45 AM
Hi
i must translate in German,but nice Work 100%
tfletch
02-26-2006, 01:24 AM
K, would like to thank you for this module. I like it alot.
Using VB3.5.3
CMPS 2.1
I had to remove this module because after installing vbshout 2.0 and
vBadvanced CMPS v2.
When i had the shoutbox on the Portal, when you clicked on the shout button
It takes you to the Paypal site... And also When I installed the Military clock module, the time wouldn't show up. when i clicked on the spot where the time should be, it to took me to the paypal site.
I have installed a different donations block for now but really like the drop down here... any Ideas? Thanks
Binder
02-26-2006, 03:21 AM
Thank you
It works great I have a paypal account to get the donations
I edited it
and I set that up it works great
can I take away the credit card icons and just use the paypal method can you tell me how to do this please ?
My site http://www.bindfold.com/cmps_index.php
wired
03-05-2006, 06:04 PM
Excellent work, installed!
sickmate
03-09-2006, 09:01 AM
Awesome work.
sickmate 8)
blackknights
03-09-2006, 05:44 PM
Module installed and is working well thanks for the addon
DementedMindz
03-12-2006, 01:18 AM
i will be workin on a paypal module where you can input the amount for users who dont like the drop down ill start work on it in the morning..... im not on here much so i will post it here if i get a chance if not it will be on vbulletins site along with my other mod here is the link http://www.vbulletin.org/forum/showthread.php?t=105276
DementedMindz
03-12-2006, 01:22 AM
I've re-wrote this PayPal code quite a lot becuase there were a few closing tags missing and to many times were "center" was used using the SPAN command when it was not needed.
In your custom modual were you add the "custom content" bit to be used. Just add this below.
<!-- Text Start -->
<div class="smallfont">
If you like this site and would like to give something, you can make a free donation. Your donation will be used to pay for hosting & maintenance costs.
</div>
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="your_email_here" />
<input type="hidden" name="item_name" value="Your Site Name" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USB" />
<input type="hidden" name="tax" value="0" />
<div class="smallfont" align="center">
$<SELECT NAME="amount">
<OPTION value="1.00">1.00</option>
<OPTION value="2.00">2.00</option>
<OPTION value="3.00">3.00</option>
<OPTION value="4.00">4.00</option>
<OPTION value="5.00">5.00</option>
<OPTION value="10.00">10.00</option>
<OPTION value="20.00">20.00</option>
<OPTION value="25.00">25.00</option>
<OPTION value="50.00">50.00</option>
<OPTION value="100.00">100.00</option>
</SELECT>
</div>
<br />
<div class="smallfont" align="center">
Select your donation amount
<br />
and press the "Donate Button".
</div>
<br />
<br />
<fieldset class="fieldset">
<legend><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" alt="Click to make a donation" border="0"></a> </legend>
</fieldset>
</form>
<!-- Text End -->
</td>
</tr>
</table>
<!-- Paypal End -->
This is setup for "£" is you want to use Dollars, just change the GBP to USD and the £ to $ in the code.
i was trying to stay on the 100% html complaince as i redid it on the vbulletin site and its 100% complaint if you run your code it will fail bad i know center is used but i will be cleaning it up more also but as for right now the code on vbulletin is 100% complaint
CSS59
03-17-2006, 12:37 PM
What if you have a goal of a fixed amount like $$300. Is there a way to show the remaining towards the goal automatically after each donations?
Tat would be cool. Like “only $50 more to reach our goal of the $300 drive”
Please let me know if this can be done. I’m pretty sure they had something on vb.org for 3.0 a while back
Beller
03-19-2006, 04:50 PM
;) Nice work..Thank you! ;)
DementedMindz
03-30-2006, 12:05 PM
I used this to eliminate the amount selection part and deleted all the selection 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!">
how could you remove that? its how it works... its the form...
DementedMindz
03-30-2006, 12:08 PM
also the newer one i posted on vbulletin allows you to manually enter in the amount... its the second code posted :)
Ozzie
03-30-2006, 09:32 PM
how could you remove that? its how it works... its the form...
I apologize for my confusing wording. I used that code 'instead' of what had been originally posted. I replaced the original with those lines. I didn't actually remove it. :o
1996 328ti
04-06-2006, 08:48 PM
I had a problem with this module.
I used this module on my forumdisplay page.
Whenever someone chose Post Quick Reply or Go Advanced they where redirected to the paypal page.
This seemed dependent on which usergroup they where assigned.
Ohiosweetheart
04-08-2006, 12:33 AM
just what I was looking for, and works great ;)
DementedMindz
04-10-2006, 04:41 PM
I had a problem with this module.
I used this module on my forumdisplay page.
Whenever someone chose Post Quick Reply or Go Advanced they where redirected to the paypal page.
This seemed dependent on which usergroup they where assigned.
the new code on vbulletin.org shouldnt give no problems cause all tags are opened and closed in the module... its 100 % html complaint... i even made one where they can input there own amount and dont have to chose a drop down...
TXphi592
05-30-2006, 06:37 PM
can you post it here please? for some reason the firewall here blocks that site
blockbusted
06-16-2006, 10:07 AM
EXCELLENT work, installed. Thanks much!
kam009
06-19-2006, 10:11 PM
Can someone please give a path to where i go and paste the code
kam009
06-21-2006, 01:46 AM
thanks
muzikbizwiz
07-14-2006, 03:16 PM
This is a great code! I found this through a search as I am trying to find a variant of this where the ITEM is selectable vs the price. I have a client who uses PayPal who wants to offer comedy CDs at half price for a limited time and I don't relish making 134 different buttons! www.uproarcomedycd.com
testpig
09-01-2006, 11:12 PM
This is a great hack...thanks :)
I already have the "Bills Paypal"hack installed in vBulletin which works really well, but a simple modification of your code is a great way to highlight it on vB Advanced homepage + I thought it was better to stick to one donation format.
I followed your install instructions but used the code below in the template. It relies on the Bills Paypal hack to do the actual donations - this simply acts as a redirect from the homepage to Bills donation page.
Hope you dont mind me modifying your code - just wanted to share as I felt it might be handy for others.
<tr>
<td class="$bgclass">
<div align="center"><span class="smallfont">Oursite.com is funded by the generousity of our members. </span></div>
<form action="http://www.Oursite.com/ourforum/billspaypal.php?" target="_blank" method="post">
<fieldset class="fieldset" style="margin:0px 0px 0px 0px">
<br />
<div align="center"><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" alt="Make payments with PayPal - it's fast, free and secure!" /><br /><br /></div></fieldset>
</form>
</td>
</tr>
bandare
09-02-2006, 10:46 AM
Can this be done with a subscription part too for those that want to do it monthly rather than just a one off....
I believe people are having problems with this because FORM code should go before <table>. You can modify the code to put a <table> within the <td> (followed, of course, with a <tr> and <td> and don't forget to close them too) and be sure to close the <form> after </table>. If you check the page you have this on in a HTML validator (http://validator.w3.org/), you will find the errors I mentioned.
R'gards,
Jim
V|K|NG-babo[PT]
11-15-2006, 07:04 AM
Nice work :)
m4manas
02-10-2007, 02:04 PM
Hi Guys its a nice work
I achieved the same result, via a different route.
I stored the content in vbPaypal.php file. Uploaded it to the module directory.
I am running cmps. In cmps i added one module donate and in that i selected vbPaypal.php turning on the options of clean non vb code.
You can see the result on my site.
http://www.pwwc.org
Any suggestion which is a better way of doing it. Via module or through template.
whaase
02-16-2007, 12:12 AM
I have been trying to get this to work for 3 hrs now :( Can you post the code from the .php file you created? I tried pasting the code at the start of this thread and it tells me it is not a valid module :confused:
s0lidgr0und
03-10-2007, 12:29 AM
Excellent.
Now if I could only coerce my members to actually use it...
ThePhlexican
06-30-2007, 08:45 PM
We just finished moving our site to a new host and when this module is displayed when you try to log in from the vBa welcome block it opens a new window to the paypal donations...same thing when trying to vote on the polls from the front page so far...I'm sure it has something to do with vBadvanced any ideas on how to fix this?
forumnerds
07-04-2007, 01:58 PM
Installed and works its alittle confuseing for people who are new to mods and vb but after abit its easy to understand great job
www.forumnerds.com
blkdrgn
08-18-2007, 05:38 PM
Great module
I have a new site and needed a way to donate as opposed to the forum with a donate link......GREAT WORK
The Black Poet
08-20-2007, 04:40 PM
works great!! thank you for your work
nhdriver4
08-20-2007, 06:53 PM
This is the perfect hack! Thanks a ton!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.