SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot amit290's Avatar
    Join Date
    Oct 2001
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced site management tool - how to go about it?

    Hi,

    A couple of months ago I did this site in PHP / MySQL. All the content is in MySQL, the rest in PHP including the design (themes).

    Now I have a problem. The client wants a mini-site to allow different members of staff to update different parts of the site. I know this is possible, but how the hell to go about it im not sure.

    Ive read "Managing users with PHP / MySQL" article, which is excellent but I need to go a little deeper by creating user levels or groups.

    Each group of users would be able to add / edit pages in section X of the database. Somehow I would need to assign each group to only be able to edit section X of the site. The content table has the fields "id", "section", "page name", "content" which I think is essential.

    I somehow need to tell the system, group A can only add or edit pages in section ABC of the site/database.

    If any1 got an idea of how to create a login system with groups could some1 plz reply and let me know.

    thx

  2. #2
    SitePoint Zealot amit290's Avatar
    Join Date
    Oct 2001
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BTW, would prefer the users stored in a database, but use non-database sessions

  3. #3
    SitePoint Zealot pnathan's Avatar
    Join Date
    Sep 2001
    Location
    Amsterdam
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not use PHP if() statements?

    Have a column in the user database that defines the users level- High/Medium/Low or whatever.

    Get the user to login. Then on an admin page, filter what the user can see.

    And then have the following in your PHP page:

    PHP Code:
    if (user_level high) {

       
    The user can see this area
    }
    if (
    user_level medium) {

       
    The user can see this area

    And so on. Hope this was of some help.
    I have two tickets to the Crows, sweet.


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
  •