Author |
Topic  |
|
samyot
Junior Member
 
Canada
242 Posts |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 09 July 2001 : 10:52:06
|
The problem seems to be with 'admin' posts that contain forum code. The opening <blockquote> tag is not converted to [quote] when you click on 'Reply with Quote'
Please let me know if you need to see any of my files. Thanks.....
Sylvain Amyot http://syltek.dingojunction.com/forum
Edited by - samyot on 09 July 2001 13:45:30 |
 |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 09 July 2001 : 14:40:48
|
I found the problem !
When I installed the New Colour template MOD it entered 'Verdana,Arial,Helvetica' for strDefaultFontFace.
All my default users have an entry of 'Verdana, Arial, Helvetica' for strDefaultFontFace (with spaces after the comma). My 'Admin' account uses a new theme from this MOD.
When you hit 'Reply with Quote' from an 'Admin' post, the <blockquote> doesn't get converted to [quote] because of this.
Sylvain Amyot http://syltek.dingojunction.com/forum
|
 |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 09 July 2001 : 15:04:19
|
Now I have the same problem with with the closing [/quote] because my font size by default is 1 and for my admin theme it is 2.
Is there a way to modify the code in inc_function.asp to ignore the entry for strDefaultFontFace and strDefaultFontSize (like a wild card) ?
Sylvain Amyot http://syltek.dingojunction.com/forum
|
 |
|
samyot
Junior Member
 
Canada
242 Posts |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 10 July 2001 : 10:26:23
|
I'm not quite sure what your problem is. When you quote the admins post, it will show up as html?
- David |
 |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 10 July 2001 : 10:55:40
|
yes only for the quote tag. In inc_functions.asp around line 290) the <blockquote> tag taken from the 'r_message' field of the 'forum_reply' table is converted to (quote) by replacing this string. This happens during the 'Reply with quote' options. The bolded values are different depending on the template the members use and therefore isn't always equal to this and displays the <blockquote> html tag instead.
fString = replace(fString, "<BLOCKQUOTE id=quote><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>quote:<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)
Is it possible to use wildcards here ?
Sylvain Amyot http://syltek.dingojunction.com/forum
Sylvain Amyot http://syltek.dingojunction.com/forum
|
 |
|
samyot
Junior Member
 
Canada
242 Posts |
|
samyot
Junior Member
 
Canada
242 Posts |
Posted - 10 July 2001 : 15:41:35
|
I temporarily fixed this bug by changing the C_STRDEFAULTFONTFACE and C_STRDEFAULTFONTSIZE entries in the forum_colours table to be all the same and edited all message containing <quote> tags to reflect these changes. (C_STRHEADERFONTSIZE & C_STRFOOTERFONTSIZE were already all the same.)
The problem still exists but at least now if a member 'replies with post' and there is already a quote in the message, the page will come up ok.

Sylvain Amyot http://syltek.dingojunction.com/forum
Edited by - samyot on 10 July 2001 15:44:46 |
 |
|
|
Topic  |
|