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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 remove quote hr line ("new idea")
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ez4arab
Junior Member

479 Posts

Posted - 19 June 2002 :  19:20:00  Show Profile  Visit Ez4arab's Homepage
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  Show Profile  Visit HuwR's Homepage
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

Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 19 June 2002 :  21:31:57  Show Profile  Visit Ez4arab's Homepage
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
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 20 June 2002 :  05:37:40  Show Profile
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 July 2002 :  03:35:51  Show Profile  Visit dayve's Homepage
this has been done in the Quote By Author, BikerBob's version.


http://www.nineinchnailz.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07