Hey,
I have set up a user group called "Staff" see below
Does anyone know how to create and link this to mysql, so i can see and view everyone who is in this group via phpmyadmin?
I can see it does it for the default groups automatically
The reason why I need this, i so that I can create a script that allows users in to the back end of my website, the staff area. unrelated to xf2. A website developer who helped me is no longer active and so I can't ask them for help. I hope you guys can.
He got it working for the Admin group with this code:
This info is being pulled from the mysql db. (That's why I need to create a table with the staff group and link it to mysql)
I want to make it so that anyone who is in the staff group can access the back end.
Please can someone help me?
Thank you!
I have set up a user group called "Staff" see below
Does anyone know how to create and link this to mysql, so i can see and view everyone who is in this group via phpmyadmin?
I can see it does it for the default groups automatically
The reason why I need this, i so that I can create a script that allows users in to the back end of my website, the staff area. unrelated to xf2. A website developer who helped me is no longer active and so I can't ask them for help. I hope you guys can.
He got it working for the Admin group with this code:
$has_access = False;
if ($visitor['user_id']) {
if ($visitor['is_admin'] == 1) {
$has_access = True;
}
}
This info is being pulled from the mysql db. (That's why I need to create a table with the staff group and link it to mysql)
I want to make it so that anyone who is in the staff group can access the back end.
Please can someone help me?
Thank you!
Last edited by a moderator: