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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Old/New Quote Style nesting issue
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 23 July 2008 :  13:54:20  Show Profile
I had this code for my quotes:
fString = doCode(fString, "[quote*]", "[/quote]", "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote"">Quote:<hr size=""1"" noshade id=""quote"">", "<hr size=""1"" noshade id=""quote""></font id=""quote""></blockquote id=""quote"">")

Note: * added to [quote*] tag to parse code

and I have added an icon in front of the Quote: All works well and all nested quote replies work ok. I've used this code:

I had this code for my quotes:
fString = doCode(fString, "[quote*]", "[/quote]", "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote""><img src=""icon_quote.gif"" align=""bottom"" style=""margin-bottom: -5px;""> Quote:<hr size=""1"" noshade id=""quote"">", "<hr size=""1"" noshade id=""quote""></font id=""quote""></blockquote id=""quote"">")

There is a problem when I reply quote to an older quote, ie when an old quote is nested in a new style with the icon.
This is the first quote:

This is the above quote reply in nesting old to new


This below is the new reply quotes new to new

Is there a quick way to remove the nesting incompatability?
<

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 23 July 2008 :  14:01:31  Show Profile  Visit HuwR's Homepage
not without creating a new tag, the problem is because both your old and new quote code end with the same

"<hr size=""1"" noshade id=""quote""></font id=""quote""></blockquote id=""quote"">

so the parser gets confused and doesn't know what to do.

maybe if you give your new quote code this instead

<hr size=""1"" noshade id=""newquote""></font id=""quote""></blockquote id=""quote"">

change in red.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 23 July 2008 :  14:34:41  Show Profile
Huwr, I understand the rationale, but I am still getting the same problem between old and new quotes:
This is what I have for inc_func_posting.asp
		'## left for compatibility with older versions of the forum
