UPDATE: Took about 3 hours but finally auto-added. Anyway to speed that up?For some reason, the users matching the criteria I set are not getting the badge. I set it up so if they are part of a group they should receive the badge, but they are not receiving it and I have to give it manually. Anyone else having this issue?
UPDATE: Took about 3 hours but finally auto-added. Anyway to speed that up?
I just tried the chron job, still not giving the badges to the roles defined, been over 13 hours. Guessing something may be wrong on my end or in the addon side.Did you try running the chron job in the ACP? I found that running it manually would give the badges instantly.
@CMTV , is there any way to display the badges in member postbit, like how trophies display?
View attachment 216959
That's a Trophy, not a badge from the add-on. Is there a way to display badges on here as well?
I also would like to know if there is this functionality. A user has all email notifications turned off by default but still gets the award email. If we could turn it off by user or even altogether it would be helpful.Is there a way to remove the emails altogether?
Also, is it impossible to give the same badge to the same user more than once. Are there plans to change this?
This ^Another thing:
- There is any way of showing the badges for mobile users?
Would be great if you add this.
The add-on works perfectly. Using in a live Forum, no bugs reported. Thank you very much for your work.
I thought you had to enable it... Let me check!Does anyone know why the badges aren't appearing on the Legend theme of @ThemeHouse?
It appears on the user card just fine, but not the sidebar on messages.
View attachment 220504View attachment 220505
I don't think this works with UI.X based themes out of the box due to differing template code.Does anyone know why the badges aren't appearing on the Legend theme of @ThemeHouse?
</div>
<span class="message-userArrow"></span>
</section>
</xf:macro>
<xf:if is="{{ property('CMTV_Badges_show_in_message') }}">
<xf:css src="CMTV_Badges_featured_badges.less" />
<xf:macro name="featured_badges" template="CMTV_Badges_featured_badges_macros"
arg-location="message" arg-user="{$user}" />
</xf:if>
Thank you soo much! That is perfect!I don't think this works with UI.X based themes out of the box due to differing template code.
You could add this code to your message_macro template
Find:
Code:</div> <span class="message-userArrow"></span> </section> </xf:macro>
Before that add:
Code:<xf:if is="{{ property('CMTV_Badges_show_in_message') }}"> <xf:css src="CMTV_Badges_featured_badges.less" /> <xf:macro name="featured_badges" template="CMTV_Badges_featured_badges_macros" arg-location="message" arg-user="{$user}" /> </xf:if>
That should add the badges below all the message user info elements
This is why I haven't downloaded this addon. However, I'll give it a shot using this fix.I don't think this works with UI.X based themes out of the box due to differing template code.
You could add this code to your message_macro template
Find:
Code:</div> <span class="message-userArrow"></span> </section> </xf:macro>
Before that add:
Code:<xf:if is="{{ property('CMTV_Badges_show_in_message') }}"> <xf:css src="CMTV_Badges_featured_badges.less" /> <xf:macro name="featured_badges" template="CMTV_Badges_featured_badges_macros" arg-location="message" arg-user="{$user}" /> </xf:if>
That should add the badges below all the message user info elements
ErrorException: Template error: Cannot call method getFeaturedBadges on a non-object (NULL) src/XF/Template/Templater.php:984
<xf:macro name="featured_badges" arg-location="!" arg-user="!">
<xf:if contentcheck="true">
<div class="featuredBadges featuredBadges--{$location}">
<xf:contentcheck>
<xf:foreach loop="$user.getFeaturedBadges()" value="$userBadge">
<xf:set var="$badge" value="{$userBadge.Badge}" />
<a href="{{ link('members', $user) }}#badges"
class="featuredBadge"
title="{$badge.title}" data-xf-init="tooltip">
<xf:macro name="badge_icon" template="CMTV_Badges_badge_macros"
arg-badge="{$badge}" arg-context="featured-{$location}" />
</a>
</xf:foreach>
</xf:contentcheck>
</div>
</xf:if>
</xf:macro>
<xf:macro name="featured_badges" arg-location="!" arg-user="!">
<xf:if contentcheck="true">
<div class="featuredBadges featuredBadges--{$location}">
<xf:contentcheck>
<xf:if is="$user is not empty">
<xf:foreach loop="$user.getFeaturedBadges()" value="$userBadge">
<xf:set var="$badge" value="{$userBadge.Badge}" />
<a href="{{ link('members', $user) }}#badges"
class="featuredBadge"
title="{$badge.title}" data-xf-init="tooltip">
<xf:macro name="badge_icon" template="CMTV_Badges_badge_macros"
arg-badge="{$badge}" arg-context="featured-{$location}" />
</a>
</xf:foreach>
</xf:if>
</xf:contentcheck>
</div>
</xf:if>
</xf:macro>
We use essential cookies to make this site work, and optional cookies to enhance your experience.