When folks register to my site, they have to go through an approval process by me before I Will allow them to post. I Also have it setup when they register, and they are in the "Awaiting E-Mail COnfirmation" group, they receive a special message stating they need to activate their account before they can post, etc. How would I go abouts optimizing this query instead of having three different ones in one pop? Anyone who is able to help is greatly appreciated!
PHP Code:
$forumbits=makeforumbit(intval($forumid), 1, $permissions);
$unregwelcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
}
$nonactivatedmessage='';
if ($bbuserinfo['usergroupid']==3) {
eval("\$nonactivatedmessage = \"".gettemplate('awaitconfmessage')."\";");
}
$activatedwaitingapproval='';
if ($bbuserinfo['usergroupid']==4) {
eval("\$activatedwaitingapproval = \"".gettemplate('awtngadmapprvl')."\";");
}
eval("dooutput(\"".gettemplate('forumhome')."\");");
?>