Results 1 to 5 of 5

Thread: How to create a PHP page only for registered users

  1. #1

    Default How to create a PHP page only for registered users

    I want to create a php page only for registered users with a package. It's possible to make this with a php script?

    I had thought about doing something like this:

    Code:
    <?php      
    include("include/config.php");
    
    if($Login)
    {echo "content to registered users only";}
    else
    {echo "content to unregistered users";}?>
    It seems that "$Login" variable is not the same that appears in login.php file.

    Someone knows how to do this?

    Thanks in advance.

  2. #2
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: How to create a PHP page only for registered users

    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  3. #3

    Default Re: How to create a PHP page only for registered users

    Thank you, bplex.

    But, what I want is create a php page only for registered members with a specific package, not for all registered members. It's possible make this with 2.6 version?

    With this code the content is available for all registered members.

    Code:
    <?php
    
    require("/path/to/include/config.php");
    require("/path/to/include/function.php");
    
    if (!isset($_SESSION['USERNAME'])) {
    	Header("Location: {$config['baseurl']}/login.php");
            exit(0);
    }
    
    ?>
    
    <html>
    <body>
    <h1>Welcome to Members Area</h1>
    </body>
    </html>

  4. #4
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: How to create a PHP page only for registered users

    Yes, what you are wanting to do is possible as well. I can build something like that for you (it will probably run you around $25). Contact me through my website (in my signature) and let me know if you are interested.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #5

    Default Re: How to create a PHP page only for registered users

    Thank you, bplex. I will contact you.

Similar Threads

  1. Registered Only Channel/Videos
    By kylemj in forum Feature Requests
    Replies: 0
    Last Post: 10-07-2008, 10:11 PM
  2. channel reserved to registered users
    By mobypod in forum Template Modifications
    Replies: 3
    Last Post: 09-11-2008, 03:34 AM
  3. Search for users does not take you to profile page
    By grynmoors in forum Fixed Bugs
    Replies: 2
    Last Post: 02-15-2008, 07:10 AM
  4. make users login on a specific page
    By devarioj in forum Frequently Asked Questions
    Replies: 22
    Last Post: 09-24-2007, 09:04 AM
  5. page timeout issue for only some users
    By local_master in forum Installation Support
    Replies: 8
    Last Post: 05-22-2007, 02:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •