View Full Version : PayPal Module
cLord
05-21-2004, 04:44 PM
This will add a PayPal donation module to your CMPS...
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_paypal".
Insert this code into the template:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] PayPal Donations</b></span></td>
</tr>
<tr>
<td class="$getbgrow" align="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>
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yourdomain.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">
<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>
</td>
</tr>
</table>
<br/>Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - PayPal
- Module Identifier - Leave blank
- OR Template to Include - paypal
- Activate and select the column you want it in.
- Save and you are done.
Based upon IndyWebDesign's PayPal Donations Block (http://www.vbadvanced.com/forum/showthread.php?t=497)
Have Fun,
cLord ;)
joeychgo
05-21-2004, 09:54 PM
GREAT - thank you!
You wouldnt be able to port another one from indy would you? the weather hack? http://www.vbadvanced.com/forum/showthread.php?t=494
Worked perfectly! Thank you so much for the super easy instructions!!! :D
cLord
05-27-2004, 11:34 AM
This will add a collapsible PayPal donation module to your CMPS...
Create a new module called paypal.php (this can be done with notepad)
Insert this code into the PHP file:
<?php
$collapseobj_paypal = $vbcollapse['collapseobj_paypal'];
$collapseimg_paypal = $vbcollapse['collapseimg_paypal'];
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_paypal') . '";');
?>Save & upload the PHP file to your modules dir.
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_paypal".
Insert this code into the template:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('paypal')"><img id="collapseimg_paypal" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_paypal.gif" alt="" border="0" /></a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] PayPal Donations</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_paypal" style="$collapseobj_paypal">
<tr>
<td class="$getbgrow" align="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!
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@domain.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">
<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>
<br /><br />
Anything is appreciated.</span>
</td>
</tr>
</tbody>
</table>
<br />Save the template!
Still in your Admincp - vBa CMPS - Add Module
- Module Title - PayPal
- Module Identifier - Leave blank
- File to include - Select paypal.php
- OR Template to Include - Leave blank
- Activate and select the column you want it in.
- Save and you are done.
Based upon IndyWebDesign's PayPal Donations Block (http://www.vbadvanced.com/forum/showthread.php?t=497) & Richard's Collapsible Modules Hack (http://www.vbadvanced.com/forum/showthread.php?t=1044)
Have Fun,
cLord ;)
cosmictej
06-21-2004, 04:15 AM
Hi,
Im talking about the 1st hack, I cant seem to get it working, it just wont display it, any help?
doesnt matter done it now :) thanks
FleaBag
07-02-2004, 12:26 PM
Cool little module, cheers. :)
yeowzinyong
08-17-2004, 03:26 AM
Great.... works like magic... thanks :)
NeroTheWarlord
08-19-2004, 11:48 PM
Thanks cLord...
Useful and easy to install ... thanks
vtrac
11-16-2004, 07:17 AM
Thanks!
Bubbasmurf
12-29-2004, 07:47 AM
Just what I was looking for, Thanks
TeamGoFast
02-02-2005, 12:34 AM
just what i was looking for too! thanks
Xpulse
02-17-2005, 05:19 PM
yea greath hack man. but how can i put my paypal account?
mholtum
02-17-2005, 07:07 PM
yea greath hack man. but how can i put my paypal account?
Did you not see this part?
<input type="hidden" name="business" value="you@domain.com">
CHIngs
02-26-2005, 05:04 AM
How can I add donators to a certain group, like say "Donators", as soon as they make a donation?
n1ckn4me
03-13-2005, 09:15 AM
got it! nice work!!
(included pay, donate & buy buttons for the ones that speak Dutch ;))
n1ckn4me
03-13-2005, 09:34 AM
Felt guilty and made the buttons real quick in english for you to enjoy :p
ncangler
03-26-2005, 11:03 AM
cLord, Thank you so much for creating this. It is most appreciated. :)
sunnycher
03-30-2005, 01:42 AM
How can I add donators to a certain group, like say "Donators", as soon as they make a donation?
I'd like to know this also! I'm looking for one that is more toward paid subscriptions, once they are a paid member, it will automatically add them
to that membership group.
Any ideas?
Cyricx
04-05-2005, 03:24 PM
VBulletin has a default function for paid subscriptions and paypal.
It'll move them into the usergroup and everything.
mholtum
04-05-2005, 06:03 PM
I'd like to know this also! I'm looking for one that is more toward paid subscriptions, once they are a paid member, it will automatically add them
to that membership group.
Any ideas?
Create a user group "donators" and use the subscriptions option in vb.
Milk Man
04-06-2005, 06:47 AM
when i go into my style manger i can only add new style. is this where i do it?
Milk Man
04-06-2005, 06:53 AM
forget that, i figured it out, but is there a way to mak it english?
Milk Man
04-06-2005, 07:02 AM
figured it out, lol cheers though.
sunnycher
04-08-2005, 04:31 AM
I have my usergroup as LGP Member, those are the paid members.
What I was looking for is a module to put on the front page for members to join, click join, put in the info, directs them to paypal to pay and then back to the forum and it would automatically put them into the LGP Member usergroup. I've got PayPal set up and the subscription set up in my AdminCP, just can't figure out how to add the Join Now to the navigation bar where it gives them the option to just be a Register User, not paid or a LGP member, paid.
Make sense?
Milk Man
04-08-2005, 07:10 AM
I don't think you can,
just edit them yourself and put them into the usergroup manually.
ncangler
04-08-2005, 09:08 AM
Actually, I setup a subscription system three days ago with a new usergroup that registered members can upgrade to. I used the 'subscription' system built into vBulletin. It works great and it does automatically add the registered user to a new usergroup called 'Captain's Club Member'. The only thing that is not done automatically is that the user has to go to 'User CP', 'Group Memberships' and select the whether they want to be identified as a 'Member' or a 'Captain's Club Member'. But it works great once you get the settings tweaked.
Adding a 'Join Now' button to the Navbar would be as simple as adding one line of code in the pop up menu section of the navbar template that looks like this:
<td class="vbmenu_control"><a href="http://www.yourdomain.com/forums/subscriptions.php?$session[sessionurl]">Join NOW!/td>
$session[sessionurl]">Join NOW!</a></td>
Find the 'User_CP', 'Home', etc. links in the navbar template and then insert your personalized line of code wherever you'd like it to appear on the navbar. Be sure to add your domain.com and forum name to the path. You might want to say something other than 'Join NOW!' though as it might be confused with registering for membership instead of subscribing to a new level of membership. I added a CMPS module on the portal page of my site with links for more information and to Join Now. Here is a link (http://www.triumphowners.org/) if you're interested. :cool:
I don't think you can,
just edit them yourself and put them into the usergroup manually.
sunnycher
04-08-2005, 02:11 PM
Thanks NCangler! I think that helped a lot! I appreciate it so much! :)
Flow Fusion
04-08-2005, 04:52 PM
thank you
Milk Man
04-09-2005, 12:04 AM
well there you go, you learn something new everyday
sunnycher
04-18-2005, 10:15 AM
NC,
Do you have the coding for the Learn More template/module? i'd love to use that!
ncangler
04-18-2005, 12:51 PM
Here ya go. Be sure to plug in yourdomain.com in the three places needed. Also I used a "NEW" icon on my module. You'll need to find something like that that is appropriate to what your'e communicating and put in your images folder then put that name in place of "your.gif" in one line. Replace "Your Module Title Here" with your module title in two places and change any other text that you want different. Also you need to create a thread announcement for more information on the new level of membership and put that thread ID in the "showthread.php?t=xxx" line where xxx is. ;)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>Your Module Title Here</title></head>
<body>
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat"><span class="smallfont" style="font-weight: normal;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" id="collapseimg_forumhome_$mods[filename]" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</span></td>
</tr>
</thead>
<tfoot style="display: none;"></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<center>
<font size="1" face="verdana"><img src="http://www.yourdomain.com/images/your.gif" align="top" alt="NEW icon">
<br>
<strong><em>Your Module Title Here</em></strong>
<br>
Only <strong>$25</strong> per year.
<br>
Become a charter member
<br>
<a href="http://www.yourdomain.com/forums/showthread.php?t=xxx" id="F1YI" name="F1YI" title="Learn More" target="_self">Learn More</a>
<a href="http://www.yourdomain.com/forums/subscriptions.php?" id="J1oin" name="J1oin" title="Join Now!" target="_self"><strong>Join NOW!</strong></a>
<br>
<br>
</font></center>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<br />
NC,
Do you have the coding for the Learn More template/module? i'd love to use that!
sunnycher
04-28-2005, 04:13 PM
Thank You NC!
Loco Macheen
05-04-2005, 05:18 AM
can somone post a image for me ? i've seen it b4, but just not finding it right now, but im looking for a donation button that shows mastercard and visa on it ? ya guys know what im saying ? i looked at paypal but they say buy now under it, i want the cc images but it still to say donation.. thx. i guess i could try my photoshop skills agian, but thast my last resort ,cuz im a bit of a tool at ps..lol :p
LEAD_WEIGHT
05-04-2005, 10:30 PM
can somone post a image for me ? i've seen it b4, but just not finding it right now, but im looking for a donation button that shows mastercard and visa on it ? ya guys know what im saying ? i looked at paypal but they say buy now under it, i want the cc images but it still to say donation.. thx. i guess i could try my photoshop skills agian, but thast my last resort ,cuz im a bit of a tool at ps..lol :p
Here is an image but u do not need PS to do. :)
michael5472
06-05-2005, 06:57 AM
cheers another great adon
Mikecp421
09-21-2005, 02:08 AM
nice hack, thanks! Worked great first time!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.