Posted on: 02/26/06 06:08am
By: Anonymous (Bison)
1) What is the maximum number of words allowed in "Comments" ? Where can I change this value ?
2) What is the number of comments per page by default ? Where can I change this value ? Can this be paginated like forum ?
3) How can I convert links or emails to a short form http...something in case they are too long to break the comments table design?
Important questions on "Comments"
Posted on: 02/26/06 02:09pm
By: Dirk
The max. size of a comment depends on several factors, but the first limit you're probably going to run into is that imposed by the data type used in the database, which is TEXT and limited to 65000 characters. You could change that to LONGTEXT, which gives you 4GB in theory, but your browser and/or webserver will probably throw a fit much earlier.
There's a $_CONF['comment_limit'] in config.php, which defaults to 100 and I think if you have more than that number of comments, it starts paginating. Never tested that myself, I have to admit ...
As for your last question: Use HTML instead of posting URLs in plain text mode - then you have full control over how long those links get.
bye, Dirk
Important questions on "Comments"
Posted on: 02/27/06 09:55am
By: Anonymous (Bison)
Thanks Dirk
I meant how to limit the words in comment eg an user at a time not more than 1000 or say, 5000 words. Is that possible via the config.php ?
Important questions on "Comments"
Posted on: 02/27/06 10:08am
By: Robin
[QUOTE BY= Bison]I meant how to limit the words in comment eg an user at a time not more than 1000 or say, 5000 words. Is that possible via the config.php ?[/QUOTE]
I don't think you can manage it via config.php however this can be easily achieved via implementing a simple javascript that will monitor the desired number of chars and notify users that the limit has been reached.
Important questions on "Comments"
Posted on: 02/28/06 10:12am
By: Anonymous (Bison)
Thanks Robin.
yes the js option is there but in browsers like opera ff it is easily turned off ........ a php solution will be welcome