https://www.icyphoenix.com/viewtopic.php?f=28&t=54&p=317#p317
-----------------------------------
KugeLSichA
Sun 13 Aug, 2006 12:29

Donation (Spenden) MOD with PayPal IPN
-----------------------------------
Hi there,

some month ago i have started to addapt this MOD to phpBBXS.

i ant to share this with you, when the new release is out, but next week i have to leave my home for work and so i´m not on my PC, so i´ll share it now.

[code]
##############################################################
## MOD Title: Donation MOD phpBBXS
##
## MOD Author: sandodo < zouxiong@loewen.com.sg > (Xiong Zou) http://bbs.loewen.com.sg & http://forum.loewen.com.sg
##
## MOD Addon Developer/author: KugeLSichA < kugelsicha@caromonline.de > (HoLLe) http://www.caromguild.de
##
## MOD Description: Admin can set PayPal accounts to receive donations,
##                  Donors can choose to be anonymous when donation,
##                  Admin can set how many points to give to donor when donation, (Must have points MOD installed, otherwise, set it to 0 )
##                  Admin can also set how many posts count to give to donor when donation, 
##                  Admin can set current donation goal, description and duration,
##                  Admin can set to display top donors or last donors,
##                  Admin can manually inset donation information
##                  Admin can set which group the donor can join after donation, currently support different two groups
##                  Admin can set which special rank the donor will be set to after donation, anonymous donor will not be set for this special rank
##                  Supports multi-currencies.
##                  
##                  NOTE: I set up the user rank No.5 ("user_rank5") for the donors Special rank!
##                  
##                  Only the First Admin (user_id = 2) can set up and change the PayPal email adress in ACP!
##
## MOD Version: 1.0.3
##
## MOD DEMO: http://www.caromguild.de
##
## MOD Requirements: phpBBXS Version 058 or higher
##
## Installation Level: Easy
## Installation Time: 10
## Files To Edit: 13
##                adm/index.php
##                forum.php
##                includes/constants.php
##                includes/functions.php
##                includes/functions_dbmtnc.php
##                includes/page_header.php
##                language/lang_english/lang_admin.php
##                language/lang_english/lang_main.php
##                language/lang_german/lang_admin.php
##                language/lang_german/lang_main.php
##                templates/ca_aphrodite/index_body.tpl
##                templates/ca_aphrodite/overall_header.tpl
##                viewonline.php
## Included Files:  22
##                  donors.php
##                  donateconfirm.php
##                  donateresult.php
##                  donate.php
##                  donateshowresult.php
##                  
##                  templates/ca_aphrodite/donors_body.tpl
##                  templates/ca_aphrodite/donate_body.tpl
##                  templates/ca_aphrodite/donate_topupconfirm_body.tpl
##                  
##                  adm/admin_donors.php
##                  adm/admin_donate_currency.php
##                  adm/admin_donate_settings.php
##                  
##                  templates/ca_aphrodite/admin/donors_config_body.tpl
##                  templates/ca_aphrodite/admin/donate_currency_config_body.tpl
##                  templates/ca_aphrodite/admin/donate_settings_config_body.tpl
##                  
##                  language/lang_english/lang_admin_donate.php
##                  language/lang_english/email/html/thanku_donation.tpl
##                  language/lang_english/email/txt/thanku_donation.tpl
##                  language/lang_german/lang_admin_donate.php
##                  language/lang_german/email/html/thanku_donation.tpl
##                  language/lang_german/email/txt/thanku_donation.tpl
##                  
##                  images/PayPal_mark_37x23.gif
##                  install/db_update.php
##############################################################
##############################################################
## Author Notes:
##
## Terms of Use 
## 
## All of my MODifications are to use and edit/change for phpBB End Users 
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## Distribution Terms 
## All of my MODifications are prohibited to distribute to others without the permission 
## from me.
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## I will remain as the sole developer for all my MODifications unless stated otherwise
## 
## Re-Distribution Terms 
## If you are distributing WHOLE or PART of my MOD in your MOD Projects or Pre-modded 
## Projects or any other means, you must: Get the formal authorization from me first.
## Plese DO NOT remove any copyright/licence declaration when using the MODification 
## I will remain as the sole developer for all my MODification unless stated otherwise. Do 
## NOT declare youself as my co-developer 
## Re-Distribution Terms DOES NOT apply to MOD authors that developing Add-Ons to my MOD. 
## 
##############################################################
## MOD History:
##
##   2004-09-20  -  Version 1.0.1
##      - init version
##  
##   2004-10-15  -  Version 1.0.2
##      - second release: admin manual insert donation record; devide donor to different groups; mark donor as donor;
##  
##   2006-08-09  -  Version 1.0.2 XS
##      - some changes/code cleanup to get this running with the phpBBXS Version 058 or higher
## 
##   2006-09-23  -  Version 1.0.3 XS
##      - created new page admin_donate_settings.php
##      - created thanku_donation.tpl so that the donor can recieve an Thank You Email
##      - Only first Admin (with userid 2) can set up the PayPal email adress in ACP
##      - view donors at donate.php page bottom
##      - added PAGE_DONATE session, so that Admin can see if a user is viewing the donate pages
##      - some TPL and PHP cleanup
##	- changed, deleted and added all lang VARS (phpBB conform)
##	- merged the two admin_lang pages into one
##	- added different "Donate" language images, set by userlanguage
##  
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
[/code]

Full credit goes to the first MOD Author Xiong Zou. And also thx to him that he gives me the right to share this with you, because its not under the GPL. You can also visit his forum for other new cool staff.

The Donation MOD can be download in my testforum    http://www.caromguild.de/downloads.php?cat=3   no register is required.

it would be great if you can help me to find bugs, and report them here, but lease not that im away for a week after today evening.

Also if i have some free time i need to do some code cleanup, but the MOD should work now.

enjoy and have fun.

greets


