Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default restricting access

    Hi, I'm wondering is it possible to restrict certain catagories to registered users only on my website? Ideally to restrict it to only users who are over 18 from what they've put in as their date of birth when registering.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: restricting access

    There's nothing in the core functionality to support this. But you could add some custom code in the includes/modules/pages/index/main_template_vars.php file to check whether somebody was logged in and if so their age, and then let them into the category or direct them to a custom template that explains why they have been blocked and offers alternatives.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: restricting access

    And in the end, almost nothing you do can prevent one that really wants to see your restricted areas from seeing it.

    Children today are far ahead of what we were when.
    You would need to harden this somewhat to include capturing IP (already there), checking it against any other new signup and maybe extend to checking on subsequest visits....albeit, with most using dynamic IP's this could be a bad thing...
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. restricting access to certain pages?
    By gg1965 in forum General Questions
    Replies: 2
    Last Post: 8 Mar 2011, 02:30 PM
  2. Restricting access to certain pages
    By Petef in forum General Questions
    Replies: 0
    Last Post: 6 Aug 2008, 03:11 PM
  3. Restricting access to the CC module
    By vega7 in forum Customization from the Admin
    Replies: 0
    Last Post: 7 Feb 2008, 07:37 AM
  4. Restricting Customer Access
    By mauryg in forum Managing Customers and Orders
    Replies: 10
    Last Post: 22 Mar 2007, 11:55 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR