Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Graphics & Style in Snitz!
 Backgroundcolor when quoting in forum
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 16 July 2004 :  12:59:35  Show Profile  Visit MarcelG's Homepage
erm....I've been thinking of this all day, and I think I've found a concept that might work.
However, I need someone with HTML/CSS skills to help.....

Now, I use this function to translate [quote][/quote] to HTML code for in the DB.
fString = doCode(fString, "[quote]", "[/quote]", "<div align=""right"" id=""quote2""><table border=""1"" cellpadding=""5"" cellspacing=""0"" style=""border-collapse: collapse; border-left-width:0; border-right-width:0; border-top-width:0"" bordercolor=""DCDCDC"" width=""90%""><tr><td width=""100%"" style=""border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1""><font size=""1"" face=""Tahoma"" id=""quote"">quote:</font id=""quote""></td></tr><tr><td bgcolor=""F5F5F5"" width=""100%"" style=""border-left-color: ""DCDCDC""; border-left-width: 1; border-right-color: DCDCDC; border-right-width: 1""><font size=""1"" face=""Tahoma"" id=""quote"">", "</font id=""quote""></td></tr></table></div align=""right"" id=""quote2"">")

And, in inc_func_common.asp I reverse this process.

But...what if I'd to this:
Instead of replacing the quote-tags with the entire HTML code required, I only replace them with CSS tags for that.
So, a quote-DIV-tag:
<div align=""right"" id=""quote2"">
A quote-table-tag:
<table border=""1"" cellpadding=""5"" cellspacing=""0"" style=""border-collapse: collapse; border-left-width:0; border-right-width:0; border-top-width:0"" bordercolor=""DCDCDC"" width=""90%""><tr><td width=""100%"" style=""border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1""><font size=""1"" face=""Tahoma"" id=""quote"">quote:</font id=""quote""></td></tr><tr><td bgcolor=""F5F5F5"" width=""100%"" style=""border-left-color: ""DCDCDC""; border-left-width: 1; border-right-color: DCDCDC; border-right-width: 1"">
and a quotefont tag:
<font size=""1"" face=""Tahoma"" id=""quote"">"

All being closed afterwards (by replacing the /quote tag:
A end quotefont-tag:
</font id=""quote"">
A end-quote-table-tag:
</td></tr></table>
And a end-quote-DIV-tag:
</div align=""right"" id=""quote2"">

In that way, there's NO fontcolor/tablecolor etc stored in the db for thát post, so it won't be a problem to change any of them later on. The inc_func_posting.asp functions won't have any problem recognizing the quote-tags.
But...erm...I have virtually NO knowledge about how to pull this of in CSS...Anyone willing to help ?

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 18 July 2004 :  11:39:12  Show Profile  Visit MarcelG's Homepage
I've got a fix. I'll post it in the Mod's W/Code section

portfolio - linkshrinker - oxle - twitter
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07