[SOLVED] Increase the number of topic characters

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.

Alexander Liebrecht locked the discussion.

Replies 2
Fred
Fred  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)
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

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.

Suggested Topics
34.4K 5
Fred
29.7K 11
22.7K 1
spongebob
spongebob@b8500609 started Alright Pinhead, your time is UP!
Open Bar
19.1K 0
Want to read more? Browse all categories or view latest topics.