Author |
Topic |
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 04:58:01
|
I've been playing with my [ code ] and [ quote ] functions in inc_functions, and I've got them working well. I changed them to tables rather than the typical quote and code. anyway, when i go to edit the posts that these quotes and codes appear in, it all appears as HTML. I'm pretty sure I've double checked all the coding. I don't think I've missed anything, but i'll check again and psot here if I find it. Thanks
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 22 July 2002 : 05:01:32
|
quote:
when i go to edit the posts that these quotes and codes appear in, it all appears as HTML. I'm pretty sure I've double checked all the coding. I don't think I've missed anything, but i'll check again and psot here if I find it. Thanks
Well, obviously you did miss something, other wise you would have code and quote tags while editing. Make sure that in both places where the replaces are done, that the code matches exactly
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 22 July 2002 : 05:01:46
|
did you edit both functions?
You need to edit in both the CleanCode function and in the chkString function. |
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 05:20:36
|
Yes, I have edited both functions. Here's what I have in both (for quote and code): CleanCode:
fString = replace(fString, "<br><div align=center><table id=quote cellpadding=3 cellspacing=1 bgcolor=#000000 width=""90%""><tr bgcolor=#666666><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>Quote:</font id=quote></td></tr><tr bgcolor=#999999><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>","[ quote]", 1, -1, 1) fString = replace(fString, "</font id=quote></td></tr></table id=quote></div><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & " id=quote>","[ /quote]", 1, -1, 1) fString = replace(fString, "<br><div align=center><table id=code cellpadding=3 cellspacing=1 bgcolor=#000000 width=""90%""><tr bgcolor=#666666><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=code>Code:</font id=code></td></tr><tr bgcolor=#CCCCCC><td><pre id=code><font face=courier size=" & strDefaultFontSize & " id=code>","[ code]", 1, -1, 1) fString = replace(fString, "</font id=code></pre id=code></td></tr></table id=code></div><br>","[ /code]", 1, -1, 1)
chkString:
fString = doCode(fString, "[ code]", "[ /code]", "<br><div align=center><table id=code cellpadding=3 cellspacing=1 bgcolor=#000000 width=""90%""><tr bgcolor=#666666><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=code>Code:</font id=code></td></tr><tr bgcolor=#CCCCCC><td><pre id=code><font face=courier size=" & strDefaultFontSize & " id=code>", "</font id=code></pre id=code></td></tr></table id=code></div><br>") fString = doCode(fString, "[ quote]", "[ /quote]", "<br><div align=center><table id=quote cellpadding=3 cellspacing=1 bgcolor=#000000 width=""90%""><tr bgcolor=#666666><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>Quote:</font id=quote></td></tr><tr bgcolor=#999999><td><font size=" & strFooterFontSize & " face=""" & strDefaultFontFace & """ id=quote>", "</font id=quote></td></tr></table id=quote></div><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & " id=quote>")
*edit* Note: I did add spaces between the bracket and the word "quote" in the above, (ie [ quote] and [ /quote] do NOT have those spaces in the actual file. */edit*
Edited by - es4725 on 22 July 2002 05:21:19 |
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 13:15:00
|
I was messing with it a little more earlier, and [ /quote] is the only one that shows up correctly when editing.
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 22 July 2002 : 13:21:49
|
In your code above try changing all instances of:
" & strDefaultFontSize & "
to:
""" & strDefaultFontSize & """
and all instances of:
" & strFooterFontSize & "
to:
""" & strFooterFontSize & """ |
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 13:32:07
|
alrighty, I'll let you know
|
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 16:09:43
|
I tried it. I'm still getting the same effect though. any clue?
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 22 July 2002 : 19:22:41
|
since the coding has changed, did you try creating a new post? I used the same code you have above and changed the """ like I showed above (and rearranged the font tags so that face is before size), and it worked just fine.
|
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 21:01:41
|
yeah, I've made several new posts after checking and rechecking. I'll do the switch with face and size as you said, and I'll let you know what happens with that. Thanks again Richard.
|
|
|
es4725
Junior Member
205 Posts |
Posted - 22 July 2002 : 21:26:24
|
hmm... it's still not working correctly... I don't understand it.
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 22 July 2002 : 22:38:51
|
can you e-mail me your inc_functions.asp file?
just e-mail it to: richard_kinser@yahoo.com
I'll test it on my test forum and see if I get the same results. |
|
|
es4725
Junior Member
205 Posts |
Posted - 23 July 2002 : 01:38:18
|
quote:
can you e-mail me your inc_functions.asp file?
just e-mail it to: ***
I'll test it on my test forum and see if I get the same results.
Sending it out now... feel free to edit out your e-mail address. Thanks again Richard
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 23 July 2002 : 01:49:28
|
I already get so much SPAM and Virus-laden e-mails to that e-mail address, I don't worry about it anymore. |
|
|
es4725
Junior Member
205 Posts |
Posted - 23 July 2002 : 02:01:26
|
quote:
I already get so much SPAM and Virus-laden e-mails to that e-mail address, I don't worry about it anymore.
haha, alrighty, just looking out for ya. Thanks again.
|
|
|
es4725
Junior Member
205 Posts |
Posted - 23 July 2002 : 03:11:41
|
what can I say richard? you're great. Thanks again man.
|
|
|
|
Topic |
|