Lawless Baron
Member
can someone help us?
please specify where to add the code and what to put please![]()
<xen:if is="{$user.is_admin}">
<span class="userrank">Administrator</span>
</xen:if>
/* Start User Ranks */
.userrank {
display: block;
width: 108px;
margin: -2px 0 5px 6px;
padding: 2px 0 3px 0;
border: 1px solid @primaryLight;
border-radius: 5px;
background: @primaryLighterStill url('@imagePath/xenforo/gradients/tab-unselected-25px-light.png') repeat-x top;
text-align: center;
font: 11px verdana,sans-serif;
text-decoration: none;
color: @primaryMedium;
text-shadow: 1px 1px 0 #fff;
outline: 0;
}
/* End User Ranks */
Just duplicate the codes above and change the CSS values to fit.I want each rank to have their own colors
Just duplicate the codes above and change the CSS values to fit.![]()
Ah. I can't help with that, sorry.He means to have the backgrounds changed like this:
![]()
That was I´m referringAh. I can't help with that, sorry.
Original release thread: http://xenforo.com/community/threads/user-ranks-in-css-no-images-required.7731/
View attachment 26563
This mod adds user ranks entirely made in CSS, so no additional images are required. The attached example shows how the colors automatically adapt when a style color is changed with the XenForo color palette.
The rank text can be changed by simply editing the template - no Photoshop required. You can change the shape, color, background...
Did you add your admin account to 'Administrators' in the control panel? (/admin.php?admins/) and also to the user group 'Administrative' (/admin.php?users/1/edit)?Ok, I added the edits as prescribed and I am the only one in my xenforo (just got in and trying to get it up and running before I have people populate it), and I don't see anything under my avatar. I am the only one in forum and I am the Admin but no rank is shown. I am having a hard time trying to understand the user groups, ranks and etc. but I must get these things going because there are private areas of the forum where only a certain user group will have access. I also have 'not' created any user groups, but I'm stunned just by the fact that my own account does not show me with 'admin' under the avatar. Please help?
.userTitle {
width: 108px;
margin: 2px 0 5px 25px;
padding: 2px 0 3px 0;
border: 1px solid @primaryLight;
border-radius: 5px;
background: @secondaryLighter url('@imagePath/xenforo/gradients/tab-unselected-25px-light.png') repeat-x top;
text-align: center;
font: 11px verdana,sans-serif;
text-decoration: none;
color: @primaryMedium;
text-shadow: 1px 1px 0 #fff;
outline: 0;
}
.userBlurb .userTitle {
background: transparent;
border: none;
text-shadow: none;
font: 13px arial;
}
.messageUserBlock .userText {
text-align: center;
}
.xenOverlay .userTitle, .profilePage .userTitle {
margin: 0;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.