vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Paypal Donate Forum Block (https://vborg.vbsupport.ru/showthread.php?t=298765)

t-j 06-04-2013 10:00 PM

Paypal Donate Forum Block
 
1 Attachment(s)
I could not find this when I went looking for it so I googled, found some snippets and this is now what I use and it looks quite well
So as I found some bits on the www all credit to the original author/s

This will add a nice paypal forum block to your forum, and you can edit the link when the paypal button is clicked to either your current donate page or directly to your paypal acc

I have this working on vb 4.2.0 but it should work for any version
You are welcome to edit and improve and re-post any part of this code
See screenshot or go to www.tech-sat.info
I hope it helps someone :)



To Install:

1. create a new forum block and name it whatever you like
2. set your display order and set the block to active
3. Contant type - set to HTML
4. copy below code and paste it into the content box



Code:

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b></b></span></td>
</tr>
<tr>
<td class="$getbgrow" align="center">

<span class="smallfont">If you like Tech-Sat, and would like to give something back in return, you can make a donation. Your donation will be used to pay for hosting service, domain, & maintenance costs and just to say Thank You we will upgrade your account to <b><font size="2" color="DarkMagenta">VIP Member</font></b></span>
<br /><br />
<form action="http://www.tech-sat.info/vbdonate.php?do=donate" method="post">
<input type="hidden" name="currency_code" value="euro">
<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/>

5. edit the code with your forum name and either a link to your donate page or your paypal account
6. edit the wording to suit your forum
7. save and your done

gazza2008 06-05-2013 07:42 PM

Excellent mod mate

hungtl 06-06-2013 01:58 AM

Thanks bro :)

Krusty1231 06-06-2013 06:51 PM

Correct me if I am wrong here, but this requires the use of the Dbtech donation mod does it not?

How do you get this to work with just a paypal email?

kapii 06-07-2013 02:22 AM

Looking at the code, it does indeed require vBDonate, which this mod in not needed as the donate mod has a forum block with it already.

TopHoster 07-29-2013 10:21 AM

Thank you so much for this. Very useful.

Spangle 11-17-2013 05:57 PM

If you sign up to Paypal ( takes fiveminutes) you can actually get a code generated by Paypal, the code includes a donate button, with all the graphics for visa etc, and donations are conducted over a secure server, I'm not sure if the DB mod does that.

ozzy47 11-17-2013 06:04 PM

Yes the DBT mod does that, but if you use a donate button, you are in violation of PayPal's policy, only Not For Profit can use a donate button.

Spangle 11-17-2013 06:07 PM

Quote:

Originally Posted by ozzy47 (Post 2461540)
Yes the DBT mod does that, but if you use a donate button, you are in violation of PayPal's policy, only Not For Profit can use a donate button.

I followed their guidelines, I'm not actually using a donate button, I'm using a "Buy us a beer" graphic donated by JC on Admin Zone !

ozzy47 11-17-2013 06:19 PM

Yeah that's the way to go. I just had JC make a logo for me to. :)


All times are GMT. The time now is 09:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01152 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete