- Joined
- Apr 22, 2021
- Messages
- 190
- Points
- 28
Reputation:
How about it is possible to add a widget to the profile with all the prizes? I am using [OzzModz] Badges 2.3.3
Reputation:
Reputation:
How about it is possible to add a widget to the profile with all the prizes? I am using [OzzModz] Badges 2.3.3
View attachment 36919
Reputation:
So you would like to get all badges into a widget listed?
Reputation:
Reputation:
Actually quite easy, but you will need html+css skills.
What theme do you have?
Reputation:
Actually quite easy, but you will need html+css skills.
What theme do you have?
Reputation:
This might not be enough, you need to write a small widget code, which loops over the badges
Reputation:
This might not be enough, you need to write a small widget code, which loops over the badges
Reputation:
<xf:if is="$user.ozzmodz_badges_badge_count > 0">
<xf:macro name="featured_badges" template="ozzmodz_badges_featured_badges_macros"
arg-location="member_view" arg-user="{$user}" />
<xf:else />
<div>This member has not any badges yet.</div>
</xf:if>
<xf:if is="$user.ozzmodz_badges_badge_count > 0">
{$user.ozzmodz_badges_badge_count|number}
</xf:if>
Reputation:
Try this code in your "member_view" :
HTML:<xf:if is="$user.ozzmodz_badges_badge_count > 0"> <xf:macro name="featured_badges" template="ozzmodz_badges_featured_badges_macros" arg-location="member_view" arg-user="{$user}" /> <xf:else /> <div>This member has not any badges yet.</div> </xf:if>
You can show your member badges count with this code :
HTML:<xf:if is="$user.ozzmodz_badges_badge_count > 0"> {$user.ozzmodz_badges_badge_count|number} </xf:if>
Reputation:
This is not what he want, he would like to get all available badges in an widget. Widget cannot use xenforo template code inside the HTML code. An extra addon code is required
Reputation:
Reputation:
ok then I misunderstood it, sorry
Reputation:
What you said is exactly what I want, I want it to be seen in a widget and I can't
Reputation:
I'm confused now, so is it working or is it still an outstanding request?