Membership Plugin - Leading to own page

Re: [mel] Membership Plugin - Leading to own page

By Jason - February 22, 2012

Hi Mel,

Yes, you can do this with the membership plugin. If you are using front end pages for the add/edit/remove pages, you can first check to ensure a user is logged in, then retrieve records based on their user number (ie $CURRENT_USER['num']). If you are letting them create/update information directly inside CMS Builder, you'll need to make sure that they only have Author permissions for the sections you want them to access. If users are being created through a front end form, there is an example that comes with the membership plugin, showing you how you can create a user and write to the accesslist table to set permissions.

If you are using the front end membership form to create a user, by default the script checks to see if the username and email selected are unique and if they're not, asking them to change it. You can customize this functionality if need be.

I'm not sure what you mean by automatically creating users. If you can give some more details on what you need to do, we may be able to make some suggestions.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Membership Plugin - Leading to own page

By Mel - February 22, 2012

Hi Jason,

Re the automatically creating users..... I think you have answered that in the second paragraph

The idea is to let each user create their own listing (lets say as an example a property listing record) and be able to add/amend/delete the record

ALL of the listings would be available to the general public to view

Mel

Re: [mel] Membership Plugin - Leading to own page

Hi Mel,

I think that Jason's post is in the right direction.

There are a number of specific code recipes in my CMSB Cookbook http://www.thecmsbcookbook.com that I think deal with the kind of situations you're trying to create.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php