This website (https://forums.spongepowered.org/t/adminshop-v1-8-2-server-shops/) has labels for Group Titles, how i am able to do that? I cannot find it.
Regards,
Indicado
In a support thread titled âHow i can make group titles like this?â, user DarkDofah asks how to display custom group labels (e.g., âBananas Guysâ) next to usernames, similar to a SpongePowered forum example. User Falco explains that this requires custom CSS, providing a code snippet targeting a specific group class like .username.Bananas. Falco instructs DarkDofah to apply this via /admin/customize/css_html, save, enable, and wait for the cache to update Falco.
Despite following these steps, DarkDofah reports the label does not appear. Mittineague suggests a hard refresh and notes that the CSS selector must match the exact group name in the HTML. After further troubleshooting, DarkDofah realizes the issue was a capitalization mismatch in the CSS selector (using .developer instead of .Developer) DarkDofah. The thread concludes with DarkDofah confirming the fix and requesting the topic be locked. Mittineague further clarifies that CSS selectors may vary depending on whether the forum displays full names or usernames in the post header Mittineague.
This website (https://forums.spongepowered.org/t/adminshop-v1-8-2-server-shops/) has labels for Group Titles, how i am able to do that? I cannot find it.
Regards,
Indicado
Itâs done using custom CSS.
If you have Bananas as your primary group:
.topic-meta-data .username.Bananas:after {
content: "Bananas Guys";
background: #59A6D9;
color: #000000;
margin: 0 0 0 5px;
padding: 2px 4px;
font-weight: bold;
font-size: 0.9em;
line-height: 1;
display: inline-block;
border-radius: 3px;
}
and where i need to place it? Sorry, im a little bit noobie.
/admin/customize/css_html
should i type it and press the upgrade button? As i already did it but it doesnât show the label.
still canât see it as it shows me with plain text: @ https://play.wonh.cf/t/how-to-get-you-unbanned/32
i replaced âBananasâ with âDeveloperâ as it is the Groupâs name
Go to https://play.wonh.cf/admin/users/1/indicado and in the Group section make Developer your primary group.
done, i removed my âDeveloperâ title on my profile and now developer is my primary group but still doesnât show
not like that, look at the web that i linked on the first post
Anyone here? I need help ![]()
here waiting 4 da response
Everything you need has already been posted by Falco.
After changing the group name in the selector to admin, it resulted in this in my localhost set-up
As you are apparently having problems
What does the HTML of a post your are wanting to style look like?
What does the CSS in your saved and enabled Admin â Customize â CSS/HTML â CSS look like?
@Mittineague looks like this:
.topic-meta-data .username.developer:after {
content: "Developer";
background: #800080;
color: #ffffff;
margin: 0 0 0 5px;
padding: 2px 4px;
font-weight: bold;
font-size: 0.9em;
line-height: 1;
display: inline-block;
border-radius: 3px;
}
sorry, fixed it, simple as changing the .topic-meta-data .username.developer:after { value to the exact group name, .topic-meta-data .username.Developer:after´
thanks!
Ah, looking here I see the HTML is different from my localhost set-up.
AFAIK this is due to full-name â username Settings.
If your HTML looks similar to this
<div class="topic-meta-data">
<div class="names trigger-user-card">
<span class="first full-name staff admin team">
<a href="/users/Falco" data-auto-route="true" data-user-card="Falco">Rafael dos Santos Silva</a>
</span>
<span class="second username">
<a href="/users/Falco" data-auto-route="true" data-user-card="Falco">Falco</a>
</span>
<span class="user-title">
<a href="/groups/team" class="user-group">team</a>
</span>
</div>
then the selector is incorrect and the CSS wonât apply like it does for HTML like this
<div class="topic-meta-data">
<div class="names trigger-user-card">
<span class="first username staff admin moderator">
<a href="/users/AdminGuy1" data-auto-route="true" data-user-card="AdminGuy1">AdminGuy1</a>
<i class="fa fa-shield" aria-hidden="true" title="This user is a moderator"></i>
</span>
<span class="user-title">good guy</span>
</div>
no, it doesnât look like that, but i fixed it as it was simple as i said above.
Requesting for lock!