![]() |
Authenticated User Session Control On Non-VB Page
I am currently running an image hosting script and want to limit it to my members only.
The image hosting script is located at /home/jesse123/public_html/TW7S.com/images/ and my forum is /home/jesse123/public_html/TheWindows7Site.com/forum/ Here is the code I have in the image hosting scripts index page: PHP Code:
|
Try this:
PHP Code:
|
Thanks for the reply
now when i visit the image hosting script, it redirects me to my forums login, I login and nothing happens. Here is the image hosting http://images.tw7s.com/ >exact location: /home/jesse123/public_html/TW7S.com/images and here is my forum http://thewindows7site.com/forum/ >exact location: /home/jesse123/public_html/thewindows7site.com/forum I added this to the image host script PHP Code:
|
cookies aren't going to work across different domains like that.
|
so i should put the script in forum/image/ ??
Its on the same server |
yes, you also don't need the full path for the chdir and require, the relative paths in my example should work.
|
ok image script is now in
/home/jesse123/public_html/thewindows7site.com/forum/imagehost and forum is in /home/jesse123/public_html/thewindows7site.com/forum I put the following at the top of the imagehost index.php PHP Code:
Quote:
|
with this going into a subfolder of forum go with this:
PHP Code:
|
ok, its working! Thank you! But one quick question
How would I go about changing it from giving a no permission login screen when not logged in, to having my popup, and directing them to the main page like this PHP Code:
|
Where it says "print_no_permission();" is what happens if they don't have a userid.
Where it says "hello!" is what happens if they do. Replace each as you see fit. |
All times are GMT. The time now is 07:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|