members only section of website
Permalink
I love how easy C5 has been to use and create a site. I'm creating a site for a church with C5 as the CMS (static site), wordpress for the blog and prestashop for the store. They also wanted a members only section. But I'm having trouble creating that in C5.
How would I make a members only section for viewing pages only?
example: someone viewing the website clicks link for "members", they get a log in screen with option to log in w/user name and password or button to register. If they log in then they go to the "members" page(s) where they can view members only content.
"Members" never have access to the CMS part of the website for adding or editing.
I have checked the forums but did not find an answer to this problem. Are the permissions just for allowing access to the CMS part of C5.
If this has been answered elsewhere please let my know where.
Thanks for all your help
How would I make a members only section for viewing pages only?
example: someone viewing the website clicks link for "members", they get a log in screen with option to log in w/user name and password or button to register. If they log in then they go to the "members" page(s) where they can view members only content.
"Members" never have access to the CMS part of the website for adding or editing.
I have checked the forums but did not find an answer to this problem. Are the permissions just for allowing access to the CMS part of C5.
If this has been answered elsewhere please let my know where.
Thanks for all your help
http://www.concrete5.org/index.php?cID=2891
But i cannot see where the differences are if i paste the whole line in into site.php the site doesn't show am i doing something wrong
advanced permissions show in the same spot as regular permissions would, they just give you a lot more control.
Thanks frz, the advanced permissions helped me set up everything as needed.
Hi ewc07
I'd like to make the same thing you've described, but I don't know which blocks to use to make the login/registration. Is that part of c5 somewhere or did you make that part yourself?
I'd like to make the same thing you've described, but I don't know which blocks to use to make the login/registration. Is that part of c5 somewhere or did you make that part yourself?
- The login page is always located at yoursite.address.com/login
- The register page needs to be enabled in the dashboard - "User and Groups" - "User Registration"
- Now you need to somehow point to those pages from your menu. I found the easiest way to do this is to add External Links in the Site Map.
The external link will just point to "/login" or "/register"
- Last thing is to apply your theme to those 2 pages. Go to config/site_theme_paths.php and uncomment these lines:
Of course "yourtheme" should be your actual theme name.
Now in any page you can edit the permissions and set them to registered users only. No need to turn on advanced permissions.
Hope that helps! Took me a while to figure out the whole process the first time I did it.
- The register page needs to be enabled in the dashboard - "User and Groups" - "User Registration"
- Now you need to somehow point to those pages from your menu. I found the easiest way to do this is to add External Links in the Site Map.
The external link will just point to "/login" or "/register"
- Last thing is to apply your theme to those 2 pages. Go to config/site_theme_paths.php and uncomment these lines:
//$v->setThemeByPath('/login', "yourtheme"); //$v->setThemeByPath('/403', "yourtheme"); //$v->setThemeByPath('/register', "yourtheme");
Of course "yourtheme" should be your actual theme name.
Now in any page you can edit the permissions and set them to registered users only. No need to turn on advanced permissions.
Hope that helps! Took me a while to figure out the whole process the first time I did it.
That is a concrete5 block
That is a concrete5 block