masihdindar Did you run the migration step as per the upgrade instructions?
JasperVriends
There are migrations in this update. Make sure to run php flarum migrate after updating this extension
masihdindar Did you run the migration step as per the upgrade instructions?
JasperVriends
There are migrations in this update. Make sure to run php flarum migrate after updating this extension
ctml Did you run the migration step as per the upgrade instructions?
Of course i did.
It doesn't seem to be compatible with php8.0
Required parameter $lastEditedBy follows optional parameter $settings in /www/wwwroot/bbs/vendor/v17development/flarum-user-badges/src/AutoModerator/Action/GiveBadge.php on line 50
PHP Deprecated: Required parameter $lastEditedBy follows optional parameter $settings in /www/wwwroot/bbs/vendor/v17development/flarum-user-badges/src/AutoModerator/Action/RemoveBadge.php on line 35
allen13 you can (should) disable PHP deprecation warnings in production in php.ini
. The extension will likely work fine with warnings hidden.
@JasperVriends Hi, I've created a PR that add user badges to the discussion
v17development/flarum-user-badges29
Desktop view:
Mobile view:
Extension setting:
The number of badges in discussion is using the "Number of badges" option
I am having an issue with this extension:
I can add badges just fine, but if I click the radio button "Badge is an image" it acts like it's going to take me to a new pop up but it never does. The screen just goes dark and blank and there is no in put box. I have to refresh the screen to get back to my Admin Panel.
Any ideas? I have tried updating the extension though I installed it after the last update and I've tried using a different browser and disabling my pop up blocker.
I have also tried to uninstall and reinstall the extension and I still can't get the image radio button to work
I really love this extension and it would be even better if I could use the images, please if anyone has any ideas I would love the help!
after I installed this extension, Flarum ask me to update database, is it correct?
Awesome extension!.
Any plan to add REST API?
eg. I have that need. I would like to reward members dynamically specific badge. Thus, based on specific criteria , hours of use, achievement trigger point that I have configured in the achievement system of my app, member receive real-time achievement notification of badge award and it will show up next to his or her profile.
In image below, it will be something I like to trigger a call to REST API at that specific time.

Thanks!
LuckyRiver Any plan to add REST API?
Flarum is a SPA so all interaction is usually against the REST API: https://github.com/v17development/flarum-user-badges/blob/4befee8575986b94b1fa47b133736c06870aa159/extend.php#L24-L44
luceos
Lock file operations: 0 installs, 0 updates, 1 removal
I have removed this extension, why the software still ask me to update the database, thanks
meihuak what happens after you insert your database password?
The update screen is not supposed to appear after you enable an extension but it's not a big deal, it should go away after entering the password.
Alternatively you could also run php flarum migrate
via the command line to achieve the same result.
there should be an option for user joinable badges. (users should be able to join them by themselves.
Thanks for the nice extension!
however,when i disabled this extension and purge it, something went wrong.
I am using PHP8.0 ,MySQL5.7
Here is the error log
[2022-11-05 12:56:06] flarum.ERROR: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'badge_category_id'; check that column/key exists in /www/wwwroot/example.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
It seems like something is missing in my database,but everything works well when i am using it.
Ziven Hi, I've created a PR that add user badges to the discussion
Hi, I suggest to show them beside the username, so that everything is on one line and more compact.
If a user has too many badges, maybe we could also choose which one(s) to show limited to discussions.
Something like this:
And maybe being able to not show the icon, as an option
VioletRage Pardon me for bumping your post after such long time.
I wonder, did you find a solution for this behavior (blank window) ?
I have the same thing.
Also, the little icons by the profile pic don't show up. But badges are on user card and profile.