[SOLVED] Increase the number of topic characters

identicon
solved Increase the number of topic characters
Alexander Liebrecht Sunday 2nd April 2017, 01:45:55

Hello Developers,

I wanted to know how to increase the number of possible characters in the Topic and the Markdown Editor. I had yesterday a page with privacy policy with more than 2000 words create what was then linked in the forum in navigation.

But unfortunately the system shows me that the text in the editor is too long.

How can I change the default values for the text length?

Thanks in advance.
Administrator locked the discussion.

Replies 2
Fred_f8768
Fred#f8768  Sunday 2nd April 2017, 08:11:12

Hi **Alexender**,
To do this you need to modify the **add.php** file and search the function on

if(Util::isGETValidEntry('forum', 'topic'))

And search and modify the number lenght (4000):
HTMLForm::check('content', 1, 4000)

The same for **edit.php**, and search the function on
if(Util::isGETValidEntry('topic', 'topic') && (User::isWorker() || User::isAuthor($_GET['topic'])))

And search and modify the number lenght (4000):
HTMLForm::check('content', 1, 4000)

identicon
Alexander Liebrecht  Sunday 2nd April 2017, 10:13:08

 

Thank you, editing these two files has worked and so it should be suitable for me.