Add 'Comments Maximum Length' to System Configuration!

Post your suggestions for the script here.

Add 'Comments Maximum Length' to System Configuration!

Postby DarkSlim » Tue Nov 10, 2009 5:48 pm

If know or not, there is a variable called "$comment_max_long" which controls over
what is the maximum number of characters that can be in a comment.
May be also usefull to prevent looong spam comments!
You can enter it in every include - or! as how I'm gonna show you, add it to
your System Configuration menu! yay :D

Open inc/lang/yourlang/syscon.ini

Add in the END of it:
Code: Select all
comment_max_long_title = "Comments maximum length:"
comment_max_long_description = "The maximum length of characters can be used in comments."


Open inc/mod/syscon.mdu

Find:
Code: Select all
showRow($echo['allow_url_instead_mail_title'], $echo['allow_url_instead_mail_description'], makeDropDown(array('yes' => $echo['sayYes'], 'no' => $echo['sayNo']), 'save_con[allow_url_instead_mail]', $config_allow_url_instead_mail));


After Add:
Code: Select all
showRow($echo['comment_max_long_title'], $echo['comment_max_long_description'], '<input type="text" name="save_con[comment_max_long]" value="'.$config_comment_max_long.'" size="10">');


That's it, save all, upload, and check it out in your system config!
Hope it helps :),

DarkSlim
User avatar
DarkSlim
 
Posts: 298
Joined: Thu Aug 06, 2009 4:18 pm
Location: IL

Postby Torstein » Tue Nov 10, 2009 6:10 pm

Nice, keep the snippets coming! 8)
Torstein
 
Posts: 292
Joined: Thu Aug 03, 2006 11:19 pm


Return to Suggestions



Who is online

Users browsing this forum: No registered users and 0 guests

cron