Runboard.com
Слава Україні!



🙂       Use the black navigation bar to log in or create your account.

Jump to Page:  1  2 

 
Demonic Inuyasha Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 11-2004
Province: My Secluded Paradise
Posts: 51
Karma: 2 (+2/-0)
ReplyQuote
Karma


I finally got sick and tired of the smites being visible, so I was wondering about something.

Without actually turning it off, is there a way to use CSS and simply hide the parentheses next to the current amount of karma that you have on the post list master table page. To go deeper, like I need to, but the parentheses with the total karma, negatives in it is what I mean.

It seems possible, since CSS rules and all. If we can't it's no big deal, but it would be cool to be able to.

---

Is not lost in the dark, only lost in thought...
5/18/2008, 4:39 am Link to this post PM Demonic Inuyasha Yahoo Read Blog
 
Lesigner Girl Profile
Live feed
Blog
Friends
Miscellaneous info

Minerva
Head of Runboard staff

Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
ReplyQuote
Re: Karma


Yes and no.

Since there is nothing in the custom language set to the effect of
%1 (%2/%3) that will let you alter the part in parentheses, we can only work with what is already there.

Here is the board's underlying HTML for that:

<span class="postlist_karma">Karma: </span>
<span class="postlist_karma_value">1 (+1/-0)</span>


Since the part in parentheses doesn't have its own class name apart from the number outside the parentheses, we can't just do a display:none; and be done with it. What you can do is limit how much of the karma value can be seen.

.postlist_karma { display: block; float: left; }
.postlist_karma_value { display: block; width: 1.25em; overflow: hidden; margin-right: 0.5em; white-space: nowrap; }


I temporarily added this code to this board, so you can see what it does, along with a background color so you can see the visible width.

This isn't a perfect solution, as you can see by comparing your single-digit karma with my double-digit karma. If anyone at your board has karma in the triple digits or more, you would have to widen the visible karma value even more, thus showing more of the area in parentheses for people with karma in the single and double digits.

It may not look pretty that way, but it hides the negative part. emoticon

Last revised by Lesigner Girl, 5/21/2008, 12:43 am


---
Runboard Knowledge Base
Runboard Support Forums
Find other message boards
5/18/2008, 5:02 pm Link to this post PM Lesigner Girl Read Blog
 
SKOKEY Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 12-2005
Province: Bennington, NH
Posts: 1308
Karma: 38 (+39/-1)
ReplyQuote
Re: Karma


Look what it's doing now. It's wrapping the mumbers into a column and still showing the negative ones.
5/20/2008, 5:01 pm Link to this post PM SKOKEY
 
Lesigner Girl Profile
Live feed
Blog
Friends
Miscellaneous info

Minerva
Head of Runboard staff

Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
ReplyQuote
Re: Karma


I haven't seen what you were seeing, but it might be best to add white-space: nowrap; to .postlist_karma_value just to make sure that doesn't happen to anyone who uses this idea.

I'll edit my code above to add that in.

Thanks, Skokey! emoticon

---
Runboard Knowledge Base
Runboard Support Forums
Find other message boards
5/21/2008, 12:43 am Link to this post PM Lesigner Girl Read Blog
 
SKOKEY Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 12-2005
Province: Bennington, NH
Posts: 1308
Karma: 38 (+39/-1)
ReplyQuote
Re: Karma


OK, I don't see the wrap any more.
5/21/2008, 1:13 am Link to this post PM SKOKEY
 
SKOKEY Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 12-2005
Province: Bennington, NH
Posts: 1308
Karma: 38 (+39/-1)
ReplyQuote
Re: Karma


I'm at work and have IE6 here. The column of numbers is back.
5/21/2008, 4:30 pm Link to this post PM SKOKEY
 
Lesigner Girl Profile
Live feed
Blog
Friends
Miscellaneous info

Minerva
Head of Runboard staff

Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
ReplyQuote
Re: Karma


Ok, I know I added the nowrap to my CSS, but it wasn't there just now when I looked. emoticon Please let me know how it looks the next time you view it with IE6. emoticon

Thanks! emoticon

---
Runboard Knowledge Base
Runboard Support Forums
Find other message boards
5/21/2008, 11:25 pm Link to this post PM Lesigner Girl Read Blog
 
SKOKEY Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 12-2005
Province: Bennington, NH
Posts: 1308
Karma: 38 (+39/-1)
ReplyQuote
Re: Karma


Sure thing Boss.
5/22/2008, 1:10 am Link to this post PM SKOKEY
 
SKOKEY Profile
Live feed
Blog
Friends
Miscellaneous info

Citizen

Registered: 12-2005
Province: Bennington, NH
Posts: 1308
Karma: 38 (+39/-1)
ReplyQuote
Re: Karma


Lookin' OK now in IE6.
5/22/2008, 3:19 pm Link to this post PM SKOKEY
 
Lesigner Girl Profile
Live feed
Blog
Friends
Miscellaneous info

Minerva
Head of Runboard staff

Registered: 11-2005
Posts: 9606
Karma: 132 (+147/-15)
ReplyQuote
Re: Karma


Boss emoticon

Thanks, Skokey! emoticon Karma coming your way. emoticon

---
Runboard Knowledge Base
Runboard Support Forums
Find other message boards
5/23/2008, 12:01 am Link to this post PM Lesigner Girl Read Blog
 


Add to this discussion

Jump to Page:  1  2 



You are not logged in (login)
Back To Top

This board's time is GMT.