Quote:
Originally posted by PSI|Dr-X
Cool hack :knockedout: will install {needed}
Can you please arrange that mod / admins / supermods
can view that forum without having $minposts
|
I attached a new install instruction for that.
Ich habe eine neue Anleitung diesem Post angeh?ngt mit den entsprechenden Instruktionen....
Otherwise here the changes:
Alternativ hier die Ver?nderungen:
file: /forumdisplay.php
replace/ersetze:
PHP Code:
$foruminfo=getforuminfo($thread['forumid']);
// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### BEGIN ###
if($bbuserinfo[posts]<$foruminfo[minposts]) {
eval("standarderror(\"".gettemplate("error_forum_minposts")."\");");
}
// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### END ###
with this/durch dieses:
PHP Code:
$foruminfo=getforuminfo($thread['forumid']);
// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### BEGIN ###
if($bbuserinfo[posts]<$foruminfo[minposts] && $bbuserinfo[usergroupid]!=5 && $bbuserinfo[usergroupid]!=6 && $bbuserinfo[usergroupid]!=7) {
eval("standarderror(\"".gettemplate("error_forum_minposts")."\");");
}
// ### min. post?s to view Forum - Hack by Sinclair (chris@sf-forum.net) ### END ###