I wanted a "prefront" page to my site, actually kinda like the maintenance page, only a bit more friendly. When useers come to my site, they land on this prefront page with the typical login boxes.
If they dont have a proper username/password, they are not allowed in. This worked fine, except because of how setuser.php is designed, people were redirected to index.php and not my prefront.php.
So I added this code to index.php so it worked:
if (iMEMBER || iADMIN || iSUPERADMIN) {
redirect($settings['opening_page']); }
else { redirect("prefront.php"); }
The "iMEMBER || iADMIN || iSUPERADMIN" are set in maincore.php if you dont know.
Lemme know if this doesnt make sense or you need more explaination.