[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!
Ideas Centre
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)
User avatar
dmzx
Registered User
Posts: 858
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands

[CDB] Paypal Donation

Post by dmzx »

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
User avatar
peteetongman
Registered User
Posts: 396
Joined: Wed Jul 17, 2013 4:29 am
Location: Atlanta GA USA

Re: [DEV] Paypal Donation

Post by peteetongman »

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 »

Wow, I've been looking for this! I shouldnt install the DEV version, correct?
User avatar
wkuzma
Registered User
Posts: 394
Joined: Sun Sep 02, 2007 10:18 pm

Re: [DEV] Paypal Donation

Post by wkuzma »

thank you for working on this ext.
User avatar
wkuzma
Registered User
Posts: 394
Joined: Sun Sep 02, 2007 10:18 pm

Re: [DEV] Paypal Donation

Post by wkuzma »

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: 858
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands

Re: [DEV] Paypal Donation

Post by dmzx »

Contact me on dmzx-web.net
User avatar
nero
Registered User
Posts: 321
Joined: Fri Mar 13, 2015 8:18 am

Re: [DEV] Paypal Donation

Post by nero »

dmzx wrote:update version http://dmzx.github.io/paypaldonation/
Is this safe to install?
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11148
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [DEV] Paypal Donation

Post by Raul [ThE KuKa] »

Yes!!!

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


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


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

Re: [DEV] Paypal Donation

Post by wkuzma »

The new version worked perfectly
thank you for fixing it
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11148
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [DEV] Paypal Donation

Post by Raul [ThE KuKa] »

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 | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
: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

Re: [DEV] Paypal Donation

Post by Taka51 »

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: 603
Joined: Wed Oct 03, 2007 10:51 am

Re: [DEV] Paypal Donation

Post by mrgtb »

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: 858
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands

Re: [DEV] Paypal Donation

Post by dmzx »

First post updated ;)
Contact me on dmzx-web.net
User avatar
superl
Registered User
Posts: 43
Joined: Tue Sep 02, 2008 3:29 pm

Re: [DEV] Paypal Donation

Post by superl »

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

Re: [DEV] Paypal Donation

Post by Taka51 »

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

Return to “Extensions in Development”