Author |
Topic |
Deleted
deleted
4116 Posts |
Posted - 19 September 2002 : 16:53:55
|
quote:
Oh...if you're going to CSS, then don't forget about the various font colors, font sizes and fonts which can be selected when someone is posting a message.
I don't think it is possible to use CSS in posts. Also, if you don't convert it step by step you will be out of compatible MODs.
Here are my (intermediate) results with the current status of v4.0 beta 04 (numbers based on v3.4.02 based one, includes v4 related files):
Number of <font> tags : 2585
Number fixed <font> tags : 638
Number of eligable for <font class=> : 1947
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strCategoryFontColor & """> 204
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strDefaultFontColor & """> 15
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """> 197
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """> 101
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """> 54
<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """> 926
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strCategoryFontColor & """> 3
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """> 140
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strHeadFontColor & """> 5
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strHiLiteFontColor & """> 1
<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """> 42
<font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """> 95
<font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """> 110
<font face=""" & strDefaultFontFace & """> 11
<font size=""" & strDefaultFontSize & """> 5
<font size=""" & strFooterFontSize & """ color=""" & strHiLiteFontColor & """> 1
<font size=""" & strFooterFontSize & """> 6
<font size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """> 1
<font color=""" & strHiLiteFontColor & """> 30
|
Stop the WAR! |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 19 September 2002 : 17:45:20
|
quote: Originally posted by bozden I don't think it is possible to use CSS in posts. Also, if you don't convert it step by step you will be out of compatible MODs.
Yes it's possible. I've been using CSS in posts since I converted the forums to use CSS. For an existing forum, a conversion script can be written, but it would take a little bit to run this against the database, but yes it could be done.
Example
Example of Fonts: <span class='fontgeorgia'>This would be Georgia</span id='Georgia'> <span class='fonttahoma'>This would be Tahoma</span id='Tahoma'>
Example of Colors: <span class='green'>This would be Green</span id='green'> <span class='orange'>This would be Orange</span id='orange'> <span class='purple'>This would be Purple</span id='purple'> |
Edited by - work mule on 19 September 2002 17:47:04 |
|
|
Deleted
deleted
4116 Posts |
Posted - 19 September 2002 : 18:03:53
|
quote: Originally posted by work mule II
Yes it's possible. I've been using CSS in posts since I converted the forums to use CSS. For an existing forum, a conversion script can be written, but it would take a little bit to run this against the database, but yes it could be done.
I meant it would need such a script :)
What will be the pros & cons of using CSS in posts do you think? Your examples do not improve the performance as far as I can see, unless you define "style" elements instead of single color/fontface/fontsize elements...
|
Stop the WAR! |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 20 September 2002 : 10:48:47
|
quote: Originally posted by bozden What will be the pros & cons of using CSS in posts do you think? Your examples do not improve the performance as far as I can see, unless you define "style" elements instead of single color/fontface/fontsize elements...
CSS in posts - This wasn't done for performance, but simply for consistancy.
...well, maybe part of it was also one of those "because I could I did".
Honestly, I wouldn't mess with it unless you really want your forum to be 100% CSS. I'm thinking that I might convert posts back to non-CSS so there's less to modify when I have to upgrade something.
|
|
|
Topic |
|