Author |
Topic |
|
Ez4arab
Junior Member
479 Posts |
Posted - 19 June 2002 : 19:20:00
|
i have modfiy the inc_function.asp code of quote
this for example hr line of the quote quote:
i want to use instead of hr line i will use table
Here is the code: i have repalce old code with this
Old Code like this
'fString = replace(fString, "<BLOCKQUOTE id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & "<hr height=1 noshade id=quote>","[quote]", 1, -1, 1) 'fString = replace(fString, "<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & " id=quote>","[ /quote]", 1, -1, 1)
New Code
'######## fString = replace(fString, "<BLOCKQUOTE id=quote><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#E4CDCD"" bordercolor=""#111111"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & ":","[quote]", 1, -1, 1) fString = replace(fString, "</font id=quote></td id=quote></tr id=quote></table id=quote></BLOCKQUOTE id=quote>","[ /quote]", 1, -1, 1) '########
Old Code
'fString = doCode(fString, "[quote]", "[ /quote]", "<BLOCKQUOTE id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & "<hr height=1 noshade id=quote>", "<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & " id=quote>")
New Code
'#### fString = doCode(fString, "[quote]", "[ /quote]", "<BLOCKQUOTE id=quote><table border=""1"" class=""quote"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & "", "</font id=quote></td id=quote></tr id=quote></table id=quote></BLOCKQUOTE id=quote>") '####
the promble which i face it Is - when member try to modify his topic it change form code to html
any idea to fix it
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 19 June 2002 : 19:53:58
|
you code doesn't match so the replacing is failing
this
<BLOCKQUOTE id=quote><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#E4CDCD"" bordercolor=""#111111"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>"
from your first line, should match your second change
<BLOCKQUOTE id=quote><table border=""1"" class=""quote"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>
As you can see they don't match so it can't change it back to forum code
|
|
|
Ez4arab
Junior Member
479 Posts |
Posted - 19 June 2002 : 21:31:57
|
i have fix it.
'######## fString = replace(fString, "<BLOCKQUOTE id=quote><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#E4CDCD"" bordercolor=""#111111"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & ":","[quote]", 1, -1, 1) fString = replace(fString, "</font id=quote></td id=quote></tr id=quote></table id=quote></BLOCKQUOTE id=quote>","[ /quote]", 1, -1, 1) '########
'#### fString = doCode(fString, "[quote]", "[ /quote]", "<BLOCKQUOTE id=quote><table border=""1"" style=""border-collapse: collapse"" bgcolor=""#E4CDCD"" bordercolor=""#111111"" id=quote><tr id=quote><td id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>" & fLang(strLangInc_Functions00160) & ":", "</font id=quote></td id=quote></tr id=quote></table id=quote></BLOCKQUOTE id=quote>") '####
Edited by - aljish on 19 June 2002 21:36:33 |
|
|
blackinwhite
Average Member
Turkey
657 Posts |
Posted - 20 June 2002 : 05:37:40
|
you can do it easier with CSS+Layer
if you don't want to use Layer, you can still use CSS with giving a class, (like <table class=xxx... )
The advantage of usign CSS is that, when you decide to change the formatting of Quote, that will cause problem with decoding the messege.
So it's better to seperate the design from structure.
Edited by - blackinwhite on 20 June 2002 05:45:07 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
|
|
Topic |
|
|
|