Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Password Protect? (http://www.mysidiaadoptables.com/forum/showthread.php?t=2361)

Linkin-Dreamer 08-30-2011 07:48 AM

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

Hall of Famer 08-30-2011 12:02 PM

umm password-protected page/subpage is not a problem, but why bbcode?

fadillzzz 08-30-2011 12:07 PM

Quote:

Originally Posted by Hall of Famer (Post 18352)
umm password-protected page/subpage is not a problem, but why bbcode?

Exactly my thought...

Linkin-Dreamer 08-30-2011 02:22 PM

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.

Hall of Famer 08-30-2011 03:03 PM

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.

Linkin-Dreamer 08-30-2011 04:06 PM

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.

Linkin-Dreamer 08-31-2011 12:19 PM

I feel really cheeky asking, but could someone write the code for me? I don't know how to PHP ;-;

Inf3rnal 09-01-2011 10:17 AM

This may work for you but I not sure if it is even compatible.

http://www.totallyphp.co.uk/password-protect-a-page

Linkin-Dreamer 09-01-2011 12:44 PM

Thanks, Infernal, but I don't think this is compatible, and I have no idea where to start to make it compatible.

Thanks anyway.

Typical 09-02-2011 03:42 PM

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.