![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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 04:36 PM.  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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.  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Exactly my thought...
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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 04:37 PM.  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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.  | 
| 
		 
			 
			#6  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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.  | 
| 
		 
			 
			#7  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			I feel really cheeky asking, but could someone write the code for me? I don't know how to PHP ;-;
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#8  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			This may work for you but I not sure if it is even compatible.  
		
		
		
		
		
		
		
		
	
	http://www.totallyphp.co.uk/password-protect-a-page  | 
| 
		 
			 
			#9  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			Thanks, Infernal, but I don't think this is compatible, and I have no idea where to start to make it compatible.  
		
		
		
		
		
		
		
		
	
	Thanks anyway.  | 
| 
		 
			 
			#10  
			
			
			
			
			
		 
		
	 | 
||||
		
		
  | 
||||
| 
		
	
		
		
			
			 
			
			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?  | 
![]()  | 
	
	
		
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Forgotten password? | Aasixx | Questions and Supports | 14 | 05-03-2012 06:46 PM | 
| Password Reset | keliptis | Questions and Supports | 4 | 02-10-2012 09:39 AM | 
| [Bug] Admin Password as plaintext | Inf3rnal | Questions and Supports | 6 | 09-15-2011 05:40 PM | 
| Register with no password? | Slix | Questions and Supports | 6 | 08-01-2011 01:26 PM | 
						What's New? | 
					
						What's Hot? | 
					
						What's Popular? |