[CDB] Paypal Donation

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
dmzx
Registered User
Posts: 756
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

[CDB] Paypal Donation

Post by dmzx » Sun Apr 12, 2015 9:26 pm

Extension Name: Paypal Donation
Author: Stoker extension by dmzx

Extension Description:

A simple Paypal Donation extension

Image Image

Image
Code update

Image
Code update

Image
Code update

Image
Code update utf8_normalize_nfc on currency

Image
Code update for cancel / success page

Image
Code update

Image
On index show % < = value 3
On donate page show % < = value 5

Image
Add yellow bar image
Code update
Add admin log

Screenshots:
Image

Image

Top of forum
Image

Bottom of forum
Image

Extension Download:
Download Link

Installation:
  1. 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.
Last edited by dmzx on Sun Jul 31, 2016 10:24 am, edited 14 times in total.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
peteetongman
Registered User
Posts: 393
Joined: Wed Jul 17, 2013 4:29 am
Location: Atlanta GA USA

Re: [DEV] Paypal Donation

Post by peteetongman » Sun Apr 12, 2015 11:38 pm

the members on our board are, for the most part, anonymous. Is there any way they can use paypal to donate without revealing their true names?

User avatar
nero
Registered User
Posts: 321
Joined: Fri Mar 13, 2015 8:18 am

Re: [DEV] Paypal Donation

Post by nero » Mon Apr 13, 2015 12:23 am

Wow, I've been looking for this! I shouldnt install the DEV version, correct?

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] Paypal Donation

Post by wkuzma » Mon Apr 13, 2015 1:21 am

thank you for working on this ext.

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] Paypal Donation

Post by wkuzma » Mon Apr 13, 2015 2:06 am

when I hit enable I get this error
General Error
SQL ERROR [ mysqli ]

Table 'wkuzma_new.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()

User avatar
dmzx
Registered User
Posts: 756
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Paypal Donation

Post by dmzx » Mon Apr 13, 2015 4:59 am

Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
nero
Registered User
Posts: 321
Joined: Fri Mar 13, 2015 8:18 am

Re: [DEV] Paypal Donation

Post by nero » Mon Apr 13, 2015 6:22 am

dmzx wrote:update version http://dmzx.github.io/paypaldonation/
Is this safe to install?

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6031
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Paypal Donation

Post by Raul [ThE KuKa] » Mon Apr 13, 2015 8:00 am

Yes!!!

Nice work dmzx ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] Paypal Donation

Post by wkuzma » Mon Apr 13, 2015 1:17 pm

The new version worked perfectly
thank you for fixing it

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6031
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Paypal Donation

Post by Raul [ThE KuKa] » Mon Apr 13, 2015 2:42 pm

My "yes" (in previous post) it's only to the first donate extension.

Extensions in DEV Forum, its' only for testing forums, not "live" forums.

Best regards.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



Taka51
Registered User
Posts: 22
Joined: Sun Mar 22, 2015 3:26 pm
Location: Reims (51) - France
Contact:

Re: [DEV] Paypal Donation

Post by Taka51 » Mon Apr 13, 2015 4:01 pm

Hello dmzx
I just installed it and it works nickel, is it possible to have the French translation at worst I can translate my English language file common.php for my week in French
cordially

User avatar
mrgtb
Registered User
Posts: 557
Joined: Wed Oct 03, 2007 10:51 am

Re: [DEV] Paypal Donation

Post by mrgtb » Mon Apr 13, 2015 6:39 pm

If you enter 00.00 as collected so far and add a total wanted like 40.00

When you use 00.00 or 0 - then the percentage sign is shown below the graph and "not inside it"

But if you change 00.00 to something like 5.00, then the percentage sign is shown inside graph

Also, how does this use permissions. I see logged out my forum that I don't see the paypal graph as a guest, but do when logged in as admin. Does it only get displayed to members as I don't see any permission settings for it.

User avatar
dmzx
Registered User
Posts: 756
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Paypal Donation

Post by dmzx » Mon Apr 13, 2015 8:15 pm

First post updated ;)
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com

User avatar
superl
Registered User
Posts: 38
Joined: Tue Sep 02, 2008 3:29 pm

Re: [DEV] Paypal Donation

Post by superl » Mon Apr 13, 2015 8:31 pm

mrgtb wrote:If you enter 00.00 as collected so far and add a total wanted like 40.00

When you use 00.00 or 0 - then the percentage sign is shown below the graph and "not inside it"

But if you change 00.00 to something like 5.00, then the percentage sign is shown inside graph

Also, how does this use permissions. I see logged out my forum that I don't see the paypal graph as a guest, but do when logged in as admin. Does it only get displayed to members as I don't see any permission settings for it.
This percentage error what I found out is happening with recent topic install in advertise block like the one with pbwow3 styles

Taka51
Registered User
Posts: 22
Joined: Sun Mar 22, 2015 3:26 pm
Location: Reims (51) - France
Contact:

Re: [DEV] Paypal Donation

Post by Taka51 » Mon Apr 13, 2015 8:43 pm

Hi,

I have this message at the top of my index page
[phpBB Debug] PHP Warning: in file [ROOT]/ext/dmzx/donation/core/render_helper.php on line 69: Missing argument 14 for dmzx/donation/core/render_helper::__construct(), called in [ROOT]/cache/container_dotslash.php on line 1372 and defined
and impossible to access my admin panel

cordially

Locked

Return to “Extensions in Development”