P.S. Anyone figure out how to only show the quick reply box for users who are logged in? (And not for unregistered users who are also allowed to post as guests... only for people who are logged in?)
(Forgive me because I am still
very weak at PHP)...
Looking at the other posts in this forum I see this code:
Code:
if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
$replybox='';
} else {
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
Is something like this all I need to do to
not show the quick reply box to Unregistered Users (who do have permission to post, but I still want to encourage them to register and thus don't want to make it
too easy to post as a guest.) Would I just enter the usergroupid for Unregistered in the array?
Or shoud I use this which I also see up in the thread:
Code:
if (($bbuserinfo['usergroupid']=="5") or ($bbuserinfo['usergroupid']=="6")) {
/*if (!$getperms['canviewothers'] and $thread
['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}
if (($bbuserinfo['userid']!=$thread['postuserid']) and
(!$getperms['canviewothers'] or !$getperms
['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {*/
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}
$textareacols = gettextareawidth();
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
} else {
$replybox=''
};
If one of the PHP experts could come up with the definitive code to use to not show the quick reply to guests (Unregistered Group who do have permission to post) I would
really appreciate it.