![]() |
Members area popup
Every time you access the members area, a popup window will show, asking you to enter the license number and pass:
"vBulletin Members Area: Please enter your customer number (username) and password:" I would like to know what is the code used. Thanks. |
Isn't that just a plain .htaccess popup?
~Regs. |
PHP has a function for this as well. You use the header() thing hold on I think I saw a function to do this.
Here is what you could put at the top of your webpage: PHP Code:
PHP Code:
|
Thanks. That's what I needed. :)
|
Where does it get the username and password from?
|
You have to manually enter it.
|
Hmmm. But i mean how does it compare the password entered in this pop-up to another one to see if its correct?
- miSt |
Search around on php.net for HTTP authentication. They give an example there. I also used it a year ago in a project at work where it used a MySQL database and it worked nicely (no cookies, too).
|
Quote:
|
Quote:
|
Quote:
|
HTTP authentication eh ;)...
|
Ok i did a little research into this earlier today using the functions given on php.net...
It's very odd i must say... For starters you're not comparing usernames from anywhere and seeing if the login is correct. I simply put anything in the box and it works... Am i missing something here ;)? - miSt |
Here is a very simple example that doesn't check anything against a database.
PHP Code:
Password is 'seekrit' |
Ok that works pretty well.. i'm pretty sure i can modify that myself to work with a user database... however where do i change the code so for example it does something when its logged in...
I.e. displays a message "You are logged in" if the authentication works :) - miSt |
Quote:
PHP Code:
|
All times are GMT. The time now is 01:05 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:
|