IP.Board Tutorials

How to add a rank in css

Submitted by one_finger_man1, , Thread ID: 224867

Thread Closed
10-11-2021, 04:25 AM
#1
simple way to add the ranks

ACP Users Groups. Select any group (eg Administrator) and click Edit. Group settings In "Group name" add:

Code:
<span class='defaultGroup admin'>Administrator</span>

ACP Appearance Styles and templates Edit HTML and CSS Tab CSS custom custom.css Paste the code below

Code:
/ * Groups * /
.defaultGroup {
  border-radius: 2px;
    color: #fff;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 15px;
    text-shadow: none;
    vertical-align: middle;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.15) inset;
}
.admin {
background-color: #c75050;
}
.admin:before {
  content: "\f005";
   font-family: 'FontAwesome';
   margin-right: 3px;
}

If you do not want an asterisk in front of the group name, remove the .admin: before class from the .CSS code (in custom.css)

rank to be displayed only in topics, then just use this code:

Code:
/* Grupy */
.ipsComment_author .defaultGroup {
  border-radius: 2px;
    color: #fff;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 15px;
    text-shadow: none;
    vertical-align: middle;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
  box-shadow: 0 -3px 0 rgba(0, 0, 0, 0.15) inset;
}
.ipsComment_author .admin {
background-color: #c75050;
}
.ipsComment_author .admin:before {
  content: "\f005";
   font-family: 'FontAwesome';
   margin-right: 3px;
}

RE: How to add a rank in css

#2
I Don't Even Know what to do

RE: How to add a rank in css

OP
#3
10-11-2021, 04:41 AM
leoplace71 Wrote:
I Don't Even Know what to do
in you admin go to groups

Administrator
Group Name
add this
Code:
<span class='defaultGroup admin'>Administrator</span>

rest in you css theme you are using

RE: How to add a rank in css

#4
thank you for this wonderful guide. I did it!

RE: How to add a rank in css

#5
thank you for this wonderful guide. I did it!

RE: How to add a rank in css

#6
great work its very good for someone who dont know how to cokde

RE: How to add a rank in css

#7
yo thats actually cool but i needed it like 3 years ago lmao but i will try to do this when i go install again

RE: How to add a rank in css

#8
Why stop use a framework invision has dev to use that 'little' script?

RE: How to add a rank in css

#9
Vai ser til para a criao do meu frum, s agradee

RE: How to add a rank in css

#10
tiene alguna imagen como muestra del codigo amigo seria genial

Users browsing this thread: 3 Guest(s)