Reputation:
Reputation:
.p-navgroup-link.p-navgroup-link--user {
max-width: 550px;
}
<span class="p-navgroup-linkText">{$xf.visitor.username}</span>
<span class="p-navgroup-linkText username--style{$xf.visitor.display_style_group_id}">
<xf:if is="{$xf.visitor.display_style_group_id} == 1">
Guest
<xf:elseif is="{$xf.visitor.display_style_group_id} == 2" />
Registered
<xf:elseif is="{$xf.visitor.display_style_group_id} == 3" />
Administrator
<xf:elseif is="{$xf.visitor.display_style_group_id} == 4" />
Moderator
<xf:else />
Not fedined
</xf:if>
/ {$xf.visitor.username}</span>
Reputation:
Like this
View attachment 30909
or like this:
View attachment 30910
In Extra.less increase field size
Less:.p-navgroup-link.p-navgroup-link--user { max-width: 550px;
Template modification
PAGE_CONTAINER
Search Simple
FIND:
PHP:<span class="p-navgroup-linkText">{$xf.visitor.username}</span>
REPLACE:
PHP:<span class="p-navgroup-linkText username--style{$xf.visitor.display_style_group_id}"> <xf:if is="{$xf.visitor.display_style_group_id} == 1"> Guest <xf:elseif is="{$xf.visitor.display_style_group_id} == 2" /> Registered <xf:elseif is="{$xf.visitor.display_style_group_id} == 3" /> Administrator <xf:elseif is="{$xf.visitor.display_style_group_id} == 4" /> Moderator <xf:else /> Not fedined </xf:if> / {$xf.visitor.username}</span>
Last one need to be adapted, if new groups will be added.
.p-navgroup-link.p-navgroup-link--user {
max-width: 550px;
}
Reputation:
you need to add this not the top
HTML:.p-navgroup-link.p-navgroup-link--user { max-width: 550px; }
Reputation:
If this is not added the field is not big enough and possibly only the group name will be visible
}
Reputation:
you did not have this part with out this i got issues so i had this and it works well
HTML:}
Reputation:
View attachment 30940 yes like that but i want this rank to be show.
Reputation:
are you talking about admin and not register member you have to set this in your settings
Reputation:
no bro u didnt understand, i want this rank image to be left of username
just like above he did but i dont want text i want userrank
Reputation:
So just the image, which image, the image which has been assigned to the group?
Reputation:
So just the image, which image, the image which has been assigned to the group?
Reputation:
rank image bro)
this i want to show this.
for all usergroups for example you admin im registered other guy vip member
the purpuse of this is users can see their rank in front of them
<xf:avatar user="$xf.visitor" size="xxs" href="" title="" />
<span class="p-navgroup-linkText">{$xf.visitor.username}</span>
<xf:userbanners user="$xf.visitor" tag="div" class="message-userBanner" itemprop="jobTitle" />
<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>
.p-navgroup-link.p-navgroup-link--user {
max-width: 550px;
}
Reputation:
Reputation:
Reputation:
hm good question, did not find the CSS which is responsible for that yet.
Further investigation need to be executed, maybe someone else might know the answer
Reputation:
idk why its happend
should be that extra less code work but its not working
or can we erase it when entering a thread what should we do?
Reputation:
ok, for that we still need a solution, but I did not get the time currently to check it again.
Reputation:
anyone fix this issue
.p-navgroup-link {
.message-userBanner.userBanner {
display: unset;
}
}
<xf:avatar user="$xf.visitor" size="xxs" href="" title="" />
<span class="p-navgroup-linkText">{$xf.visitor.username}</span>
<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" />
Reputation:
Reputation:
pl do not delete content and edit title.
Reputation:
sorry i thought i fixed issue