block users from viewing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wizardry
    New Member
    • Jan 2009
    • 201

    block users from viewing

    Hello -

    i want to limit what users view a page.

    i have it set up so that the db stores a y|n for this option: public view

    but how can i stop some one from viewing the page.

    an example snipplet is much appreciated.

    thanks in advance for your help
  • devsusen
    New Member
    • Feb 2007
    • 136

    #2
    It depends how u like to differentiate users. Most simple method is to have registered users and visitors. In such cases u can use login system so that reg. user can view some page which visitor can't.

    if you can provide us little more detail it will be easier for us to explain or help.

    Comment

    • wizardry
      New Member
      • Jan 2009
      • 201

      #3
      i have the membership system setup.

      i would like to control who has access to their profiles, thus allowing them the user to mark their profile as public, private etc...

      Comment

      • wizardry
        New Member
        • Jan 2009
        • 201

        #4
        ok sorry t bother you but i've found the solution.

        I need to query the database and check if the flag is set then if not show else send message etc...

        i was wondering if php had a built in module or function to handle alot of the server side functions.

        but anywho!

        thanks again

        Comment

        Working...