Signature Limit Mod - Posted (4247 Views)
New Member
Sonic
Posts: 82
82
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:

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...<
ich finds genial... bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag smile
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
mra
Posts: 4
4
Any chance someone could show me where the following code goes in admin_config_features?
<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>

cheers,
Matt<
Posted
New Member
Sonic
Posts: 82
82
"
%>

<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>
<%
Response.Write "
<
ich finds genial... bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag smile
Posted
New Member
maduko
Posts: 58
58
I would like to restrict the signature from showing more than once in a thread. Other boards use this approach and it seems like a good idea.<
Posted
Member Locked
laser
Posts: 3859
3859
Interesting concept maduko, I've never seen it used though.
Do you really mean once per thread, or once per page - where a thread can have multiple pages ?<
You Must enter a message