a small question for OzzModz Badges

Roland

Well-known member
Registered
Joined
Sep 19, 2022
Messages
89
Points
8

Reputation:

when you use this addon. for example you give badge to a user
it will list on message macro
in enxf it will be below the reputation section *just example* red icons
aw.png



i want this to be in list https://enxf.net/account/account-details in this page near to

Username : Roland (badges) red icons

is it possible?

222-png.31060
 

shqawe

Well-known member
Registered
Joined
Jun 30, 2019
Messages
60
Points
28

Reputation:

You have to add badge code in account_details template spacial under this code

HTML:
{$xf.visitor.username}
 

Roland

Well-known member
Registered
Joined
Sep 19, 2022
Messages
89
Points
8

Reputation:

need badge code
 

BattleKing

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

Reputation:

RolandCreate a template modification, required @least badges 2.3.0 Beta 8

Template: account_details
Find:
PHP:
{$xf.visitor.username}

Replace:
PHP:
$0

                <xf:if contentcheck="true">
                    <span class="featuredBadges featuredBadges--account">
                        <xf:contentcheck>
                            <xf:if is="$xf.visitor.user_id">
                                <xf:if is="$xf.visitor.cached_featured_badges">
                                    <xf:foreach loop="$user.cached_featured_badges" value="$userBadge" if="$userBadge.Badge is not empty">
                                        <xf:macro template="ozzmodz_badges_featured_badges_macros" name="badge" arg-user="{$user}" arg-userBadge="{$userBadge}" arg-location="account" />
                                    </xf:foreach>
                                <xf:else />
                                    <xf:foreach loop="$xf.visitor.cached_badges" value="$userBadge" if="$userBadge.Badge is not empty">
                                        <xf:macro template="ozzmodz_badges_featured_badges_macros" name="badge" arg-user="{$user}" arg-userBadge="{$userBadge}" arg-location="account" />
                                    </xf:foreach>
                                </xf:if>
                            </xf:if>
                        </xf:contentcheck>
                    </span>
                </xf:if>
 
Top