Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

Beta 8 error

22 Nov 2019 Edited
#1
This issue is marked as solved
I have a custom admin URL and getting this message when going to index.php?module=config-bankpipe

2019/11/22 15:29:57 [error] 1167#1167: *1004305 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Cannot redeclare dd() (previously declared in /var/www/html/inc/plugins/jones/core/Includes/helpers.php:62) in /var/www/html/myadmin_admin/modules/config/bankpipe.php on line 71"
/jones/ folder is from MyBB Bot from Jones H. -> https://community.mybb.com/mods.php?action=view&pid=1
Shade 23 Nov 2019 Edited
#11
"aid" is reserved for attachments, not subscriptions, and must be an integer. Fast checkout uses just the class "fastCheckout", nothing else. The example provided in the docs is extrapolated from bankpipe_postbit_attachments_attachment_cart. The syntax is different for bankpipe_subscriptions_subscription of course.

"Allowed usergroups" for subscriptions uses "permittedgroups" field, which is varchar. What is missing indeed is the field in the database for new installations, I forgot to include it (but should not pose an issue with upgraded installations). I will fix this and repackage BankPipe. Thanks for the hint.

PS: the ajax call is not fine. If it returns "Malformed response", the ajax call is faulty.
ProX 23 Nov 2019 Edited
#12
So i just need to add one column with that name to be varchar i guess? Yeah its really hard to get used at code when you first time inspect it heh.

By the way where are buttons for payment defined i mean images of coinpayment and paypal. I d like to use font instead

Use this instead, it won't return malformed ajax request

usercp.php?action=cart&env=bankpipe&add=1&bid={$subscription['bid']}
Shade 23 Nov 2019 Edited
#13
Yes, you just have to add the column "permittedgroups" and set it to varchar(200), NOT NULL, DEFAULT 0.

The link you provided is the standard one found in bankpipe_subscriptions_subscription and should be used in that template, as explained above. aid has been deprecated in a previous beta.

The image is in bankpipe_cart_payment_method. It resolves both to PayPal and Coinbase. Change the image to a button or whatever you like.
ProX 23 Nov 2019
#14
Great and one more question, in logs how to see payment type, if it's PayPal or coinpayment?
Shade 23 Nov 2019 Edited
#15
It's not shown in the current beta. There are 2 ways to know if a payment has been made through Coinbase or PayPal:
KEYCAP 1 in the Logs section, if the first action is "payment created", it's a PayPal one; if it's "pending payment", it's a Coinbase one;
KEYCAP 2 in the Payment history section, Coinbase payments have no fee, while PayPal ones always do.

Might be a good addition to the next release, which might be a release candidate instead of a beta.
ProX 23 Nov 2019
#16
Thanks for explanation. Also, is it possible to show username inside product description of a current user? Like you can use {$mybb->user['username']} in templates
Shade 23 Nov 2019
#17
If you mean the htmldescription field, no, no vars are allowed. If you want to show it in columns (like I do), build the table manually in bankpipe_subscriptions (which being a template allows vars) and move the $subscriptions variable in a bottom row, so it displays the buttons and the price.
ProX 23 Nov 2019
#18
Shade where cart items from users are stored? I need to manually clean up record from user as it shows 1 item in cart, but 0 when open the cart and shows error

'This item's merchant is different from the one set for other items in your cart. BankPipe can't handle multiple merchants at once. Please either finalize or empty the current cart to add this item to your cart.'
Shade 23 Nov 2019
#19
In the browser's cookies. Ask the user to clear his cookies.
ProX likes this post