a.cedar-rose {display: none;}
| Author | Comment | |||
|---|---|---|---|---|
cedar rose |
Anonymous... |
Lead | ||
|
It looks as though people can be anon at their own boards, of if an admin adds that line for you:
a.cedar-rose {display: none;} |
||||
|
|
||||
Redau |
#1 | |||
|
Thanks Cedar I must try this out as know most of my members want this function.
|
||||
|
|
||||
Chris W962 |
#2 | |||
|
It works!
|
||||
|
|
||||
favafoyo |
#3 | |||
|
but does it take away the link beneath the persons avatar?
|
||||
|
|
||||
cedar rose |
#4 | |||
|
As far as I can see everything else is still there. Giving the a. username class a background colour or changing the colour of the font doesn't change it
in the link beneath that person's avatar either, while it does display those properties in the who's online bar.
*edited to add* Apparently it does remove the last post username in the last post column on the directory page. I didn't realize that because I have that hidden already.
Last Edited By: cedar rose 30 Sep, 2006 08:29.
Edited 1 time.
|
||||
|
|
||||
cedar rose |
#5 | |||
|
Yep, just tested - it appears to work only if you've got the last poster name on the directory page hidden. It doesn't appear to affect the other ones,
such as user info in the thread itself, or author name in the author column on the forum pages.
|
||||
|
|
||||
alison |
#6 | |||
|
Eventually all instances of your username will also carry the classes, so if you only want to affect the who's online, then you need to do this:
.users-online a.cedar-rose {display: none;} I meant to put this into the FAQs, so I've updated the who's online FAQ with it now. |
||||
|
|
||||
cedar rose |
#7 | |||
|
Yay!! Just tested that and it works!!
I tried a combi of that earlier, but I had the a in the wrong position. I started it off with a .users-online .cedar-rose { }, and then .users-online .cedar-rose a { }, neither of which obviously work. Is there some basic info about where the a goes? I've had similar quandaries with p and img because they don't have dots in front of them. So what's the rule of thumb about where it goes? |
||||
|
|
||||
cedar rose |
#8 | |||
|
So I guess that also goes for individual backgrounds in the who's online bar. Because if I wanted to make my background red, it'd also show up in the
latest post if the .users-online isn't mentioned in that line.
.users-online a.cedar-rose {background-color: red;} |
||||
|
|
||||
alison |
#9 | |||
|
for usernames that are links, they should all have the class IN the a, and hence "a.cedar-rose"
They don't all currently follow this, so it won't work everywhere yet. In the post, the whole table is inside an <li> with your username class, so in that case you can get the link with ".cedar-rose a" |
||||
|
|
||||
Chris |
#10 | |||
|
If Alison hasn't confused you, then I'm bound to by saying this....
When you see p or div or td or img (or any html tag without the < >) that css applies to every single tag of that kind in the document. So
p { margin: 0px; }
means every single <p> in the page is to have no margins. If the selector (fancy name for it!) starts with a full stop (.) then it only applies to tags (doesn't matter what the tag is) that have a class matching the text after the full stop. So,
.red { color: red; }
Means if you have a class of red, your text will be red. So the following, although they are different tags, have the same class, so they are all red
<p class="red">red</p>
<div class="red">red</div> <td class="red">red</td> Now, anything can have a class attached to it as in the previous example there are 3 different tags with the same class. So when you see this in your css
p.red { color: red; }
That means that the tag (<p>) and the class (user-name) both have to match. Sometimes you can leave out the tag part (p) and only use the class (.red), but there are occasions where you need the tag to override a style or you specifically only want to style one tag. I don't really know any good websites that explain that kind of thing, this is the only one I know :) Maybe Alison has a few up her sleave... |
||||
|
|
||||
Chris W962 |
#11 | |||
Apparently it does remove the last post username in the last post column on the directory page.I don't think that's a bad thing at all. Especially for people who are just starting up a board. Potential members might frown when they see all the last posts made by the board owner. I have a habit of checking my board a few times a day and replying to all the new posts. Sometimes I alternate profiles so that the last poster is not Chris W all across the board. But with this hiding feature... I'm thinking about using it on my main board just for that reason. |
||||
|
|
||||
cedar rose |
#12 | |||
|
Thanks Ali and Chris!
|
||||
|
|
||||
favafoyo |
#13 | |||
|
hmm, cool!
|
||||
|
|
||||
Arizona |
#14 | |||
|
Well! Now I finally know what "full stop" means, lol. I had no clue it meant "period". I just thought it was some cute thing y'all
said. I should have googled it, but I am kinda lazy.
|
||||
|
|
||||
favafoyo |
#15 | |||
|
oh yeah, I didn't know either! I thought it was some brit thing.
|
||||
|
|
||||
janmew |
#16 | |||
|
LOL I think it is originally some Brit thing. I'm Canadian and I knew what it meant.
|
||||
|
|
||||
Chris |
#17 | |||
|
Well we did invent the language
|
||||
|
|
||||
alison |
#18 | |||
|
hehe, I find it funny that people just didn't know what it meant. Not for any sort of "how dumb are you?" reasons, just because I didn't
realise that my sig didn't make sense to everyone!
|
||||
|
|
||||
Chris |
#19 | |||
|
Two countries separated by a common language indeed!
|
||||
|
|
||||
alison |
#20 | |||
|
Chris, yahoo!
|
||||
|
|
||||