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.
Here is a very quick MOD for those of you who use the Private Message MOD.
This is a quick fix to limit the amount of messages that can be sent in one session. I used it because I found that I had members SPAMMING other members.
In privatesend.asp, look for this around line 199 -
" <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" value=""Send Message""> <input name=""Preview"" type=""button"" value=""Preview"" onclick=""OpenPreview()""> <input name=""Reset"" type=""reset"" value=""Reset Fields""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
and replace with this -
" <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewLine
Session("pmlimit") = Session("pmlimit") + 1
if Session("pmlimit") < 5 then
Response.Write " <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" value=""Send Message""> <input name=""Preview"" type=""button"" value=""Preview"" onclick=""OpenPreview()""> <input name=""Reset"" type=""reset"" value=""Reset Fields""></td>" & vbNewLine
else
Response.Write " <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" disabled=""disabled"" value=""You have sent too many messages in one session""></td>" & vbNewLine
end if
Response.Write " </tr>" & vbNewLine & _
To change you maximum limit, change the number in this line
if Session("pmlimit") < 5 then
Worked great for me, hope this does for you.
<
This is a quick fix to limit the amount of messages that can be sent in one session. I used it because I found that I had members SPAMMING other members.
In privatesend.asp, look for this around line 199 -
" <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" value=""Send Message""> <input name=""Preview"" type=""button"" value=""Preview"" onclick=""OpenPreview()""> <input name=""Reset"" type=""reset"" value=""Reset Fields""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
and replace with this -
" <td bgColor=""" & strPopUpTableColor & """> </td>" & vbNewLine
Session("pmlimit") = Session("pmlimit") + 1
if Session("pmlimit") < 5 then
Response.Write " <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" value=""Send Message""> <input name=""Preview"" type=""button"" value=""Preview"" onclick=""OpenPreview()""> <input name=""Reset"" type=""reset"" value=""Reset Fields""></td>" & vbNewLine
else
Response.Write " <td bgColor=""" & strPopUpTableColor & """><input name=""Submit"" type=""submit"" disabled=""disabled"" value=""You have sent too many messages in one session""></td>" & vbNewLine
end if
Response.Write " </tr>" & vbNewLine & _
To change you maximum limit, change the number in this line
if Session("pmlimit") < 5 then
Worked great for me, hope this does for you.
<