Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
New feature: the "New" switch text now has a CSS class.
That "New" thing that pops up when there are unread posts in a forum or a topic.
Two new CSS classes (as usual, those with default CSS's don't need to worry, those with custom CSS's must add these classes to their CSS's manually):
span.forumlistnewswitch { font-family: verdana,arial,helvetica,sans-serif; font-size: 13px; font-weight: bold; }
span.topiclistnewswitch { font-family: verdana,arial,helvetica,sans-serif; font-size: 13px; font-weight: bold; }
1. CSS class for the New text on the forum list page
2. Same, but for the topic list page.
|
9/7/2003, 4:55 pm
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
Zeen
Registered: 04-2003
Location: London, England
Posts: 2060
Karma: 52 (+91/-39)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
Nice!
|
9/7/2003, 5:58 pm
|
Link to post
Email Zeen
PM Zeen
|
Iansgirl
Registered: 03-2003
Location: Mi Vida Loca
Posts: 1794
Karma: 26 (+41/-15)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
Does this mean now we can have an Image there or a Bullet instead of the "new" word?
Last edited by Iansgirl, 9/7/2003, 11:19 pm
|
9/7/2003, 8:17 pm
|
Link to post
PM Iansgirl
AIM
MSN
Yahoo
Blog
|
oldskool carter
The drunken vampire
Registered: 08-2003
Location: AU
Posts: 96
Karma: 0 (+0/-0)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
I added it, but it doesn't do anything. What did I do wrong?
--- http://com1.akheva.com/bhomestarfreaks
HEY SETH...
-"I'm gonna butter your bread."
-"I'm the essence of having, or rather the essence of completion."-me
-"'ello poppit"
*hehe, hammer away seth.;) ;)
|
9/7/2003, 9:11 pm
|
Link to post
PM oldskool carter
AIM
|
Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
If you add the code I posted, it will actually display the same. Try to change the settings of this CSS class, and you'll the New text changing.
As for the image... I'm not sure, maybe with some CSS tweaking.
|
9/7/2003, 9:20 pm
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
Izzey
Heavy poster
Registered: 04-2003
Location: Lancashire, UK
Posts: 498
Karma: 1 (+7/-6)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
As for the image...
It isn't easy. There is no way of removing the "New" text (without Javascript), however with a bit of exploitation of CSS I can display an image as well as the text. Try the following CSS entries. I've used the standard Akheva "info" icon. If anyone has a better one, can you post it here please.
span.forumlistnewswitch { font-family: verdana,arial,helvetica,sans-serif; font-size: 13px; font-weight: bold;
list-style-position:inside; list-style-image: url("http://www.akheva.com/img/default_post_icons/info.gif");
display:list-item; text-align:center;}
span.topiclistnewswitch { font-family: verdana,arial,helvetica,sans-serif; font-size: 13px; font-weight: bold;
list-style-position:inside; list-style-image: url("http://www.akheva.com/img/default_post_icons/info.gif");
display:list-item; text-align:center;}
Last edited by Izzey, 9/8/2003, 8:49 am
|
9/8/2003, 7:37 am
|
Link to post
Email Izzey
PM Izzey
Blog
|
Thor
Head Administrator
Runboard developer
Registered: 01-2003
Location: RB machine room
Posts: 4995
Karma: 232 (+275/-43)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
Please dont hotlink to Ezboard's images.
|
9/8/2003, 8:34 am
|
Link to post
Email Thor
PM Thor
ICQ
Yahoo
Blog
|
Izzey
Heavy poster
Registered: 04-2003
Location: Lancashire, UK
Posts: 498
Karma: 1 (+7/-6)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
Edited the post...
|
9/8/2003, 8:49 am
|
Link to post
Email Izzey
PM Izzey
Blog
|
HaloHalo
Registered: 07-2003
Location: Canada
Posts: 132
Karma: 0 (+0/-0)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
That's great, Izzey.
I'm assuming you can just "remove" the "New" text by changing the font size to something really small and/or the font colour to the same as the background colour.
Though the background colour usually alternates....damn...
|
9/8/2003, 11:13 am
|
Link to post
Email HaloHalo
PM HaloHalo
|
Zeen
Registered: 04-2003
Location: London, England
Posts: 2060
Karma: 52 (+91/-39)
|
Reply | Quote
|
|
Re: New feature: the "New" switch text now has a CSS class.
Thanks Izzey. The problem I have with that code is that the 'New' text still appears, If I try to change the colour of it or the size, it just leaves a large gap beside the image, this makes another line for each forum, so I think I'm going to leave the text for now.
|
9/8/2003, 12:01 pm
|
Link to post
Email Zeen
PM Zeen
|