Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
hi all,

have a situation, don't know how to make this solution:

few templates:
students.php
editable fields: name, surname, email, phone, username, password, other own fields

teachers.php
editable fields: name, surname, email, phone, username, password, other own fields

i need to make login form for students AND for teachers templates, at students.php login form, and
for example:

if I visit http://site.com/students.php I see login form for students, and can login with students.php username and password editable fields
if http://site.com/teachers.php I see login form for teachers, and can login with teachers.php username and password editable fields

admin will fill all fields for students.php and teachers.php, don't need registration, activation pages, just login for templates(groups)

I don't need to give access to admin panel, just login func to site

i saw this manual https://www.couchcms.com/docs/extended- ... s/post.htm, but by this manual, all users have same fields, but I need to set for teachers and students own fields
You could use a single template e.g users.php
editable fields : name, surname, email, phone, username, password and any other fields needed either from students.php or teachers.php

For teachers you just leave the student fields empty and for students you just leave the teacher fields empty. It would be useful to include a radio input to decide if a user is indeed a student or teacher or you could use k_user_access_levels e.g authenticated users as students and authenticated users (special) as teachers.
2 posts Page 1 of 1
cron