Login system

Permalink
Hello c5sters!

I am about to create a login systems for my visitors, and when they login the should simply have the ability to see some extra pages, for members only. But how do i do this? Are there some tutorial out there for this?

And also, The members must have the possible to choose between to member type, witch each have their own special pages they can access.

Hope you can help!

 
jshannon replied on at Permalink Reply
jshannon
I don't believe there's anything out of the box that will do what you want (for the membership type bit). You'll have to create some code that places the members into a specific group (Type1, Type2, Type3)

Once the members have logged in (and possibly are also in a specific group), you just make sure that "read" permissions are only given to the appropriate group.

So, for pages that can only be viewed after login, you would go to "edit page" -> "permissions" and uncheck "guest" ("registered users" means anybody who's logged in). For pages only available to Type1, you'd uncheck "guest", "registered users", and the other membership types.

James
steda replied on at Permalink Reply
steda
Hi,

log on to your server and edit the file "site.php", which resides in your /config/ folder.

Add a line:
define('ENABLE_ADVANCED_PERMISSIONS', true);


This will enable C5´s advanced permission system. With this, you are able to manage permissions down to the Block level. So you can allow certain users/groups to see and/or use certain blocks (in which your exclusive menus reside). You will notive the altered menu when choose to change permissions.

Hope this helps.
Regards,
Stefan