• Hello all,

    I am looking for a member system. I want to make a system where you have three types of memberships:
    1. Schools
    2. Teachers
    3. Students

    The Students are ‘children’ of the teachers and Teachers are ‘children’ of the Schools. What I would like to make is a checklist which can be used for every student and can be checked by teachers only. The school is simply a parent account for the teacher and will not be actively used. Teachers should be able to add and remove students. The last requirement I would like to see, is that checking the checkboxes at students is front-end possible.

    Any advice is welcome! Looking forward for your replies.

    Yours faithfully,
    Jelmer

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It might be tempting to manage members as users. While that would be possible, users are not hierarchical. The child/parent relations are not built into users. You can create a custom hierarchical post type to represent members. Such custom posts can be related to actual users by the author field or a custom field. Which user can see what can be managed through the “pre_get_posts” action, including only posts that have a particular attribute.

    Managing what users can do (not the same as what they can see) is managed by user roles and capabilities. I’m not sure what sort of checklist you envision, but just about anything is possible. Presenting a checklist form to student users is a matter of building a custom page template that does what you want. The information selected can be stored in the student’s post meta data or the actual user meta.

    It’s important to develop a good data schema from the start. Changing it after the fact once large amounts of data have been added can be difficult. Try to identify any shortcomings early on before it becomes difficult to make adjustments.

Viewing 1 replies (of 1 total)
  • The topic ‘I want a specific member system, looking for advice’ is closed to new replies.