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
 Help with "Signature Preview" mod...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CoCoBug
Starting Member

1 Posts

Posted - 24 April 2001 :  14:30:20  Show Profile
I found that after I implemented this mod, the "Message Preview" also affected. When I clicked on it, it showed also the signature preview but not the editing message.

I have no idea what to do next, as I'm a newbie on ASP, Javascript things...
Can someone help and tell me how to correct this? Thanks.

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 April 2001 :  16:46:29  Show Profile
So you're saying when you clicked on the "Preview" button to view your message, you see your signature instead?

Try deleting your cookies, restart your browser and try again.

Go to Top of Page

wilbur
Starting Member

2 Posts

Posted - 25 April 2001 :  05:39:56  Show Profile
I am CoCoBug's colleague. Yes it works after I've delete the cookie. But once I clicked the Preview Signature button, and then post a new topic later. I found that the Preview button behave exactly the same as Preview Signature. The problem is not solved.
Go to Top of Page

davevg
Starting Member

12 Posts

Posted - 25 April 2001 :  16:23:58  Show Profile  Send davevg an AOL message
I've noticed the same thing after installing this mod.
Steps to recreate:
1) Try to post to a forum. Click preview. You will see the preview of the post you just entered.
2) Then go to your profile. Create a signature and click preview. You will see the signature preview correct.
3) Go back to post to a forum. Click preview. You will see the signature preview instead of the current message preview.
I'm guessing it has something to do with a cookie being set on the profile page and needs to be set back on the post page to be passed to the preview function. (I could be wrong, I'm a newbie )

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 25 April 2001 :  18:09:23  Show Profile
hmmm, ok just tested it on my site and you're right. I'm looking into it.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 26 April 2001 :  12:17:18  Show Profile
Ok, here's a quick fix for this. In your pop_preview.asp file change this:
<% ' ########## Signature Preview Mod #################
if Request.Cookies("strSignaturePreview") = "" or IsNull(strSignaturePreview) then
strMessagePreview = Request.Cookies("strMessagePreview")
Response.Cookies("strMessagePreview") = ""
if strMessagePreview = "" or IsNull(strMessagePreview) then
if strAllowForumCode = "1" then
' If forum code is on use the forum code
strMessagePreview = "[ center ][ b ]< There is no text to preview ! >[/b][/center]"
else
' If forum code is off use html
strMessagePreview = "<center><b>< There is no text to preview ! ></b></center>"
end if
end if
strPreview = strMessagePreview
else
strSignaturePreview = Request.Cookies("strSignaturePreview")
Response.Cookies("strSignaturePreview") = ""
if strSignaturePreview = "" or IsNull(strSignaturePreview) then
if strAllowForumCode = "1" then
' If forum code is on use the forum code
strSignaturePreview = "[ center ][ b ]< There is no text to preview ! >[/b][/center]"
else
' If forum code is off use html
strSignaturePreview = "<center><b>< There is no text to preview ! ></b></center>"
end if
end if
strPreview = strSignaturePreview
end if
' ######################################################
%>
to this:
<% ' ########## Signature Preview Mod #################
if Request.QueryString("preview") = "sig" then
strSignaturePreview = Request.Cookies("strSignaturePreview")
Response.Cookies("strSignaturePreview") = ""
if strSignaturePreview = "" or IsNull(strSignaturePreview) then
if strAllowForumCode = "1" then
strSignaturePreview = "[ center ][ b ]< There is no text to preview ! >[ /b ][ /center ]"
else
strSignaturePreview = "<center><b>< There is no text to preview ! ></b></center>"
end if
end if
strPreview = strSignaturePreview
else
strMessagePreview = Request.Cookies("strMessagePreview")
Response.Cookies("strMessagePreview") = ""
if strMessagePreview = "" or IsNull(strMessagePreview) then
if strAllowForumCode = "1" then
strMessagePreview = "[ center ][ b ]< There is no text to preview ! >[ /b ][ /center ]"
else
strMessagePreview = "<center><b>< There is no text to preview ! ></b></center>"
end if
end if
strPreview = strMessagePreview
end if
' ######################################################
%>
Make sure to remove the spaces around the [ center ] forum codes. Had to put them in so they wouldn't be converted.

Next change in pop_profile.asp, in the Javascript function:
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=450,height=250')
to this:
popupWin = window.open('pop_preview.asp?preview=sig', 'preview_page', 'scrollbars=yes,width=450,height=250')
If you have anymore problems with it let me know.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 26 April 2001 :  12:25:21  Show Profile
Oh and also in register.asp change this javascript line"
popupWin = window.open('pop_preview.asp', 'preview_page', 'scrollbars=yes,width=450,height=250')
to this:
popupWin = window.open('pop_preview.asp?preview=sig', 'preview_page', 'scrollbars=yes,width=450,height=250')


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.87 seconds. Powered By: Snitz Forums 2000 Version 3.4.07