Membership Plugin - Leading to own page

By Mel - February 22, 2012

Hi,

What I have in mind is along the lines of a portal with various regions and categories within in each region

General public can view all Regions/Categories without signing up

An advertiser logs in to their own page to add update delete upload text images etc and select Region/Category to list in
(bit like a reality site with multiple companies being able to update their own data)

Can the membership plug in be used to achieve this, so once they register as an advertiser they get taken to their own personal details page for them to fill out update etc but of course not be able to access other members pages to edit

Does the plugin check for usernames passwords already in use and suggest that tell them to pick another username

Ideally the creating of users is automatic without the need to manually create a user

Thanks Mel

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: [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