fString = replace(fString, "<BLOCKQUOTE id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote><img src=""icon_quote.gif"" align=""bottom"" style=""margin-bottom: -5px;""> Quote:<hr size=1 noshade id=newquote>","[quote*]", 1, -1, 1)
fString = replace(fString, "<hr size=1 noshade id=newquote></BLOCKQUOTE id=quote></font id=quote><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & " id=quote>","[/quote]", 1, -1, 1)
'##

fString = replace(fString, "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote""><img src=""icon_quote.gif"" align=""bottom"" style=""margin-bottom: -5px;""> Quote:<hr size=""1"" noshade id=""newquote"">","[quote*]", 1, -1, 1)
fString = replace(fString, "<hr size=""1"" noshade id=""newquote""></font id=""quote""></blockquote id=""quote"">","[/quote]", 1, -1, 1)

'## left for compatibility with older versions of the forum
fString = replace(fString, "<hr size=""1"" noshade id=""quote""></blockquote id=""quote""></font id=""quote"">","[/quote]", 1, -1, 1)


And this is what I have for inc_func_common.asp

if fField_Type <> "signature" and fField_Type <> "title" then
fString = doCode(fString, "[quote*]", "[/quote]", "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote""><img src=""icon_quote.gif"" align=""bottom"" style=""margin-bottom: -5px;""> Quote:<hr size=""1"" noshade id=""newquote"">", "<hr size=""1"" noshade id=""newquote""></font id=""quote""></blockquote id=""quote"">")


<

Edited by - Andy Humm on 23 July 2008 14:37:12
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 23 July 2008 :  14:49:28  Show Profile
You cannot change the command in Func_Posting without adding a duplicate of the quote tags (renamed to quotenew) in Func_Common.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 23 July 2008 :  15:26:30  Show Profile
quote:
Originally posted by Carefree

You cannot change the command in Func_Posting without adding a duplicate of the quote tags (renamed to quotenew) in Func_Common.


Carefree, could you be kind enough to help us here, I understand where you are coming from, but applying it, I get errors ,,
Thanking you Andy<
Go to Top of Page

Carefree
Advanced Member

Philippines
4222 Posts

Posted - 23 July 2008 :  16:19:44  Show Profile
Sure. What type of styling (dashed/solid/no border, width/height, link colors, highlighting) do you want to delineate the new quote block? For examples, look at these lines from the original "inc_header.asp":


		"<style type=""text/css"">" & vbNewLine & _
		"<!--" & vbNewLine & _
		"a:link    {color:" & strLinkColor & ";text-decoration:" & strLinkTextDecoration & "}" & vbNewLine & _
		"a:visited {color:" & strVisitedLinkColor & ";text-decoration:" & strVisitedTextDecoration & "}" & vbNewLine & _
		"a:hover   {color:" & strHoverFontColor & ";text-decoration:" & strHoverTextDecoration & "}" & vbNewLine & _
		"a:active  {color:" & strActiveLinkColor & ";text-decoration:" & strActiveTextDecoration & "}" & vbNewLine & _
		".spnMessageText a:link    {color:" & strForumLinkColor & ";text-decoration:" & strForumLinkTextDecoration & "}" & vbNewLine & _
		".spnMessageText a:visited {color:" & strForumVisitedLinkColor & ";text-decoration:" & strForumVisitedTextDecoration & "}" & vbNewLine & _
		".spnMessageText a:hover   {color:" & strForumHoverFontColor & ";text-decoration:" & strForumHoverTextDecoration & "}" & vbNewLine & _
		".spnMessageText a:active  {color:" & strForumActiveLinkColor & ";text-decoration:" & strForumActiveTextDecoration & "}" & vbNewLine & _
		".spnSearchHighlight {background-color:" & strSearchHiLiteColor & "}" & vbNewLine & _
		"input.radio {background:" & strPopUpTableColor & ";color:#000000}" & vbNewLine & _
		"-->" & vbNewLine & _
		"</style>" & vbNewLine & _
<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 23 July 2008 :  16:52:30  Show Profile
CF I have this and it displays singularly ok
"table.quote {width: 98%; border: 0px " & strTableBorderColor & " solid}" & vbNewLine & _
".quotetd {width: 100%; border: 0px DCDCDC solid}" & vbNewLine & _
".quotetd2 {background-color: #F5F5F5 ; width: 100%; border: 1px "& strTableBorderColor &" solid; border-collapse: separate; padding: 0.3em}" & vbNewLine & _
".quotetext {font-family: "& strDefaultFontFace &"; font-size: 7pt}" & vbNewLine & _


its just the nesting issue see testlink hidden area demo/demo
Edit: apols forgot to add links to inc_func_common.asp
and inc_func_posting.asp<

Edited by - Andy Humm on 23 July 2008 16:57:37
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 23 July 2008 :  20:41:52  Show Profile
It would probably be easier to just replace all the old quote code in the database with the new.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 24 July 2008 :  03:10:03  Show Profile
Firstly, rather than downloading the whole db and manually going through to find all the old quote code, is there a way to do this with a dbs update? I have found the problem also exists with double nested quotes whether new/new or old/new style.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 24 July 2008 :  03:41:54  Show Profile
I seem to have sorted the problem by moving the 'quote' tag code into the extratags function and commenting out all the old quote code. Additionally, I have with the thanks to leatherlips's code, change the way the icon displays, altering the source of icon graphic into a strIconQuote and linked to inc_iconfiles.asp
Thank you all..
Andy

fString = doCode(fString, "[quote ]", "[/quote]", "<div align=""center"" id=""quote2""><table class=""quote""><tr><td class=""quotetd""><span class=""quotetext"">" & getCurrentIcon(strIconQuote,"Quote","align=""absmiddle""") & "<b> Quote</b>:</span></td></tr><tr><td class=""quotetd2""><span class=""quotetext"">", "</span></td></tr></table><br></div align=""center"" id=""quote2"">")<

Edited by - Andy Humm on 24 July 2008 03:42:11
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.85 seconds. Powered By: Snitz Forums 2000 Version 3.4.07