add widget here ?

leanndamiann1

Well-known member
Registered
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

Captura de pantalla 2023-09-20 213341.png
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

Reputation:

Splicho

Emudevs.gg Owner
Staff member
Moderator
Collaborate
Registered
Joined
Jan 21, 2022
Messages
648
Points
103

Reputation:

Actually quite easy, but you will need html+css skills.
What theme do you have?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

Reputation:

Actually quite easy, but you will need html+css skills.
What theme do you have?
SplichoThis might not be enough, you need to write a small widget code, which loops over the badges
 

lil021g

Member
Registered
Joined
Sep 1, 2023
Messages
7
Points
3

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>
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,520
Points
523

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>
lil021gThis 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
 
View previous replies…
Top