2021-06-16, 08:11 AM
2021-06-16, 08:17 AM
What is your use for this feature? If it is for a subscription type service, then there is plugins available where users can pay and be upgraded to a special user group and removed after an amount of time set by the administrator.
Let me know if you are thinking of something else
Let me know if you are thinking of something else
2021-06-16, 09:49 AM
Thank you for your answer, Ben.
Yes, but the plugin could be very simple, just a date/time and that's it. We add the groups manually, because we use wordpress for payments.
I know from the subscription plugin, but heared it would be buggy, what would not surprise me, because last update was 2015.^^
So a more simple plugin or option would do, just to put a "countdown" for the additional usergroup.
Yes, but the plugin could be very simple, just a date/time and that's it. We add the groups manually, because we use wordpress for payments.
I know from the subscription plugin, but heared it would be buggy, what would not surprise me, because last update was 2015.^^
So a more simple plugin or option would do, just to put a "countdown" for the additional usergroup.
2021-06-16, 10:06 PM
Gotcha. From what you describe, it seems like this plugin would meet your needs - https://community.mybb.com/mods.php?action=view&pid=35 ?
2021-06-20, 06:50 PM
Looking good, I will try this one. Thank you!
The plugin would fit my idea, but I get some PHP errors when I click on "Add" on the VIP membership page:
The errors are claiming someone is wrong with class_form.php in admin/inc, but as far as I know this from MYBB and I am sure it is up to date. So the mistake must be in the plugin file, I guess, but I have no idea where.
Plugin is working so far, but would be nice to fix the error messages.
The plugin would fit my idea, but I get some PHP errors when I click on "Add" on the VIP membership page:
Warning [2] Illegal string offset 'class' - Line: 781 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 781 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Cannot assign an empty string to a string offset - Line: 781 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 781 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'class' - Line: 786 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 786 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Cannot assign an empty string to a string offset - Line: 786 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 786 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'class' - Line: 790 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 790 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'class' - Line: 790 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 790 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'checked' - Line: 791 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 791 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'class' - Line: 792 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 792 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'class' - Line: 792 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 792 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
Warning [2] Illegal string offset 'checked' - Line: 793 - File: admin/inc/class_form.php PHP 7.3.28 (Linux)
File Line Function
/admin/inc/class_form.php 793 errorHandler->error
/inc/plugins/vipmembership.php 909 DefaultForm->generate_yes_no_radio
/inc/class_plugins.php 142 vipmembership_admin
/admin/index.php 822 pluginSystem->run_hooks
The errors are claiming someone is wrong with class_form.php in admin/inc, but as far as I know this from MYBB and I am sure it is up to date. So the mistake must be in the plugin file, I guess, but I have no idea where.
Plugin is working so far, but would be nice to fix the error messages.
2021-06-22, 05:41 AM
I think the issue you have is related to PHP 8.0, not the plugin itself.
It seems like the specific issue you mention is fixed in the upcoming MyBB version.
https://github.com/mybb/mybb/blob/481706...#L752-L798
It seems like the specific issue you mention is fixed in the upcoming MyBB version.
https://github.com/mybb/mybb/blob/481706...#L752-L798
2021-06-22, 05:15 PM
I use PHP 7.3, thought this would be working with MYBB 1.8.26. Should I try the code from the link?
I see no differencec from the lines 752-798.
I see no differencec from the lines 752-798.
2021-06-22, 07:25 PM
Oh, ok, it is an issue with the plugin, minor issue, see:
https://github.com/Sama34/VIP-Membership...1ea18ee78d
https://github.com/Sama34/VIP-Membership...1ea18ee78d