Add strike through the banned members usernames.

View previous topic View next topic Go down

avatar
Matti_7
CSS Expert
CSS Expert
Forum Posts : 35
Member Since : 2011-11-25
View user profile

PostMatti_7 on 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 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

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

PostMike on 8/1/2012, 7:17 am

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

PostDazation on 8/1/2012, 12:32 pm

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

PostCody on 8/1/2012, 2:58 pm

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

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

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

PostYoshiGM on 12/3/2012, 10:59 am

Awesome!

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

PostSeabody on 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?
avatar
Shaun
Member
Member
Forum Posts : 5
Member Since : 2012-05-11
View user profile

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

PostMike on 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

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