Scenario:
"Some URLs are very long and if users post them in a comment on my blog, they sometimes get this "_ERROR_COMMENT_LONGWORD". How do I fix this problem?"
Solution:
This will require a small core hack. Open /nucleus/libs/COMMENTS.php and find the following code:
// don't allow words that are too long if (eregi('[a-zA-Z0-9|\.,;:!\?=\/\\]{90,90}',$comment['body']) != false) return _ERROR_COMMENT_LONGWORD;
90 to the maximum number of characters you want to allow.
Similarly, open /nucleus/libs/ADMIN.php and find this code:
// intercept words that are too long if (eregi("[a-zA-Z0-9|\.,;:!\?=\/\\]{90,90}",$body) != false) $this->error(_ERROR_COMMENT_LONGWORD);
90 to the maximum number of characters you want to allow.
Original forum thread (thanks, PakTrik & ftruscot!):
http://forum.nucleuscms.org/viewtopic.php?t=17939
![]()
Total votes: 1 - Rating: 10.00