I found what is causing the sign_in page to directly go to the members area.
In one of the files, this is there:
if($current_page == sign_in && $logged_in)
{
$current_page = members_area;
}
So what I did is fix the other pages to this:
if($current_page == sign_in && $logged_in)
{
$current_page = members_area;
}
else if($current_page == register && $logged_in)
{
$current_page = members_area;
}
else if($current_page == search && $logged_in)
{
$current_page = members_area;
}
else if($current_page == faq && $logged_in)
{
$current_page = members_area;
}
else if($current_page == support & $logged_in)
{
$current_page = members_area;
}
But now what was happening is that no matter what link you click on the top, EVERYTHING REDIRECTED TO THE MEMBERS PAGE!!!!
Is there a way I can make it so just the INITIAL log in goes to the members area and nothing else?
I know the login form uses this:
index.php?action=login
But I cannot add 'index.php?action=login' into the code above, because it gives an error.
wont work:
if($current_page == index.php?action=login && $logged_in)
{
$current_page = members_area;
}
But there must be a way I can use index.php?action=login to just have that always go to the members page.. but how?
Please help.... This is a contract position and I need to fix some things up within this week....
THANKS in advance...