Author |
Topic  |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 23 July 2008 : 13:54:20
|
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
|
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.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 23 July 2008 : 14:34:41
|
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
And this is what I have for inc_func_common.asp
< |
Edited by - Andy Humm on 23 July 2008 14:37:12 |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 23 July 2008 : 14:49:28
|
You cannot change the command in Func_Posting without adding a duplicate of the quote tags (renamed to quotenew) in Func_Common.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 23 July 2008 : 15:26:30
|
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< |
 |
|
Carefree
Advanced Member
    
Philippines
4222 Posts |
Posted - 23 July 2008 : 16:19:44
|
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":
< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 23 July 2008 : 16:52:30
|
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 |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 23 July 2008 : 20:41:52
|
It would probably be easier to just replace all the old quote code in the database with the new.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 24 July 2008 : 03:10:03
|
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.< |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 24 July 2008 : 03:41:54
|
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 |
 |
|
|
Topic  |
|
|
|