Xenforo 2.1 Registered usergroup Name in navbar next to my username

Roland

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

Reputation:

Blok (copy 1).png


when i enter thread
 

BattleKing

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

Reputation:

View previous replies…

Roland

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

Reputation:

No you can leave the entered code in extra.less, it must be something different.
But I did not found it yet, need to check it later or as mentioned maybe someone else know it.
BattleKingok waiting from someone to reply
i guess its a hard problem to fix
 

BattleKing

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

Reputation:

Rolandyou mentioned it is fixed, please could you tell all of us what you did

PLEASE do not change the title and the text inside your posts, this is not a godd behavior.
 

Roland

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

Reputation:

you mentioned it is fixed, please could you tell all of us what you did

PLEASE do not change the title and the text inside your posts, this is not a godd behavior.
BattleKingi thought i fixed it. but it was not and i was waiting reply from you.

when you enter in thread your code breaks
 

BattleKing

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

Reputation:

i thought i fixed it. but it was not and i was waiting reply from you.

when you enter in thread your code breaks
Rolandok, for that we still need a solution, but I did not get the time currently to check it again.
 

BattleKing

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

Reputation:

anyone fix this issue
RolandFound it, it will work without cXF Top Navigation, but if you want it there as well, you need an extra template modification.

First of all this was missing in the extra.less file:
Less:
.p-navgroup-link {
    .message-userBanner.userBanner {
    display: unset;
    }
}

If TOP Navigation is installed and Visitor Tab has been moved to there, you need this
TEMPLATE: cxf_top_navigation_visitor
FIND:
HTML:
                    <xf:avatar user="$xf.visitor" size="xxs" href="" title="" />
                    <span class="p-navgroup-linkText">{$xf.visitor.username}</span>

REPLACE
HTML:
<xf:avatar user="$xf.visitor" size="xxs" href="" title="" />
<span class="p-navgroup-linkText username--style{$xf.visitor.display_style_group_id}">
    {$xf.visitor.username}
</span>
<xf:userbanners user="$xf.visitor" tag="div" class="message-userBanner" itemprop="jobTitle" />
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,067
Points
173

Reputation:

Roland

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

Reputation:

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

even if you want that like that you know that when a member logs in there badges will be the same as you
 

one_finger_man

Well-known member
Registered
Joined
Jan 20, 2022
Messages
385
Points
53

Reputation:

you can an image of anykind in the back round with
extra
CSS:
.p-navgroup-link.p-navgroup-link--user {
    background: transparent url('Images/') no-repeat center / cover;
    max-width: 550px;
}

D.png
 
Top