Chatbox

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

Matti_7

avatar

CSS Expert
In this tutorial I will show you on how to add a strike through the banned members usernames, this is simple and not something huge. Thought it would make it easier to spot who's banned and who isn't. Regular members and banned members have the same coloured usernames making it difficult to notice which is which.

All you need to do is to click on the banned members usernames and get the url, url would look something like this just copy the end of the url like this ''/u1'' or whatever number he/she get.

The CSS:
Code:
a[href="/u1"] {
    text-decoration:line-through !important;
}

To add color and bold:
Code:
a[href="/u1"] {
    text-decoration:line-through !important;
    font-weight:bold;
    color: #202020 !important;
}

Here's some examples:
Spoiler:


Posts/Threads

Add this to the Rank Title:
Code:
<span style="color: #202020;"><s>Banned</s></span>

Thank you!
Matti

View user profile

Drogba921

avatar

Administrator
Tutorial Accepted. Congratulations!

View user profile http://www.codinghelp.org

Dazation

avatar

Valued Member
Nice tutorial, it's good to have a useful tutorial like this Smile

View user profile

Cody

avatar

Member
Very helpful. Thanks Smile

View user profile

Nick!

avatar

Member
You broke every single bit down. Good job.

View user profile

YoshiGM

avatar

Member
Awesome!

This is very useful :O

View user profile

Seabody

avatar

Member
I have a question though. Does this only apply to ForumMotion/PunBB? Because I clicked on the Username of a Moderator at my forum, and the suffix of his URL is "member.php?action=profile&uid=6"

If it applies to any software, what part of my URL would go into the CSS?

View user profile

Shaun

avatar

Member
good. thanks so much.
but it seems that we have to do that for each banned member.
can we apply this code to a whole group, which is called Ban Group, for example?
if so, all the members in that group will be stroke through.

View user profile

Drogba921

avatar

Administrator
I think we could find a way to do that sean. Give me a few days Very Happy

View user profile http://www.codinghelp.org

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum