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 MOD-Group
 MOD Add-On Forum (W/Code)
 Modification in Signature Preview Mod by Davio
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

John Bour
Starting Member

30 Posts

Posted - 27 June 2002 :  16:08:58  Show Profile
First, the French version of the 2 lignes for Internationalization :

strLangModDavioSP00010 = "Prévisualiser la Signature"
strLangModDavioSP00020 = "Il n'y a pas de signature à visualiser !"

And I needed to modifie the pop_preview.asp page because I got nothing on the screen althought datas where transfered between pages.
So, complete code of this page :

<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<%' ########## Start 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
' If forum code is on use the forum code
strSignaturePreview = "
< " & fLang(strLangModDavioSP00020) & " >
"
else
' If forum code is off use html
strSignaturePreview = "<center><b>< " & fLang(strLangModDavioSP00020) & " ></b></center>"
end if
end if
strMessagePreview = strSignaturePreview
else
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 = "
" & fLang(strLangPop_Preview00010) & "
"
else
' If forum code is off use html
strMessagePreview = "<center><b>" & fLang(strLangPop_Preview00010) & "</b></center>"
end if
end if
end if
%>
<%' ########## End Signature Preview Mod ################# %>
<!--#INCLUDE FILE="inc_top_short.asp"-->
<script language="JavaScript">
function submitPreview()
{
document.previewTopic.message.value = window.opener.document.PostTopic.Message.value;
document.previewTopic.submit()
}
</script>
<%
if request("mode") = "" then %>
<form action="pop_preview.asp" method="post" name="previewTopic">
<input type="hidden" name="message" value="">
<input type="hidden" name="mode" value="display">
</form>
<script language="JavaScript">submitPreview();</script>
<%
else
strMessagePreview = Request.Form("message")
if strMessagePreview = "" or IsNull(strMessagePreview) then
strMessagePreview = "
" & fLang(strLangPop_Preview00010) & "
"
end if
end if
%>
<table border="0" width="100%" height="80%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="<% =strTableBorderColor %>">
<table border="0" width="100%" height="100%" cellspacing="1" cellpadding="4">
<tr>
<td align="center" bgcolor="<% =strHeadCellColor %>" width="<% =strTopicWidthRight %>" height="20" <% if lcase(strTopicNoWrapRight) = "1" then Response.Write(" nowrap") %>><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>"><% =fLang(strLangPop_Preview00020) %></font></b></td>
</tr>
<tr>
<td bgcolor="<% =strForumCellColor %>" valign="top">
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =formatStr(chkString(strMessagePreview,"preview")) %></font>
</tr>
</table>
</td>
</tr>
</table>
</div>

<!--#INCLUDE FILE="inc_footer_short.asp" -->

Yop

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