We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

The 50,000 Symbols Barrier in Blogs. | Forum

Kяuncн Leader
Kяuncн May 16 '13
Yes, at /public_html/ow_core/form_element.php it is set at:
$stringValidator = new StringValidator(0);
        $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 50000 ) ));
Daisy Team
Daisy May 16 '13
You should make the following changes:

 $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 100000 ) ));
dave Leader
dave May 16 '13
Who types a 50,000 char blog anyway... are you writing a book lol... thats plenty for 99.9 percent of the population of earth lol...
Kяuncн Leader
Kяuncн May 17 '13

Quote from dave Who types a 50,000 char blog anyway... are you writing a book lol... thats plenty for 99.9 percent of the population of earth lol...

I have a Fantasy Story section, some stories exceed 500,000 characters...
And not blog,, Forum..
The Forum post is edited by Kяuncн May 17 '13
Kяuncн Leader
Kяuncн May 17 '13

Quote from Daisy You should make the following changes:

 $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 100000 ) ));

I done this,, Failed, tried with a character count of 180660..

Ouch, that's a long text! Try to be a little more compact, under 50000 symbols.
Daisy Team
Daisy May 17 '13
100000  is less than 180660. If you want to add 180660 characters, change this value to 200000.
Kяuncн Leader
Kяuncн May 17 '13
Ouch, that's a long text! Try to be a little more compact, under 50000 symbols. (Still)

        $stringValidator = new StringValidator(0);
        $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 800000 ) ));

at: /home/krunch/public_html/ow_core/form_element.php

Character Count I used for testing this: 411526

re-tried like this w/the same amount of 411526 charactors, and still the same error message,,,

        $stringValidator = new StringValidator(0);
        $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 6800000 ) ));
The Forum post is edited by Kяuncн May 17 '13
dave Leader
dave May 17 '13
 Fantasy Stories :)  i wonder how long it takes to read a 800000  char story at the rate of 30 sec at a time hee hee...
Kяuncн Leader
Kяuncн May 17 '13

Quote from dave  Fantasy Stories :)  i wonder how long it takes to read a 800000  char story at the rate of 30 sec at a time hee hee...

well I'm having to put them in parts, remember when people stay to read, which according to analytics they do do alot of reading at those pages it improves bounce rate ;->

30 seconds?, Not!,,   
The Forum post is edited by Kяuncн May 17 '13
dave Leader
dave May 17 '13
I understand, it was a joke only... i get you... Nice BR :)
Kяuncн Leader
Kяuncн May 17 '13

Quote from dave I understand, it was a joke only... i get you... Nice BR :)

My apologies, temp. loss of humor, too busy being all Nancy over this character count issue LoL,,, It may be best to continue dividing stories in parts..
The Forum post is edited by Kяuncн May 17 '13
Daisy Team
Daisy May 19 '13
Krunch, I've changed the values in the string following way:

$stringValidator = new StringValidator(0, 1000000);
        $stringValidator->setErrorMessage(OW::getLanguage()->text( 'base', 'text_is_too_long', array( 'max_symbols_count' => 1000000 ) ));

Then I've changed the type to longtext value for the ow_blogs_post table

And it works for blogs with no problems.

If you want to make it work in forum. You should make the similar changes for the forum plugin (/ow_plugins/forum/controllers)

Kяuncн Leader
Kяuncн May 20 '13

Quote from Daisy /ow_plugins/forum/controllers
I edited the following:

/public_html/ow_core/form_element.php
/public_html/ow_plugins/forum/controllers/customize.php
/public_html/ow_plugins/forum/controllers/edit_post.php

Test w/A Character Count of: 213790 -BINGO!!!!

Originally the only changes to be made that people were posting was at:

/public_html/ow_core/form_element.php

Much Thanks....
The Forum post is edited by Kяuncн Jun 8 '13
dave Leader
dave May 20 '13
Daisy is queen :)
Daisy Team
Daisy May 20 '13
You are welcome. :)
Roman
Roman Aug 25 '14
circle it   for the blind, I can not find this line.
The Forum post is edited by Roman Aug 25 '14
Attachments:
  form_element.zip (12Kb)
Alia Team
Alia Aug 26 '14
Roman, line #3005 of your file:


Roman
Roman Aug 26 '14

Quote from Aliia Roman, line #3005 of your file:



AЛЯ СПАСИБО , Помогло . а для форума как ?
Pages: « 1 2 3