Notice: Undefined index: forum in /var/www/sda/6/d/flatboard/spectre/view.php on line 232

Notice: Undefined index: role in /var/www/sda/6/d/flatboard/spectre/view.php on line 235

Notice: Undefined index: trip in /var/www/sda/6/d/flatboard/spectre/view.php on line 235

Notice: Undefined index: title in /var/www/sda/6/d/flatboard/spectre/view.php on line 235

Notice: Undefined index: reply in /var/www/sda/6/d/flatboard/spectre/view.php on line 236

Notice: Undefined index: forum in /var/www/sda/6/d/flatboard/spectre/view.php on line 237
Flatboard - [SOLVED] Increase the number of topic characters
[SOLVED] Increase the number of topic characters
identicon
Alexander Liebrecht
DISCUSSION OF ORIGIN

Alexander Liebrecht Sunday 2nd April 2017, 01:45:55

solved Increase the number of topic characters

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.
DISCUSSION OF ORIGIN
Fred_f8768
Fred#f8768

Administrator

Fred_f8768

See their activity.

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

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 View / Reply Forum
Alexander Liebrecht started solved Quote in Topics not worked 925 / 2 Bug reports
hmmy#84484 started Thread Updates 2.7K / 12 General Questions
Diplo started Page Manager 1.3K / 5 General Questions
started 643 / 0
Top