StewardManscat
07-03-2004, 11:21 AM
Pasting together an existing site with vb3 and cmps...
Some areas are for registered members only. The registration system is now vb3. I cannot convert all of the old site into vb3/cmps at once. I think I need a "hybrid" to get by.
So in my old sections I write:
if ($NoCurrentSession) {
header("Location: /forum/cmps_index.php?page=forbidden");
exit;
}
where "forbidden" is a cmps page with no access privleges. So this brings up the "You are not logged in" prompt, which is desired.
But of course, after login, the system returns to "You do not have permission to access this page". It's the God's honest truth. But if the user clicks again on where they were going, they are off to the races.
All site areas are linked across the top, and all are always enabled. This is desired. The ones which go to vb pages behave correctly: after denial followed by login, the system redirects to the original page.
I wonder how I can mimic this to support old sections... ?
Thanks in advance.
Some areas are for registered members only. The registration system is now vb3. I cannot convert all of the old site into vb3/cmps at once. I think I need a "hybrid" to get by.
So in my old sections I write:
if ($NoCurrentSession) {
header("Location: /forum/cmps_index.php?page=forbidden");
exit;
}
where "forbidden" is a cmps page with no access privleges. So this brings up the "You are not logged in" prompt, which is desired.
But of course, after login, the system returns to "You do not have permission to access this page". It's the God's honest truth. But if the user clicks again on where they were going, they are off to the races.
All site areas are linked across the top, and all are always enabled. This is desired. The ones which go to vb pages behave correctly: after denial followed by login, the system redirects to the original page.
I wonder how I can mimic this to support old sections... ?
Thanks in advance.