Boofo
03-21-2003, 05:05 AM
The following code does not allow guests to view actual threads (just thread titles). I want to expand this to include some other usergroups. (It's from PPN's guestview thread hack.)
if (!$forum['allowguestpostview'] && !$bbuserinfo['userid']) {
eval("standarderror(\"".gettemplate("error_noguestviewpost")."\");");
exit;
}
Will the following code also not allow users awaiting registration confirmation to view threads as well (or am I missing something or doing something wrong here)?
if (in_array($bbuserinfo['usergroupid'], array(1, 3, 4, 8)) && !$forum['allowguestpostview'] && !$bbuserinfo['userid']) {
eval("standarderror(\"".gettemplate("error_noguestviewpost")."\");");
exit;
}
if (!$forum['allowguestpostview'] && !$bbuserinfo['userid']) {
eval("standarderror(\"".gettemplate("error_noguestviewpost")."\");");
exit;
}
Will the following code also not allow users awaiting registration confirmation to view threads as well (or am I missing something or doing something wrong here)?
if (in_array($bbuserinfo['usergroupid'], array(1, 3, 4, 8)) && !$forum['allowguestpostview'] && !$bbuserinfo['userid']) {
eval("standarderror(\"".gettemplate("error_noguestviewpost")."\");");
exit;
}