MyBB Community Forums

Full Version: Minimum text length in PM?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,
is there any way how to set minimum text length for PMs? Thank you very much!
There doesn't seem to be, not through the ACP anyways. I haven't found any plugins for this either.
Hey Eldenroot. Best solution I can come up for this is--

Go to AdminCP > Templates & Styles > Templates > Your Theme > Private Messaging Templates > private_send

In the template go to your message text area
<textarea name="message"

and add the following in that tag
minlength="30"

The result will give the sender an error stating to lengthen the text. Change the 30 number to your desired minimum amount. Also add the minlength code to your private_quickreply template as well.

[Image: 7d3948777ef1f6464028bba331b957de.gif]
Thank you! Rep added. Would be better to make an option in ACP
It is not working for me somehow (does it affect admins?)
(2017-04-11, 05:29 PM)Eldenroot Wrote: [ -> ]It is not working for me somehow (does it affect admins?)

It should affect all usergroups, link your forum and I'll check it out
Ya this has no affect on usergroups, works for all. Did you add it to both your private quickreply and send templates?
Yes I did. Maybe it is because I use Rin editor
(2017-04-12, 03:32 PM)Eldenroot Wrote: [ -> ]Yes I did. Maybe it is because I use Rin editor

It could be. Try disabling Rin editor and test it. If it's working without Rin editor but you want to keep Rin (which I assume) then we'll find another solution I guess.
OK, I will try tomorrow with SCeditor and let you know... it is really weird
Pages: 1 2