![]() |
Password Protect?
I want to know if someone could make me a password protect BBCode to protect our additional pages.
I don't mean the adopt.php page or such xD Our site is heavily quest-based, and they'd like it so you can collect passwords to unlock the other pages. This box would come up... And when the correct password is entered, this happens I have no idea where to even begin with this. Tables and such. I was thinking, having more columns on out adopts_users tables to save passwords, or maybe cookies.... you can see the complexity of what I'm asking already, can't you? I made these two images to show how it would work on our pages. One possibility Another possibility |
umm password-protected page/subpage is not a problem, but why bbcode?
|
Quote:
|
It was what I thought was easier xD
If you can tell me how else, I'm happy to comprimise. It's just what my friends told me to ask. |
Well a simple way to do this is to do this is to create a new column in table prefix.content called 'password', and add an if...else statement to page.php to check whether the password exists. If yes, the script will ask users to enter a password and then check if the password matches with the very page from your database. Otherwise the actual page will show normally without requiring users to input password.
|
Wait... I'm a little confused.
So first is to add a column to adopts_content called password.. I got that bit. Add an if-else statement. I'm afraid I don't know PHP, so I have no idea how to even tackle the if-else statement. |
I feel really cheeky asking, but could someone write the code for me? I don't know how to PHP ;-;
|
This may work for you but I not sure if it is even compatible.
http://www.totallyphp.co.uk/password-protect-a-page |
Thanks, Infernal, but I don't think this is compatible, and I have no idea where to start to make it compatible.
Thanks anyway. |
I'm the one who asked about the password thing.
It's just 'cause we'd like to have these four planets, and you can't progress onto the next planet without a password? |
All times are GMT -5. The time now is 03:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.