Thank you for the fix. Confirm the links work now.
Another bug I find.
The request fields Above message settings do not work. They will appear below message.
You can use this method for your condition:Can I contribute fund for an update to this addon where I can use some variables on different XF templates.
For example, I like to be able to highlight resource reviews by users who have the Verification badges.
Modify resource_reviews template and wrap it around <xf:if is="$ozzmodz_verification_badges_received_badge_ids == '1'"> then add some html for those reviews by verified members.
$user.hasOzzModzVerificationBadge(1)
Appreciate it.You can use this method for your condition:
$user.hasOzzModzVerificationBadge(1)
xfrm_resource_review_macros
You must validate your XenForo license to see code
We are almost there. Can you show me where to put the conditional in that template so it only affects reviews by verified members?There is no $user variable in this template macros
Try this:
HTML:You must validate your XenForo license to see code
You must validate your XenForo license to see code
The example you sent should not hide other reviewsWe are almost there. Can you show me where to put the conditional in that template so it only affects reviews by verified members?
The way I put it right now, it will hide all reviews except those with verified badges.
I like to show all reviews, and those by verified members, it has an extra text "Show something" to highlight.
2.0.1 Patch Level 2:
- Fix: custom fields display on "above message" position
- Fix: "Unknown column 'reject_reason'" error on creating request
- XF\Db\Exception: MySQL query error [1364]: Field 'status_message' doesn't have a default value
- src/XF/Db/AbstractStatement.php:230
- Generated by: Paul Lopez
- 1/28/24 at 3:39 PM
Stack trace
INSERT INTO `xf_ozzmodz_vb_request` (`user_id`, `username`, `message`, `badge_ids`, `custom_fields`, `request_status`, `request_date`, `edit_date`, `last_update_date`, `reject_reason`, `attach_count`, `ip_id`, `embed_metadata`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1364, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(78): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1364, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1521): XF\Db\AbstractAdapter->insert('xf_ozzmodz_vb_r...', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/addons/OzzModz/VerificationBadges/Service/Request/Create.php(110): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Service/ValidateAndSavableTrait.php(42): OzzModz\VerificationBadges\Service\Request\Create->_save()
#8 src/addons/OzzModz/VerificationBadges/XF/Pub/Controller/Account.php(55): OzzModz\VerificationBadges\Service\Request\Create->save()
#9 src/XF/Mvc/Dispatcher.php(352): OzzModz\VerificationBadges\XF\Pub\Controller\Account->actionVerificationBadgesRequestsCreate(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'VerificationBad...', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
Request state
array(4) {
["url"] => string(44) "/account/verification-badges-requests/create"
["referrer"] => string(57) "https://quantnet.com/account/verification-badges-requests"
["_GET"] => array(1) {
["/account/verification-badges-requests/create"] => string(0) ""
}
["_POST"] => array(9) {
["_xfToken"] => string(8) "********"
["custom_fields"] => array(2) {
["linkedin"] => string(48) "https://www.linkedin.com/in/paul-nikholas-lopez/"
["verifiedLinkedIn"] => string(1) "Y"
}
["message_html"] => string(23) "<p>testing 1 2 3...</p>"
["attachment_hash"] => string(32) "824e2850e2ea185d4527c21bb1f16ef6"
["attachment_hash_combined"] => string(101) "{"type":"ozzmodz_vb_request","context":{"request_id":null},"hash":"824e2850e2ea185d4527c21bb1f16ef6"}"
["badge_ids"] => array(1) {
[0] => string(1) "1"
}
["_xfRequestUri"] => string(37) "/account/verification-badges-requests"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Sent you a PM with a fix buildUpdated patch 2 and got a new error
An unexpected error occurred. Please try again later.
- TypeError: array_diff(): Argument #1 ($array) must be of type array, null given
- src/addons/OzzModz/VerificationBadges/XF/Entity/User.php:165
- Generated by: ThePastRevisited
- Sun Jan 28, 2024 at 23:16:36
Stack trace
#0 src/addons/OzzModz/VerificationBadges/XF/Entity/User.php(165): array_diff(NULL, Array)
#1 src/addons/OzzModz/VerificationBadges/Repository/Badge.php(111): OzzModz\VerificationBadges\XF\Entity\User->adjustOzzModzVerificationBadges(NULL)
#2 src/addons/OzzModz/VerificationBadges/Listener.php(84): OzzModz\VerificationBadges\Repository\Badge->updateBadgesForUser(Object(SV\DailyStatistics\XF\Entity\User))
#3 src/XF/Extension.php(81): OzzModz\VerificationBadges\Listener::appPubStartEnd(Object(XF\Pub\App))
#4 src/XF/App.php(2994): XF\Extension->fire('app_pub_start_e...', Array, NULL)
#5 src/XF/Pub/App.php(202): XF\App->fire('app_pub_start_e...', Array)
#6 src/XF/App.php(2483): XF\Pub\App->start(true)
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
2.0.1 Patch Level 5:
- Fix: button to view detailed request info in ACP logs
- Fix: remove dummy column in request table without default value
- Fix: avoid "array_diff(): Argument #1 ($array) must be of type array, null given" errors
Getting a ton of errors after the latest update and members without a verification bage are getting this when visiting the site
Error Log has a ton of these errors
Doesn't look like itInstalled XF 2.2.15 today and found these errors. I think it's related to this addon
Thanks for checking it out. Should I report to XF dev or I need to figure out which addon caused this first?
SV\SignupAbuseBlocking
add-on and I can't say if it could be the causeWe use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?