Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Paypal donate in notice. Details »»
Paypal donate in notice.
Version: 1.00, by seanm07 seanm07 is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 08-09-2008 Last Update: Never Installs: 22
Re-useable Code Translations  
No support by the author.

This is so easy to add you don't even need to know what a computer is to use it.



This is my first little add-on.:erm:
Hope you like it.

Why I made it:
Well because of this thread:https://vborg.vbsupport.ru/showthread.php?t=187701

Installation:
Open Admin cp - Notices - Add notice.
In title put what ever you want to find this in the notice manager as members will not see this.
In notice HTML put this code:

Code:
<center>
<tr>
 <td class="$bgclass">
<div style="margin:0 auto; width: 40%; border: 3px dotted #FFFFFF; background-color: #0066FF";>
</center>
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
Please enter the amount you would like to donate: 
  <input type="text" name="amount" size="6" value="5.00" />
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="youremail@blabla.com" />
  <input type="hidden" name="item_name" value="Keep our forum running." />
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="currency_code" value="GBP" />
  <input type="hidden" name="tax" value="0" />

<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!" />
</center>
</form>
<center>
<h4>INSERT DESCRIPTION TO GET PEOPLE TO DONATE HERE</h4>
</div>
</center>
Things you need to edit in the code:
Put a description in where it says "INSERT DESCRIPTION TO GET PEOPLE TO DONATE HERE"
Put your donation email where is says "youremail@blabla.com"
Put what you want to call your donate where it says "Keep our forum running."
Put your currency where it says "GBP" Get currency codes here http://www.xe.com/iso4217.php
Put where it says tax 0 put what ever if any tax you want added.



Leave the Display Order as it is unless you know what your doing and want to change it.
Active is if it is enabled make sure it is set to yes.
Persistent If this option is set to 'No', the notice will be shown only once per visit to each user.

Set when you want it to display.
To set it for all just set it to users posts is between 0 and 999999999 posts.:up:


Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-10-2008, 10:54 AM
nirvana43's Avatar
nirvana43 nirvana43 is offline
 
Join Date: Oct 2007
Location: Pune, India
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Superb mod!! 1st to install it!
Reply With Quote
  #3  
Old 08-10-2008, 10:54 AM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the comment nirvana43
Reply With Quote
  #4  
Old 08-10-2008, 12:33 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What can i say? brilliant!, thanks for taking the time. Can i use that HTML code in the navbar template?

Regards,
Simon
Reply With Quote
  #5  
Old 08-10-2008, 12:53 PM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
What can i say? brilliant!, thanks for taking the time. Can i use that HTML code in the navbar template?

Regards,
Simon
Yeah sure.
Reply With Quote
  #6  
Old 08-10-2008, 12:56 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way of tracking which user made the donation as i would like to make them a VIP or something for their efforts?
Reply With Quote
  #7  
Old 08-10-2008, 01:05 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying but....how? lol i don't know php or html, i have found the navbar breadcrumb and then the navbar template, where would i put the button code so that the paypal button appears in the big space in the navbar next to where it says welcome....you last visited...?
Reply With Quote
  #8  
Old 08-10-2008, 06:55 PM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well this is a simle as it gets to installing and you can just go into your paypal acount and check your transactions for donations.
Reply With Quote
  #9  
Old 08-10-2008, 06:57 PM
seanm07 seanm07 is offline
 
Join Date: Apr 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code for just the button is
Code:
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
Please enter the amount you would like to donate: 
  <input type="text" name="amount" size="6" value="5.00" />
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="youremail@blabla.com" />
  <input type="hidden" name="item_name" value="Keep our forum running." />
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="currency_code" value="GBP" />
  <input type="hidden" name="tax" value="0" />

<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!" />
</center>
</form>
Go into admin cp - style manager - edit style dropdown - find where you want it to go and put this code at the very bottom or somewhere you want it to go. warning you should make sure you can easily undo your actions incase you break something.
Reply With Quote
  #10  
Old 08-10-2008, 07:06 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, i've been hacking around with it in another template i created so no problem breaking anything as i can just delete it! anyway i kinda got that far, one thing i am trying to do now is just add the username to subject line to paypal i can keep track of donations that way as i may not recognise the email and searching for user by email is a pig or at least it was in 3.5.1. Here's what i have but can't get it to display the username:
located in the ad_header_logo (3.7.1 PL1)
Code:
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
Please enter the amount you would like to donate: 
  <input type="text" name="amount" size="3" value="5.00" />
  <input type="hidden" name="cmd" value="_xclick" />
  <input type="hidden" name="business" value="payments@thecodecage.com" />
  <input type="hidden" name="item_name" value= $userinfo[username]" has donated."/>
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="currency_code" value="GBP" />
  <input type="hidden" name="tax" value="0" />
<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!" />
</center>
</form>
<center>
<h5>Help in making this great a forum and to increase our <br>bandwidth is appreciated and you will become a forum VIP!</h5>
</div>
</center>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08738 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete