Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2011, 07:48 AM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 4,585
Linkin-Dreamer is on a distinguished road
Default 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

Last edited by Linkin-Dreamer; 09-02-2011 at 03:36 PM.
Reply With Quote
  #2  
Old 08-30-2011, 12:02 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,289
Hall of Famer is on a distinguished road
Default

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


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 08-30-2011, 12:07 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,808
fadillzzz is an unknown quantity at this point
Default

Quote:
Originally Posted by Hall of Famer View Post
umm password-protected page/subpage is not a problem, but why bbcode?
Exactly my thought...
Reply With Quote
  #4  
Old 08-30-2011, 02:22 PM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 4,585
Linkin-Dreamer is on a distinguished road
Default

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.

Last edited by Linkin-Dreamer; 09-02-2011 at 03:37 PM.
Reply With Quote
  #5  
Old 08-30-2011, 03:03 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 332,289
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 08-30-2011, 04:06 PM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 4,585
Linkin-Dreamer is on a distinguished road
Default

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.
Reply With Quote
  #7  
Old 08-31-2011, 12:19 PM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 4,585
Linkin-Dreamer is on a distinguished road
Default

I feel really cheeky asking, but could someone write the code for me? I don't know how to PHP ;-;
Reply With Quote
  #8  
Old 09-01-2011, 10:17 AM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,662
Inf3rnal is on a distinguished road
Default

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

http://www.totallyphp.co.uk/password-protect-a-page
Reply With Quote
  #9  
Old 09-01-2011, 12:44 PM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 4,585
Linkin-Dreamer is on a distinguished road
Default

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

Thanks anyway.
Reply With Quote
  #10  
Old 09-02-2011, 03:42 PM
Typical's Avatar
Typical Typical is offline
The Illogical One
 
Join Date: Sep 2011
Location: Somewhere in the Universe
Posts: 3
Gender: Female
Credits: 1,266
Typical is on a distinguished road
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgotten password? Aasixx Questions and Supports 14 05-03-2012 05:46 PM
Password Reset keliptis Questions and Supports 4 02-10-2012 08:39 AM
[Bug] Admin Password as plaintext Inf3rnal Questions and Supports 6 09-15-2011 04:40 PM
Register with no password? Slix Questions and Supports 6 08-01-2011 12:26 PM


All times are GMT -5. The time now is 10:30 AM.

Currently Active Users: 1472 (0 members and 1472 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636