![]() |
[QUOTE]Originally posted by Ruth
smachol, thanks, but i tried that it doesn't work... |
Ruth,
Can you be more specific when you say it doesn't work? Are you getting warning messages back? What version of PHP are you running? Is the pathway to the global.php file correct? |
Quote:
Is the main index page of your site an HTML document on PHP? So in other words, when someone clicks the link to go to your site....if they are a member, you want them to automatically be logged in....if they're cookies are set properly and have direct access to the site. If they aren't logged in, you want to be brought to a page that has nothing on it, other than the log in fields? It sounds like this is a little beyond my capability and I'm not sure I can help. |
Quote:
when i use that code without show_nopermission code, it only shows the login box in my index.php (non vB), when i try to login using the box, and it redirects me to the same page (index.php) it doesnt show the welcome screen, it shows the login box again (like if i'm not using cookies or not looged in) Test 2 when i change number 0 to 1 in Quote:
but when i logout and come back it doesnt show the login box at all. Test 3 when i add this to the code PHP Code:
Quote:
Quote:
Quote:
thanks for your help :) |
Ruth,
For what it's worth I believe I also had a problem using this unless the script was in the same directory as the global.php file. Sorry, I don't know what to recommend. |
smachol, is there a way by putting the script in the same path as global.php and just call it by one line like this code
PHP Code:
in every protected page. i'm not experienced in this. thanks |
Ruth,
I'm just beginning to learn PHP myself. All I know is that the code I posted above works on my site when global.php and the script using it ('last.php') are in the same directory. I haven't yet tested any other variations. |
How about putting in there the direct link to the global.php
PHP Code:
then you can put the script anywhere. update: I use this for mine... my vb folder is "main" and I have an "about" folder in the same root as the main folder and I use this in all my pages to get the global.php PHP Code:
|
Anyone know how I can solve this error message when I require the global.php file on a non-vb page?
Warning: Failed opening './admin/config.php3' for inclusion (include_path='') in ./bulletinboard/global.php3 on line 66 Thanks. |
BradC thanks i'll try that...
Quote:
|
All times are GMT. The time now is 01:06 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:
|