The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
idea from --> http://forum.snitz.com/forum/topic.asp?TOPIC_ID=55547
in this mod you can edit the maximal height from the signature anything that is higher will be hidden
__________________________________________________
to install:
go to admin pannel and add this to the database:
open the config.asp and ad this:
search --> Dim strSignatures, strDSignatures,
replase --> Dim strSignatures, strDSignatures, strSIGMaxHeight, search --> strDSignatures = Application(strCookieURL & "STRDSIGNATURES")
add below --> strSIGMaxHeight = Application(strCookieURL & "STRSIGMAXHEIGHT")
open admin_config_features.asp and ad:
(you may modificate it because i speak german!)
ad after --> Err_Msg = ""
if Request.Form("strSIGMaxHeight") = "" then
Err_Msg = Err_Msg & "max. Signaturhöhe fehlt<br>"
elseif IsNumeric(Request.Form("strSIGMaxHeight")) = False then
Err_Msg = Err_Msg & "max. Signaturhöhe muß eine Nummer sein<br>"
elseif cLng(Request.Form("strSIGMaxHeight")) = 0 then
Err_Msg = Err_Msg & "max. Signaturhöhe darf <FONT class=font4>nicht 0</FONT> sein<br>"
end if
add after the allow signature option (in the middle of the page):
(You may modificate it because i have a other design of the page!)
<TR>
<TD><FONT class="font1">Max. Signaturen Höhe:</FONT></TD>
<TD colspan=2><FONT class="font0"><input type="text" name="strSIGMaxHeight" size="3" maxLength="3" value="<% = chkExistElse(strSIGMaxHeight,65) %>"> Pixel</FONT></TD>
</TR>
and at last open topic.asp:
search --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & formatStr(Reply_MemberSig) & "</span></font></td>" & vbNewLine & _
replace --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><div style=""max-height: " & strSIGMaxHeight & "px; height: expression( this.scrollHeight > " & strSIGMaxHeight & "? '" & strSIGMaxHeight & "px' : 'auto' ); overflow:hidden;""><span class=""spnMessageText"">" & formatStr(Reply_MemberSig) & "</span></div></font></td>" & vbNewLine & _
search --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><span class=""spnMessageText"">" & formatStr(Topic_MemberSig) & "</span></div></font></td>" & vbNewLine & _
replace --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><div style=""max-height: " & strSIGMaxHeight & "px; height: expression( this.scrollHeight > " & strSIGMaxHeight & "? '" & strSIGMaxHeight & "px' : 'auto' ); overflow:hidden;""><span class=""spnMessageText"">" & formatStr(Topic_MemberSig) & "</span></div></font></td>" & vbNewLine & _
this code work with netscape, mozilla, and with IE :-)
it is a little script... and can be modificated too...<
in this mod you can edit the maximal height from the signature anything that is higher will be hidden
__________________________________________________
to install:
go to admin pannel and add this to the database:
Code:
[INSERT]
CONFIG_NEW
(C_VARIABLE, C_VALUE)#('STRSIGMAXHEIGHT', 65)
[END]
open the config.asp and ad this:
search --> Dim strSignatures, strDSignatures,
replase --> Dim strSignatures, strDSignatures, strSIGMaxHeight, search --> strDSignatures = Application(strCookieURL & "STRDSIGNATURES")
add below --> strSIGMaxHeight = Application(strCookieURL & "STRSIGMAXHEIGHT")
open admin_config_features.asp and ad:
(you may modificate it because i speak german!)
ad after --> Err_Msg = ""
if Request.Form("strSIGMaxHeight") = "" then
Err_Msg = Err_Msg & "max. Signaturhöhe fehlt<br>"
elseif IsNumeric(Request.Form("strSIGMaxHeight")) = False then
Err_Msg = Err_Msg & "max. Signaturhöhe muß eine Nummer sein<br>"
elseif cLng(Request.Form("strSIGMaxHeight")) = 0 then
Err_Msg = Err_Msg & "max. Signaturhöhe darf <FONT class=font4>nicht 0</FONT> sein<br>"
end if
add after the allow signature option (in the middle of the page):
(You may modificate it because i have a other design of the page!)
<TR>
<TD><FONT class="font1">Max. Signaturen Höhe:</FONT></TD>
<TD colspan=2><FONT class="font0"><input type="text" name="strSIGMaxHeight" size="3" maxLength="3" value="<% = chkExistElse(strSIGMaxHeight,65) %>"> Pixel</FONT></TD>
</TR>
and at last open topic.asp:
search --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & formatStr(Reply_MemberSig) & "</span></font></td>" & vbNewLine & _
replace --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><div style=""max-height: " & strSIGMaxHeight & "px; height: expression( this.scrollHeight > " & strSIGMaxHeight & "? '" & strSIGMaxHeight & "px' : 'auto' ); overflow:hidden;""><span class=""spnMessageText"">" & formatStr(Reply_MemberSig) & "</span></div></font></td>" & vbNewLine & _
search --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><span class=""spnMessageText"">" & formatStr(Topic_MemberSig) & "</span></div></font></td>" & vbNewLine & _
replace --> <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><div style=""max-height: " & strSIGMaxHeight & "px; height: expression( this.scrollHeight > " & strSIGMaxHeight & "? '" & strSIGMaxHeight & "px' : 'auto' ); overflow:hidden;""><span class=""spnMessageText"">" & formatStr(Topic_MemberSig) & "</span></div></font></td>" & vbNewLine & _
this code work with netscape, mozilla, and with IE :-)
it is a little script... and can be modificated too...<
Places2ride.com