![]() |
Quote:
You can post the index page code if you like and I will have a look for anything obvious. |
This is at the top
PHP Code:
PHP Code:
|
[QUOTE=Majava]This is at the top
PHP Code:
PHP Code:
|
I have a strange problem lol i seem to be permittly logged in. Now on my forums when i log off and go to main forum page it shows me as logged in, and on the page i put the code i hit log out goes to forums cookies cleared aand all but when it goes back to page still logged in,, even cleared IE cashe and still does it
---------------- Edit: that problem was bad cashe in IE but now ran into another problem, i have 2 php files i use one has a bit different b/c of the way i display some pages but works perfect on mainpage.php but any file that seems to use my mainpage2.php it goes to log in but keeps telling me to log in but still logged in on mainpage.php.. all ode for login exact same. Note seems pages dun work on anything linked to in the address bar like thsi http://twistedeffects.com/mainpage.p...iles/tutorials |
Quote:
|
Quote:
What part of the login does not work exactly? |
Quote:
|
Updated instructions with a change that may allow cross domain login to work.
|
I'm having an issue where including global.php causes my main script to stop functioning.
I've commented out your code, line by line to locate the problem, and my script works until I allow global.php to be called. At that point, all of the links on the page stop working (the login box works fine). It is a search results page, and the links are in this format: PHP Code:
Thanks, Nick |
does not work in 3.6 rc2, including global.php causes scripts to become unresponsive
*nvm* was a cookie conflict |
Quote:
I went and upgraded my test site to 3.6 rc2 straight away. All still running fine on rc 2 :D |
Quote:
Put a simple echo statement on your page to see if those values are what you expect them to be. |
Billspaintball, First, thanks for writing this script and giving everyone a hand with it. I'm hoping that you can help me figure out what's going on.... I am unable to get it to work. I've read the troubleshooting guide and tried everything, and read all 12 pages of this thread. One other person was having this exact trouble, too, but it didn't seem to get resolved. Oh, I am using an IP address because the site is not live yet, it is in development. There are no subdomains.
Here's what happens. I uploaded the file to here and I get the standard vB login screen. When I login, I get redirected to http://69.5.17.244/login.php, which produces an error because that file does not exist. If I am logged in before I go to the above url, I see the actual html as if I am logged in. If I logout, I get redirected to vB logout screen. I click "return to previous screen" and I get sent to a standard vB login. When I attempot to login, I get redirected to /login.php which doesn't exist. (loop) I have used your little script that gives you the path, and am using that path in the scripts below. I have tried changing the cookie path etc in your troubleshooting guide. I am really hoping to be able to use your script to limit access to non vB pages based on usergroup. Here's my code (using your test code with my paths): Code:
<?php Code:
<?php |
The scripts works well but I have a slight problem.
I've installed the login box on my Joomla page as a module and it works fine for the most part. It logs in ok and shows the "Please Wait While We Transfer You" screen on my forum. Then when it does redirect me it still has the login form there instead of the "Welcome Back, USERNAME" message. I know that it does log me into the forum properly though because I created a Joomla vBulletin Who's Online module and that shows the username as online. HELP! |
In then login_inc.php file, what happens if you change // Edit the line below to show path to your forums
$forumpath = "/big/dom/xc5children/www/forums"; to a full url. For example $forumpath = "http://www.yoursite.com/forums/"; Quote:
|
Quote:
Have you tried the troubleshooting on post 2 yet? |
Billspaintball,
Thanks for the quick support. I appreciate it! It does seem like a path issue, because it is not recognizing the forums path, and is redirecting to /login.php instead of /forums/login.php for the redirect. It should not be showing the standard vB login, but rather the more simple login that is located in login_inc.php, right? Quote:
I have tried multiple cookie settings in vB... Path to Save Cookies "/" Cookie Domain "blank" but I have also tried other combinations. I should not be seeing the standard vB login, right? |
Aha! I found out what the problem was! I had my forums to not allow unregistered users to view the forums. So, vB was kicking in it's login before your login_inc.php could kick in. Then, on login_inc.php I had to change the
forumpath: // Edit the line below to show path to your forums $forumpath = "/forums/"; This works just fine. I'd prefer to have the forum hidden from everyone except registered users within certain usergroups. But, I think that is incompatible with this script. IS there a way around this? |
Quote:
|
How do I make this work across different subdomains?
|
Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 |
Hi, I baaaack :)
I have another question: I'd like to lock up an entire page based on vB usergroup, and it seems like there is a problem doing this... here is the error I get: Quote:
Quote:
|
Quote:
Once I do this, I can no longer login to the control panel. Are there any solutions to this? |
Quote:
Wrapping the HTML in those tags is fine, however when you wrapped the PHP inside the echo tags everything breaks as you have found out. If your wrapping a mix of HTML and PHO you need it in a format like this. PHP Code:
Hope thats a bit more clear. If your still having problems just post the first dozen lines or so of your page or so. |
Quote:
|
Quote:
|
Something maybe worth mentioning is that to prevent script issues from happenning(due to path changes) You can do something like this:
Code:
$cwd = getcwd(); |
Ok, now I am having trouble with any quotes being used within the document. Is there a way around this? I am using this code on a template, and my client is using quotes, which is causing an error.
Quote:
|
Since the chdir code must be first on the page, how do you handle the sending of headers (like cookies)?
|
I have a question...
I am using the script in other folders, and it wont then login... For example: Main directory: public_html/ Forum Directory: public_html/forums/ Say I have a page in public_html/support/ The script doesnt login, or logout properly, but If I login to a page before the /support/ directory it works okay. Otherwise only pages in the public_html folder works. Any help? I have changed the codes inserted in the page to reflect the change, (ie. ../forums/login_inc.php) like that. |
Quote:
|
Quote:
|
Good hack, got it running successfully finally.
But when someone who is banned on my forums is watching the website and is still logged in they get the forum banned message (which doesn't look well). |
Quote:
|
Works perfect on 3.6.0.
I added a little code in the login_irc.php to inform users that they can proceed to the forums. Code:
//Added by Sparky-s 25/08/06 I'm mainly using this as a cover page for users with access masks before they get to the forum. I'm not sure it it has been altered already like this, as I couldn't be bothered reading 14 pages.:D I assume I'm allowed edit the login_inc file? Thanks. Sparky |
Can anyone provide me with any assistance ot my problem above?
When i try to login it ends up going to link.com/support/forums/login.php instead of link.com/forums/login.php |
I'm using this script with no issues however when I close the forums down, any non-vb page with the global.php included on it gives me the forum down message. Is there a way to check this (forum up/down) and display something else instead?
|
Quote:
|
Quote:
You would have anyone including guests having unrestricted access. |
Thanks very much - Im having fun playing with this
|
All times are GMT. The time now is 08:44 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:
|