Add strike through the banned members usernames.

View previous topic View next topic Go down

Matti_7
Matti_7
CSS Expert
CSS Expert
Forum Posts : 35
Member Since : 2011-11-25

PostMatti_7 8/1/2012, 6:55 am

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 Add strike through the banned members usernames. Ex310 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:

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

Thank you!
Matti

Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 8/1/2012, 7:17 am

Tutorial Accepted. Congratulations!
Dazation
Dazation
Valued Member
Valued Member
Forum Posts : 222
Member Since : 2011-10-30

PostDazation 8/1/2012, 12:32 pm

Nice tutorial, it's good to have a useful tutorial like this Smile
Cody
Cody
Member
Member
Forum Posts : 43
Member Since : 2011-11-13

PostCody 8/1/2012, 2:58 pm

Very helpful. Thanks Smile
Nick!
Nick!
Member
Member
Forum Posts : 7
Member Since : 2012-01-15

PostNick! 15/1/2012, 12:02 pm

You broke every single bit down. Good job.
YoshiGM
YoshiGM
Member
Member
Forum Posts : 3
Member Since : 2012-03-12

PostYoshiGM 12/3/2012, 10:59 am

Awesome!

This is very useful :O
Seabody
Seabody
Member
Member
Forum Posts : 9
Member Since : 2012-03-30

PostSeabody 1/4/2012, 10:14 pm

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?
Shaun
Shaun
Member
Member
Forum Posts : 5
Member Since : 2012-05-11

PostShaun 11/5/2012, 1:12 am

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.
Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 11/5/2012, 5:26 am

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

PostSponsored content

View previous topic View next topic Back to top

Similar topics

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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