1 (edited by maxpop 2010-06-08 15:48:08)

Topic: Password protected page

Use this php file to protect a page with easy.

Put this file in ur theme folder.

In PAGES ->PAGE OPTIONS choose TEMPLATE:protectedpage.php

To change password for ur page change in protectedpage.php this:
$password = "admin";

After u have logged in the page content is showen. (the page done PAGES).

Post's attachments

protectedpage.php.zip 2.05 kb, 78 downloads since 2010-06-08 

You don't have the permssions to download the attachments of this post.

Re: Password protected page

Good one
I don't think ill use it anytime soon though

Re: Password protected page

Thanks for share
but password after, not see to display content..

Re: Password protected page

Question:
I'm using a site stat script that the owner still wants to use, but doesn't want visitors to see anymore. The script uses a template to be viewed. It is not entered as content, but is included in the sidebar as a component. How do I use this plug-in to set it up so that the stats appear after the proper password has been entered?

Thanks.

homershines

Re: Password protected page

Hi maxpop,

thanks for the script.
You gave the idea to find my own fast solution.

bydey

my getsimple page deynews.de

Re: Password protected page

Cool man you are great.
:)  I was looking for this

Re: Password protected page

dey wrote:

Hi maxpop,

thanks for the script.
You gave the idea to find my own fast solution.

bydey

Hi again,

it's done.

$passwd = "nolimit";  
if (return_page_slug()=='xx') $passwd ='xx';
if (return_page_slug()=='protecttest') $passwd ='protect';
.....
if ((isset($_POST["passwd"]) && ($_POST["passwd"]=="$passwd"))or $passwd=='nolimit') {
?>
<!-- START OF HIDDEN HTML - PLACE YOUR CONTENT HERE -->
<?php get_page_content(); ?>

The main diefference is that I can handle more individual user groups. It's for my gallery where I want to show pictures which I don't want to see as public.

bydey

my getsimple page deynews.de