[OzzModz] Badges

[OzzModz] Badges 2.1.5

No permission to download

interforo

Active member
I'm not sure what are you asking about at the moment. You don't know how to edit users permissions? That's the basic stuff in xenforo admin panel.
I am asking how to display more than 4 badges in the user’s profile @Ozzy47
 
Last edited:

TFW

Active member
I am asking how to display more than 4 badges in the user’s profile @Ozzy47
I have already told you. You can set the maximum limit per user group in user permissions. Look for category [OzzModz] Badges. "Max number of featured badges" is the permission you're looking for.
 

NobleMan

Well-known member
I just happened to look and i see im still getting this.

Code:
Stack trace

#0 src/XF/Template/Templater.php(3473): XF\Template\Templater->phrase(NULL, Array)
#1 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnPhraseDynamic(Object(MaZ\AMP\XF\Template\XF22\Templater), true, NULL)
#2 internal_data/code_cache/templates/l1/s62/public/ozzmodz_badges_featured_badges_macros.php(52): XF\Template\Templater->func('phrase_dynamic', Array, true)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('ozzmodz_badges_...', 'featured_badges', Array, Array, Object(XF\Template\MacroState))
#5 internal_data/code_cache/templates/l1/s62/public/message_macros.php(65): MaZ\AMP\XF\Template\Templater->callMacro('ozzmodz_badges_...', 'featured_badges', Array, Array)
#6 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#7 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array, Object(XF\Template\MacroState))
#8 internal_data/code_cache/templates/l1/s62/public/post_macros.php(35): MaZ\AMP\XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#9 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#11 internal_data/code_cache/templates/l1/s62/public/post_macros.php(169): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s62/public/post_macros.php(214): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array, Object(XF\Template\MacroState))
#17 internal_data/code_cache/templates/l1/s62/public/thread_view.php(917): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'post_macros::po...', Array, Array)
#18 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#19 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#20 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#21 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#22 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#23 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#24 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#26 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#27 src/XF.php(512): XF\App->run()
#28 index.php(20): XF::runApp('XF\\Pub\\App')
#29 {main}

with that app off it still keeps posting this.

Code:
    TypeError: Macro public:ozzmodz_badges_featured_badges_macros :: featured_badges() error: Argument 1 passed to XF\Template\Templater::phrase() must be of the type string, null given, called in /home/xxxxxx/public_html/src/XF/Template/Templater.php on line 3473 src/XF/Template/Templater.php:454

    Generated by: Unknown account Oct 10, 2021 at 2:00 PM
 

Ozzy47

Well-known member
Ozzy47 updated [OzzModz] Badges with a new update entry:

[OzzModz] Badges for XenForo 2.2+ Update 2.1.0

danger GIF
Warning Sign GIF


2.1.0:
This update contains breaking changes that was tested in a limited environment.
Take a backup before installing on a production site.
  • Added repetitive badges support
  • Added caching for badge awarded number
  • Added marking alerts read on member badges tab page
  • Added badge & badge category...

Read the rest of this update entry...
 
  • Love
Reactions: TFW

TFW

Active member
Thanks! It works perfectly so far.

May I ask to add one more option for repetitive bagdes? Something like another checkbox to count all repeated badges as 1 in user profile?
 

Bulbagarden

Member
Will have to try this new version on our test forum tomorrow. =)

Is there any chance for a feature in the future which would let us set a badge to be auto-featured when awarded, instead of requiring the user to feature it manually themselves when they receive it?
 

FamiBoards

New member
Good morning,

After accidentally mass-awarding a badge to the wrong user group based on false criteria, I decided to delete the badge and create another one with the same name.

However, after doing so, I was getting this server error by the thousands. It seems to be triggered by Featured Badges within threads. I have disabled it in the style templates for now, but obviously this isn't an ideal long-term solution.



PHP:
[LIST]
[*]                
[*]TypeError: Macro public:ozzmodz_badges_featured_badges_macros :: featured_badges() error: Argument 1 passed to XF\Template\Templater::phrase() must be of the type string, null given, called in *hidden*/public_html/src/XF/Template/Templater.php on line 3473           
[*]src/XF/Template/Templater.php:454      
[*]Generated by: [URL='https://famiboards.com/admin.php?users/formatcompatible.96/edit']FormatCompatible[/URL]
[/LIST]


Stack trace
      
           #0 src/XF/Template/Templater.php(3473): XF\Template\Templater->phrase(NULL, Array)
#1 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnPhraseDynamic(Object(SV\StandardLib\XF\Template\Templater), true, NULL)
#2 internal_data/code_cache/templates/l1/s17/public/ozzmodz_badges_featured_badges_macros.php(52): XF\Template\Templater->func('phrase_dynamic', Array, true)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l1/s17/public/message_macros.php(57): XF\Template\Templater->callMacro('ozzmodz_badges_...', 'featured_badges', Array, Array)
#5 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l1/s17/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#7 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#9 internal_data/code_cache/templates/l1/s17/public/post_macros.php(146): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l1/s17/public/post_macros.php(190): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s17/public/thread_view.php(995): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#17 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#23 src/XF.php(512): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}

      
Request state
      
           array(4) {
["url"] => string(49) "/threads/site-feedback-and-suggestions.39/page-10"
["referrer"] => string(23) "https://famiboards.com/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}

Could I please have some assistance with this please? I've rebuilt the template caches and the badge caches to no avail. Thanks!
 

Ozzy47

Well-known member
Hi @Ozzy47 - first of all, thanks so much for maintaining and expanding this add-on.

I have what might be a silly question... Is it possible to automatically award a badge to a user for posting and/or replying to a thread in a specific forum?
 
Top