![]() |
|
#1
|
||||
|
||||
|
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: Code:
<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/> 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 Have Fun, cLord
Last edited by cLord; 10-15-2009 at 05:46 AM. |
|
#2
|
|||
|
|||
|
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
__________________
vBulletin-FAQ ~ A New Home for vBulletin Forum Owners! Lincoln vs Cadillac : Mopar Forum : Car Audio Talk |
|
#3
|
||||
|
||||
|
Worked perfectly! Thank you so much for the super easy instructions!!!
|
|
#4
|
||||
|
||||
|
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: Code:
<?php
$collapseobj_paypal = $vbcollapse['collapseobj_paypal'];
$collapseimg_paypal = $vbcollapse['collapseimg_paypal'];
eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_paypal') . '";');
?>
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_paypal". Insert this code into the template: Code:
<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 />
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 & Richard's Collapsible Modules Hack Have Fun, cLord
|
|
#5
|
|||
|
|||
|
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
Last edited by cosmictej; 06-21-2004 at 03:17 AM. |
|
#6
|
||||
|
||||
|
Cool little module, cheers.
|
|
#7
|
|||
|
|||
|
Great.... works like magic... thanks
|
|
#8
|
|||
|
|||
|
Thanks cLord...
|
|
#9
|
||||
|
||||
|
Useful and easy to install ... thanks
|
|
#10
|
|||
|
|||
|
Thanks!
|
|
#11
|
|||
|
|||
|
Just what I was looking for, Thanks
|
|
#12
|
|||
|
|||
|
just what i was looking for too! thanks
|
|
#13
|
|||
|
|||
|
yea greath hack man. but how can i put my paypal account?
|
|
#14
|
||||
|
||||
|
Quote:
Did you not see this part? <input type="hidden" name="business" value="you@domain.com"> |
|
#15
|
|||
|
|||
|
How can I add donators to a certain group, like say "Donators", as soon as they make a donation?
|
|
#16
|
|||
|
|||
|
got it! nice work!!
(included pay, donate & buy buttons for the ones that speak Dutch )
Last edited by n1ckn4me; 03-13-2005 at 08:35 AM. |
|
#17
|
|||
|
|||
|
Felt guilty and made the buttons real quick in english for you to enjoy
|
|
#18
|
||||
|
||||
|
cLord, Thank you so much for creating this. It is most appreciated.
__________________
NCangler |
|
#19
|
|||
|
|||
|
Quote:
to that membership group. Any ideas? |
|
#20
|
|||
|
|||
|
VBulletin has a default function for paid subscriptions and paypal.
It'll move them into the usergroup and everything. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quote It Module | Acido | Add-On Modules & Modifications | 33 | 01-28-2006 12:54 PM |
| Top (10) Posters Module | Acido | Add-On Modules & Modifications | 69 | 10-08-2005 09:20 AM |
| How to add a new module | Zedd | Add-On Modules & Modifications | 6 | 12-13-2004 11:35 PM |
| [Suggestion] Option needed when adding module to Homepage | bluesteel | Feedback & Suggestions | 3 | 05-20-2004 08:34 PM |
| Page or Module? | poseidon | Troubleshooting / "How do I..." Questions | 2 | 05-20-2004 11:43 AM |