Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Validate length error
Eathuis
✭
How do I get rid of the "Validate Length" error that pops up when I exceed the body of the forum?
0
Comments
I just need to know where I can locate the file to change it, I have been looking through the global.js file and I can't find it.
I am sorry for triple posting...but I have narrowed it down to the "CLEditor jQuery WYSIWYG" and I don't know what to do from there...I have looked through 1000+ lines of code and I have a headache!
Post as long as you get an answer - that's my opinion!
1. What do you want to achieve? If you just want the red box to disappear it might be possible to edit some css (although I doubt it).
2. What have you exactly found out by now? (Files, functions and so on)
I have been looking at the source code and found a
ValidateLength
function here:library/core/functions.validation.php
and some CLEditor related css there:plugins/cleditor/design/jquery.cleditor.css
But by now I have not seen anything. CLEditor doesn't seem to validate the length - neither during nor after writing a post. Do you get the message while writing, previewing or before sending? It looks as it appears while you are writing a discussion.
I'd recommend you start at the save function of the discussion model
applications/vanilla/models/class.discussionmodel.php
. So the little box you're seeing seems to be the result of a Vanilla form validation. Remember the core function ValidateLength? Seems to be related. The save function uses a config valueConfig('Vanilla.Comment.MaxLength')
that in my config files does not exist. So the validation wouldn't be made in my test installation. Do you have a line like$Configuration['Vanilla']['Comment']['MaxLength'] = ...
in yourconf/config.php
orconf/config-defaults.php
files?By the way: please specify the version you are using and in this case also the theme
To my shame I know what it was, and in all my years of web development I never have felt so stupid I realised it was spam filter...sigh yeah my friggin' spam filter.
Additional: I only triple posted because I went over 15 minutes and couldn't edit my previous comments.
At least you do not have to feel dumb that you couldn't figure it out by looking at the source code