![]() |
|
|
|
#1
|
||||
|
||||
|
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: PHP Code:
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. |
|
#2
|
||||
|
||||
|
I'm not entirely sure I understand what you're trying to do, so please excuse me if this is not correct... Once you log into vBulletin though, it will redirect you to the page that you logged in from. Since they logged in from your forbidden page, they are going to be redirected to that page. I might suggest adding a custom php module for that page which will check to see if a user is logged in, and if not, then print the error. Then change the code you posted above to something like this:
PHP Code:
|
|
#3
|
||||
|
||||
|
You understood perfectly and your answer is helpful, thank you.
I had hoped there might be some magic buried in either vb or vbadvanced already... |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Created a Custom Page and... | mholtum | Troubleshooting / "How do I..." Questions | 3 | 06-21-2004 04:34 PM |
| Site Index (like your Services Box) Everywhere | george bray | Troubleshooting / "How do I..." Questions | 4 | 05-27-2004 09:45 AM |