2 -
@ghroob
I have already made second hack
Open your newthread.php file.
find:
PHP Code:
// $foruminfo=getforuminfo($forumid);
$message = htmlspecialchars($message); // Without this, a </textarea> in the message breaks the form on preview
$subject = htmlspecialchars($subject);
$bbcodeon=iif($foruminfo[allowbbcode],$ontext,$offtext);
$imgcodeon=iif($foruminfo[allowimages],$ontext,$offtext);
$htmlcodeon=iif($foruminfo[allowhtml],$ontext,$offtext);
$smilieson=iif($foruminfo[allowsmilies],$ontext,$offtext);
RIGHT above it, add this:
PHP Code:
// by All-the-vb
$numperposts=40;
if(in_array($foruminfo[forumid],array(2,3,8)) and $bbuserinfo[posts] <$numperposts){
eval("standarderror(\"".gettemplate("error_posttoforum")."\");");
exit ;
}
// by All-the-vb
Open your newreply.php file.
find:
PHP Code:
eval("dooutput(\"".gettemplate("newreply")."\");");
}
RIGHT above it, add this:
PHP Code:
// by All-the-vb
$numperposts=40;
if(in_array($foruminfo[forumid],array(2,3,8)) and $bbuserinfo[posts] <$numperposts){
eval("standarderror(\"".gettemplate("error_posttoforum")."\");");
exit ;
}
// by All-the-vb
==Add new template
name : error_posttoforum
Sorry, You need $numperposts posts to have insert new thread/post in this forum!
that's all
Good luck.