Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Sharing a tip: prefront page

Asked Modified Viewed 2,101 times
R
Raedan
R
Raedan 10
Smiles - Raedan
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

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.
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet