TECK
05-04-2002, 11:20 PM
this is the code found in forumdisplay.php:if ($foruminfo['allowposting']==1) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}i want to relate it to the actual forum perms. here it is what i tried:if ($foruminfo['allowposting']==1 and $forumperms['canpostnew']) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}the problem is that the forum perms are unset at that level, in if ($foruminfo['cancontainthreads']==1) {, where is set the $newthreadlink variable.
any way arround it? i dont want to relate it to bbuserinfo. i was thinking of creating a new field called allowarticles but there is a new problem. i cannot find any reference to allowposting settings in CP files. let me know please where is related the option (allowposting field) in CP. thanks.
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}i want to relate it to the actual forum perms. here it is what i tried:if ($foruminfo['allowposting']==1 and $forumperms['canpostnew']) {
eval("\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}the problem is that the forum perms are unset at that level, in if ($foruminfo['cancontainthreads']==1) {, where is set the $newthreadlink variable.
any way arround it? i dont want to relate it to bbuserinfo. i was thinking of creating a new field called allowarticles but there is a new problem. i cannot find any reference to allowposting settings in CP files. let me know please where is related the option (allowposting field) in CP. thanks.