The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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:
|
#2
|
||||
|
||||
Try this:
PHP Code:
|
#3
|
||||
|
||||
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:
|
#4
|
||||
|
||||
cookies aren't going to work across different domains like that.
|
#5
|
||||
|
||||
so i should put the script in forum/image/ ??
Its on the same server |
#6
|
||||
|
||||
yes, you also don't need the full path for the chdir and require, the relative paths in my example should work.
|
#7
|
||||
|
||||
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:
|
#8
|
||||
|
||||
with this going into a subfolder of forum go with this:
PHP Code:
|
#9
|
||||
|
||||
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:
|
#10
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|