[cBB Blockgets] The limit in Empty Block ?


User avatar
Mathieu M.
 
Posts: 45
Joined: Mon Oct 15, 2012 11:55 am
 Tue Dec 11, 2012 1:00 pm • via Web
Hello,

Well, I didn't know where to open this topic... but why does cBB Blockgets limit text characters in Empty Block ?

Actually it's 4000 characters, it could not be enough in some case Is it possible to just modify this value in empty_block.php ?

Code: Select all
$new['block_content'] = html_truncate($new['block_content'], 4000, '', true);


In a next release of the MOD, could it be possible to get an option to enable/disable this limit ?


Thanks
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Tue Dec 11, 2012 1:49 pm • via Android
Disable the limit isnt possible.
you can set a new limit but, i think that an upper limit maybe cause problems when you save the block configuration.
Try to set it. 5000 or 6000 must be runs well
User avatar
Mathieu M.
 
Posts: 45
Joined: Mon Oct 15, 2012 11:55 am
 Thu Dec 13, 2012 9:30 am • via Web
Admin wrote:you can set a new limit but, i think that an upper limit maybe cause problems when you save the block configuration.


What kind of problem do you mean for example ?

6000 characters is not high enough for me in some cases... Well, I know it's always possible to add 5 Empty block to these pages to solve the problem by the way, but it's not confortable


Thanks.
User avatar
IvanPF
Administrator
 
Posts: 2010
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Thu Dec 13, 2012 9:55 am • via Android
The only problem that can be appears is a sql error when you save the block if the limit is too long.
you can try and if your limit produces the error, set other limit.
User avatar
Mathieu M.
 
Posts: 45
Joined: Mon Oct 15, 2012 11:55 am
 Thu Dec 13, 2012 1:11 pm • via Web
OK, I'll test it.

Thanks

Who is online

Users browsing this forum: No registered users and 0 guests