Results 1 to 5 of 5

Thread: How can we create members only pages outside ACP?

  1. #1
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default How can we create members only pages outside ACP?

    The current RTE inside the ACP when using the "add pages" feature does not allow for <html> tags. I need to use certain <html> tags on my "members only" pages!

    How do I create a "members only" page and not use the ACP to do it? I can create .php pages outside the ACP just fine, I just need to know what code is necessary to make the page "members only" accessible, if possible. Thanks.

    In the meantime, I replaced the new "add pages" in admin with the last version of vshare's "add page" files so that I can use the older RTE which worked just fine (and if it's not broke, don't fix it!!)
    If it's not fun, stop doing it!

  2. #2
    Join Date
    May 2007
    Posts
    394

    Default Re: How can we create members only pages outside ACP?

    Quote Originally Posted by grynmoors
    The current RTE inside the ACP
    Huh? :)

  3. #3
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How can we create members only pages outside ACP?

    The current RTE inside the ACP when using the "add pages" feature does not allow for <html> tags. I need to use certain <html> tags on my "members only" pages!
    The current "Real Time Editor" in the "Admin Control Panel". It's that "WYSIWYG" window for editing the add-on pages.


    UPDATE: I replaced the RTE with the editor from the last version of Vshare. No more problems.
    If it's not fun, stop doing it!

  4. #4
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How can we create members only pages outside ACP?

    Here's an old thread that I needed to re-visit. I created a page outside the admin control panel, I need this page of the site to be for members only access. Can someone please either tell me how make it members only access or direct me to a wiki or something on how to make a page so that it's member only access? I'm trying to google this but coming up short.
    If it's not fun, stop doing it!

  5. #5
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: How can we create members only pages outside ACP?

    Geeze, I think I finally found it! Dang, that was a lot of searching LOL...but persistance pays off.

    http://docs.buyscripts.in/Check_user_lo ... HP_scripts

    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>
    If it's not fun, stop doing it!

Similar Threads

  1. Is there a Wiki? Create extra pages?
    By grynmoors in forum Installation Support
    Replies: 16
    Last Post: 05-15-2009, 07:21 PM
  2. How to create a PHP page only for registered users
    By pocholo in forum Template Modifications
    Replies: 4
    Last Post: 04-06-2009, 10:39 AM
  3. Create Thumbnail - START
    By admin in forum Frequently Asked Questions
    Replies: 6
    Last Post: 10-07-2008, 01:07 PM
  4. Ability To Create And Sell Channels
    By scwebmaster in forum Feature Requests
    Replies: 2
    Last Post: 04-02-2008, 06:13 AM
  5. How create new field on database
    By pachouille in forum Template Modifications
    Replies: 2
    Last Post: 02-17-2008, 02:31 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
  •