Page 1 of 1
I have problems with the roles
Posted: Tue Dec 03, 2019 8:41 pm
by saulmeza1
I have problems with the roles every time I select one in the protection of the page it sends me to the access page denied I send you images of the configuration
https://www.webhostartistas.com/Signup.png
https://www.webhostartistas.com/Protect%20Page.png
https://www.webhostartistas.com/Admin.png
https://www.webhostartistas.com/EditProfile.png
everything is connected to the database but as I tell you when I select a Role it does not let me access it sends me to the access denied page
Re: I have problems with the roles
Posted: Tue Dec 03, 2019 9:16 pm
by Pablo
Maybe there is a problem with PHP session on the server?
Does everything else work?
What is the (PHP) code of the pages?
Re: I have problems with the roles
Posted: Tue Dec 03, 2019 9:52 pm
by saulmeza1
Re: I have problems with the roles
Posted: Wed Dec 04, 2019 7:27 am
by Pablo
In your project you have used different roles in different objects. The admin page has 'Administrator, Member and Guest', the registro page has 'bronce'.
Please use the same rules for all objects.
Also, you are using way too many breakpoints. Layout grids are flexible, so you normally only need 2 or 3 breakpoints max.
Does everything else work (without user roles)?
Re: I have problems with the roles
Posted: Mon Dec 09, 2019 9:00 pm
by saulmeza1
What would be the correct configuration of the database to make it work perfect?
This is the default setting, but it doesn't work ...
CREATE TABLE `prueba` (
`id` int(10) NOT NULL auto_increment,
`username` varchar(50) NOT NULL,
`fullname` varchar(75) NOT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(75) NOT NULL,
`active` tinyint(1) NOT NULL,
`code` varchar(75),
`role` varchar(50),
`avatar` varchar(50),
PRIMARY KEY (`id`));
What I want to do is a course with different plans (access to different pages with protection), which can enter from the same login
Re: I have problems with the roles
Posted: Mon Dec 09, 2019 9:18 pm
by Pablo
The database structure is correct.
What is the exact problem?
Where does it stop working?
Re: I have problems with the roles
Posted: Wed Dec 11, 2019 12:58 am
by saulmeza1
I want to create restricted access areas for the different product plans that I will offer on my website, but I don't get that to happen, I did tests without interupption points and nothing the same is blocked when I assign a restriction to anyone either guest or Membership just doesn't work ... I don't know what to do anymore ...
I explain the idea is simple ... it is a member area .:
Plan A .: You can access only as a guest
Plan B .: You can access as a guest and Member
Plan C .: You can access guest, Member and Member2
How do I do it so that everyone accesses with the same login?
Re: I have problems with the roles
Posted: Wed Dec 11, 2019 7:11 am
by Pablo
Does the standard login (without user roles) work, so you can be sure the database is setup correctly?
Once you have the basics working, you can configure the user roles in the 'login admin' and 'protected page' properties.
Then assign user roles to users with the online admin.