[OzzModz] Verification Badges

[OzzModz] Verification Badges [Paid] 2.0.2

No permission to buy ($30.00)
Hello - I'm trying to make customer user fields that allow users to add up to three verification badges that apply to them (so no request/verification, everything's user-directed). It seems like this should work based on user field criteria/auto issuance settings you've provided with this add-on. I have each value for a "badges" custom user field (a drop-down single selection menu) tied to a specific verification badge using that badge's user field criteria...but this approach doesn't seem to work.

When I test this, I noticed it works for adding the first badge - i.e., selected from the custom user field drop-down in my profile settings - but it begins behaving unexpectedly when I try to change the badge selected in the drop-down menu. If I select a different badge in the custom user field, the verification badge gets added rather than replaced on the forum and in the verification badge settings. If I select nothing/null in the custom user field and wait a bit, one badge gets removed but the other (first selected) one appears to be retained.

I think part of this is delay with the updating but I've been waiting quite a while now and one badge is still retained despite nothing being selected in the custom user field. If I'm doing everything correctly, and it does just take a while for the changes to propagate, is there a way to speed this up?

Any input you can provide to help troubleshoot this would be greatly appreciated!
 
Actually an even bigger problem I'm having right now is that I can't get two badges to stay activated at once. If I add a second badge for someone, it disappears and the box in ACP settings becomes unchecked after 10 min or so. Is there something wrong with my settings? You can have two badges at the same time for one user, right?

Edit: Resolved by uninstalling and reinstalling the add-on. But there does appear to be a glitch in auto issuance/custom user field criteria. When auto issue/custom user field criteria are set, and you delete the custom fields, it looks like the user field criteria continue to apply for some reason even when auto issuance is unchecked in verification badge settings.
 
Last edited:
Just updated and received this error in ACP. Wanted to share it in case it is important and/or something that wasn't known about -- thanks for all the hard work and effort you put into these addons @Ozzy47


Code:
Server error log

    ErrorException: Job OzzModz\Badges:UserBadgeUpdateQueue: [E_WARNING] Undefined array key "ozzmodz_badges_debug" src/addons/OzzModz/Badges/Repository/UserBadge.php:310

    Generated by: Unknown account May 5, 2024 at 1:32 PM

Stack trace

#0 src/addons/OzzModz/Badges/Repository/UserBadge.php(310): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/uorealms/...', 310)
#1 src/addons/OzzModz/Badges/Job/UserBadgeUpdateQueue.php(78): OzzModz\Badges\Repository\UserBadge->updateBadgeForUser(Object(Z61\MemberNotes\XF\Entity\User), Object(OzzModz\Badges\Entity\Badge), Object(XF\Mvc\Entity\ArrayCollection))
#2 src/XF/Job/Manager.php(260): OzzModz\Badges\Job\UserBadgeUpdateQueue->run(8)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#4 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#5 src/XF/Cli/Command/RunJobs.php(59): XF\Job\Manager->runQueue(false, 8)
#6 src/vendor/symfony/console/Command/Command.php(255): XF\Cli\Command\RunJobs->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 src/vendor/symfony/console/Application.php(992): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 src/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(XF\Cli\Command\RunJobs), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 src/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 src/XF/Cli/Runner.php(111): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 cmd.php(15): XF\Cli\Runner->run()
#12 {main}

Request state

array(1) {
  ["cli"] => string(60) "/home/uorealms/public_html/realms/cmd.php xf:run-jobs --wait"
}
 
Just updated and received this error in ACP. Wanted to share it in case it is important and/or something that wasn't known about -- thanks for all the hard work and effort you put into these addons

This error is related to the Badges addon, not Verification Badges
It should stop if you update the addon in ACP
 
This error is related to the Badges addon, not Verification Badges
It should stop if you update the addon in ACP

Sorry I posted in the wrong forum; was a mentally exhausted day! I'll delete the error and see if it repeats (it happened after my update) If so, I will repost it in the CORRECT forum! Sorry! :|
 
Top Bottom