Not perfect, but will work.
Open newthread.php, find:
PHP Code:
// check max images
if ($maximages!=0) {
$parsedmessage=bbcodeparse($message,$forumid,$allowsmilie);
if (countchar($parsedmessage,"<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}
Below, add:
PHP Code:
if(strstr($message,'[img]')) {
eval("standarderror(\"".gettemplate("error_noimagesnewreply")."\");");
exit;
}
if(strstr($message,'[IMG]')) {
eval("standarderror(\"".gettemplate("error_noimagesnewreply")."\");");
exit;
}
Then, ADD a template called "error_noimagesnewreply" with this content:
Code:
You cannot use the [img] code with a new thread!
That would work.