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 DEV-Group
 DEV Bug Reports (Closed)
 post.asp Preview
 Forum Locked  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

kycable
New Member

USA
82 Posts

Posted - 20 February 2001 :  15:29:32  Show Profile  Visit kycable's Homepage  Send kycable an AOL message
I have done a quick search for this... Although I don't know if this has brought to anyones attention. But if you change the color of the text, bold, underline, or add an image then click on the Preview button... You will see the actual HTML instead of the formatting of the post.

I looked in the pop_preview.asp file and noticed this line:

<% =formatStr(chkString(strMessagePreview,"preview")) %>

then I looked in the inc_functions.asp file and noticed there was nothing in the chkString fuction about "preview" so by changing it to:

<% =formatStr(chkString(strMessagePreview,"message")) %>

Allows the preview to work properly. (I checked it here too, it does the samething )



HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  15:37:18  Show Profile  Visit HuwR's Homepage
you're absolutely correct.




Mike,

I changed this in the forum_new code, it seems to work OK, I did wonder why the preview didn't work any more.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  15:42:35  Show Profile
This was discussed here: http://forum.snitz.com/forum/link.asp?TOPIC_ID=4903
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  15:47:56  Show Profile  Visit HuwR's Homepage
it also affect IE as well as netscape as mentioned in the other topic. The fix seems to work. If you look at the forum_new Richard, you can test it

Go to Top of Page

kycable
New Member

USA
82 Posts

Posted - 20 February 2001 :  15:51:35  Show Profile  Visit kycable's Homepage  Send kycable an AOL message
quote:

This was discussed here: http://forum.snitz.com/forum/link.asp?TOPIC_ID=4903



Sorry about that, I only searched the bug forum for this... I should have search the entire forum before I posted ...



Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  16:04:38  Show Profile
The fixed inc_functions.asp that was on the forum before it went down, was just overwritten with a non-fixed (at least for the preview bug) inc_functions.asp. It just hasn't be re-fixed yet.

What fix did you apply? If you changed "preview" to "message" then it really needs to be fixed so the "preview" can be used as it was intended.

Which was to add this:


elseif fField_Type = "preview" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if


below this:


elseif fField_Type = "message" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  16:14:51  Show Profile  Visit HuwR's Homepage
then there is something else wrong, the code already contains those lines in inc_functions, but if you change pop_preview back to "preview" it no longer works correctly if you change it to message it works OK.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  16:19:37  Show Profile  Visit HuwR's Homepage
I think the code you say should be inserted, should actually be removed
at the top of chkString it does


if fField_Type = "title" or _
fField_Type = "preview" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
ChkBadWords(fString)
ChkString = fString
exit function
end if


so if field_type = "preview", it is HTMLencoded twice. where as message is only coded once

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  16:23:03  Show Profile
Is it placed above the docode section or below. If it's below then it needs to be moved above. If you take a look at the inc_functions.asp that is in the latest alpha, you'll see what I mean. It works in that one, just not the one that is currently being used on this forum.

here is a link to the bug report: http://forum.snitz.com/forum/link.asp?TOPIC_ID=3299
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  16:27:42  Show Profile  Visit HuwR's Homepage
the code at forum_new is the alpha code yes?

it does not work there

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  16:27:46  Show Profile
the part with the "title" was added to one of the alphas, and as far as I know, wasn't applied to the support forum yet.
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 20 February 2001 :  16:29:01  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
this was fixed in the alphas right? am I losing my mind?

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  16:29:14  Show Profile  Visit HuwR's Homepage
I realise that, but http://forum.snitz.com/forum_new/ is using the latest alpha code.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  16:33:09  Show Profile
In the very latest alpha,

this:


elseif fField_Type = "preview" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if


should have been replaced by this:


if fField_Type = "title" or _
fField_Type = "preview" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
ChkBadWords(fString)
ChkString = fString
exit function
end if


but right now we are talking about the version that is on the support forum and it didn't have the part about the "title" in it yet.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2001 :  16:36:52  Show Profile  Visit HuwR's Homepage
then I am now confused, both the apha version I have on my machine, and the inc_functions which is at http://forum.snitz.com/forum_new have both these pieces of code. and both do not display the preview correctly.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 February 2001 :  16:41:14  Show Profile
Can someone either e-mail me, or post the inc_functions.asp that is being used on the support forum right now?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07