Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Dallas area
    Posts
    76
    Plugin Contributions
    0

    help question password protecting directories or creating link to members only area

    I've looked in the forums and the admin section and can't find an answer to my problem. So forgive me if this has already been covered.

    My client has a directory with a few different pages that he would like only paid customers to have access to. Is it possible to have a "members only" link appear once a customer has signed into the site. Or is it possible to password protect directories so that customers use their ZC UN & PW to get in?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: password protecting directories or creating link to members only area

    What kind of pages are these?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2007
    Location
    Dallas area
    Posts
    76
    Plugin Contributions
    0

    Default Re: password protecting directories or creating link to members only area

    This is a fitness website. There are two php forms that are used to gather info from the customer about their lifestyle and workout habits. And one html page that has a listing of exercises and their descriptions.

    They are currently not a part of the cart system. By that, I mean that they are stand-alone pages and not integrated with my ZC look or feel.
    Last edited by bradymc; 23 Apr 2007 at 04:39 PM.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: password protecting directories or creating link to members only area

    If you made them part of Zen Cart you could force the login in order to see the pages ...

    I am not sure what happens once you get to those pages with the data, but this is one method of doing it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Feb 2007
    Location
    Dallas area
    Posts
    76
    Plugin Contributions
    0

    Default Re: password protecting directories or creating link to members only area

    I've struggled with the option of integrating them with ZC because of the way the function and the space needed to display the info. I guess I could toy around with it and see how it looks. Once I integrate, how do I get them setup so that they are only accessible after the customer logs in?

    Is it possible to have a link appear only to someone who is logged in?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: password protecting directories or creating link to members only area

    You can add this to the top of the header_php.php file for that particular page or pages ...
    PHP Code:
    // if the customer is not logged on, redirect them to the login page
    if (!$_SESSION['customer_id']) {
      
    $_SESSION['navigation']->set_snapshot();
      
    zen_redirect(zen_href_link(FILENAME_LOGIN'''SSL'));

    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Members only area
    By jlong in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 8 Jan 2011, 07:11 PM
  2. members only area
    By Derek Bryant in forum Templates, Stylesheets, Page Layout
    Replies: 33
    Last Post: 14 Sep 2009, 04:50 PM
  3. Creating a custom Login (blue link) next to the forgot password link
    By Winfab in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jan 2009, 11:11 PM
  4. Add a members only area
    By jdl in forum General Questions
    Replies: 8
    Last Post: 3 May 2007, 02:46 PM

Posting Permissions

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