• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

looking for member script

=dan=

b&
i'm looking for a member script where people have to sign up then they can view certian pages...

for example i want to block page "x" they have to sign in to view it. if they click on page "x" they get a "u must log in thing". if they type in the direct page address they still get the page "u must log in to view this page"

i would like a script similar to www.bleach-ent.com or www.national-anime.com


thanks a lot,
Ani-M
 
Mambo and other portal or CMS systems usually have this feature. If not, contact me and I'll get you set up with a custom one.
 
in all your pages where you want restriction code like this

<?php
if(!isset($_SESSION['logged_in']))
{
echo "You must login before posting.";
echo "Please click here to login <a href=login.php>";
}
else
{
echo "All your content goes here ....... ";
}
?>

on the login.php code like this

<?php
if(isset($_POST['submit']))
{
//
// perform sql queries or other authentication method to authenticate users
//
$_SESSION['logged_in']=true;
echo "<html><head><meta http-equiv=refresh content=5;forum.php></head>";
echo "<body>Thank you for logging in , you will be redirected to forums shortly .. ";
echo "</body></html>";

}
?>

i have jsut performed a quick reply and try to gave you an idea that how your script will work
 
Back
Top