View Full Version : need xx posts to reply to a thread
bonnmac
08-26-2002, 10:45 PM
I'd love it if someone could tell me how to do this...Something similar to this hack only for replying not starting a new thread.... https://vborg.vbsupport.ru/showthread.php?s=&threadid=41438
I want to add an advice column forum to board but want people to have a certain amount of posts to reply....
Any ideas would be appreciated.....
g-force2k2
08-26-2002, 11:17 PM
in newreply.php
find:
if ($action=="newreply") {
under it add:
if(($foruminfo[forumid] == XX) AND ($bbuserinfo[posts] < YY)) {
eval("standarderror(\"".gettemplate("error_columnforum")."\");");
exit;
}
then create a new template called ::
error_columnforum
put the error you want to show in that template...
replace XX as the forumid of the forum that you make the column forum and YY as the minimium amount of posts before they can reply in that forum ;) regards and hope that helps :)
g-force2k2
bonnmac
08-27-2002, 12:08 AM
Thanks g-force2k2!
But I'm afraid that doesn't work.... :( It still allows replying even without having the correct amount of posts....
g-force2k2
08-27-2002, 12:38 AM
my bad... instead find this code:
(second appearance)
$foruminfo=getforuminfo($threadinfo[forumid]);
and under it add my coding my bad :)
g-force2k2
bonnmac
08-27-2002, 12:44 AM
Thanks again! That works :)
g-force2k2
08-27-2002, 12:58 AM
np bonnmac i just lost my head for a few minutes and wasn't thinking :) glad that it works... regards...
g-force2k2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.