Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password protected page
#1
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).
Reply
#2
Good one
I don't think ill use it anytime soon though
Reply
#3
Thanks for share
but password after, not see to display content..
Reply
#4
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
Reply
#5
Hi maxpop,

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

bydey
my getsimple page deynews.de
Reply
#6
Cool man you are great.
Smile I was looking for this
Reply
#7
dey Wrote:Hi maxpop,

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

bydey

Hi again,

it's done.

Code:
$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
Reply




Users browsing this thread: 1 Guest(s)