Paypal Donation

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
Post Reply
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Paypal Donation

Post by dmzx »

Extension Name: Paypal Donation
Author: Stoker extension by dmzx

Extension Description:

A simple Paypal Donation extension




- Drop support for 3.1.
- Twig update.


Update code in listener.
Update code in donation controller.
Compatible with 3.2 (icon).
Added acp_donation language file.
Deleted donation_goal_currency_enable.


Code update


Code update


Code update


Code update utf8_normalize_nfc on currency


Code update


Code update


On index show % after value 3
On donate page show % after value 5


Add yellow bar image
Code update
Add admin log

Screenshots:
Image

Image

Image

Top of forum
Image

Bottom of forum
Image


Demo:
If you like it donate :P

Extension Download:
Download-link
Paypal Donation v1.0.4
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `donation`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `donation` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/donation/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Paypal Donation` under the Disabled Extensions list, and click its `Enable` link.

User avatar

JohnDory
Donator
Donator
Posts: 20
Joined: 01 Apr 2015, 01:11

Re: Paypal Donation

Post by JohnDory »

I've just tried installing it and got the following error.

Code: Select all

General Error
SQL ERROR [ mysqli ]

Table 'harry_et_forum.phpbb_donation' doesn't exist [1146]

SQL

INSERT INTO phpbb_donation (config_name, config_value) VALUES ('donation_body', ''), ('donation_success', ''), ('donation_cancel', '')

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 194
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 650
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 377
CALL: phpbb\db\driver\driver->sql_multi_insert()

FILE: [ROOT]/ext/dmzx/donation/migrations/donation_schema_1.php
LINE: 43
CALL: phpbb\db\driver\factory->sql_multi_insert()

FILE: (not given by php)
LINE: (not given by php)
CALL: dmzx\donation\migrations\donation_schema_1->insert_sample_data()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 184
CALL: phpbb\extension\manager->enable_step()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_extensions->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
Cheers.

Mike.

User avatar

Peralta
Donator
Donator
Posts: 190
Joined: 13 Dec 2014, 17:04

Re: Paypal Donation

Post by Peralta »

Thanks dmzx :buigen:

Tested on my test site and it works great :thumbup:
I speak spanish. Sorry for my bad english.

User avatar

JohnDory
Donator
Donator
Posts: 20
Joined: 01 Apr 2015, 01:11

Re: Paypal Donation

Post by JohnDory »

it must be something wrong with mine as I just tried systeminfo and got

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/systeminfo/event/listener.php on line 44: shell_exec() has been disabled for security reasons
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
I have quite a few extensions in there, must be a conflict somewhere, time to go through it again I think.
Cheers.

Mike.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

Update version Paypaldonation by dmzx

User avatar

JohnDory
Donator
Donator
Posts: 20
Joined: 01 Apr 2015, 01:11

Re: Paypal Donation

Post by JohnDory »

dmzx wrote:Update version Paypaldonation by dmzx
works like a charm :thumbup:
Cheers.

Mike.

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25

Re: Paypal Donation

Post by Jaantje »

dmzx test on mine testboard, works :tumbsyes:

I have also made the Dutch translation for the people who are interested:
Paypal Donation vesrion 0.0.2 - Dutch Translation.zip
Grreeetttttzzzzz, Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

Jaantje wrote:dmzx test on mine testboard, works :tumbsyes:

I have also made the Dutch translation for the people who are interested:
Paypal Donation vesrion 0.0.2 - Dutch Translation.zip

Thanks Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

New version 0.1.0 see Update version 0.1.0 · dmzx/paypaldonation@5ae59e7 · GitHub for changes :wink:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

New Version see update version 0.1.1 · dmzx/paypaldonation@1cb8309 · GitHub for changes.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

New Version see Update version 0.1.2 · dmzx/paypaldonation@6bbeda8 · GitHub for changes.

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25

Re: Paypal Donation

Post by Jaantje »

problem with the install from version 0.1.2.:

Code: Select all

Algemene fout
SQL ERROR [ mysqli ]

Duplicate entry 'donation_body' for key 'PRIMARY' [1062]

SQL

INSERT INTO phpbb_donation (config_name, config_value) VALUES ('donation_body', ''), ('donation_success', ''), ('donation_cancel', '')

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 855
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 194
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 650
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 377
CALL: phpbb\db\driver\driver->sql_multi_insert()

FILE: [ROOT]/ext/dmzx/donation/migrations/donation_sample_data.php
LINE: 49
CALL: phpbb\db\driver\factory->sql_multi_insert()

FILE: (not given by php)
LINE: (not given by php)
CALL: dmzx\donation\migrations\donation_sample_data->insert_sample_data()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 550
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 496
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 322
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 202
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 185
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 80
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 187
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 184
CALL: phpbb\extension\manager->enable_step()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_extensions->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
Breng de forumbeheerder of sitebeheerder op de hoogte: jacko@jaantje.eu
Grreeetttttzzzzz, Jaantje

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25

Re: Paypal Donation

Post by Jaantje »

dmzx thanks for your cooperation. It works perfectly again :tumbsyes:
Grreeetttttzzzzz, Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

Jaantje wrote:dmzx thanks for your cooperation. It works perfectly again :tumbsyes:
:wink:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6429
Joined: 13 Jan 2014, 21:45

Re: Paypal Donation

Post by dmzx »

New version available see Update Version 0.1.3 · dmzx/paypaldonation@b3c4e01 · GitHub for changes

Post Reply