Home Tour Demo FAQ App Gallery Buy Now    
Home > Managing Users and Content > Another Example on Multiple Membership T...


Another Example on Multiple Membership Types?

Lets say you have two membership types ( Employee and Employer) which require different questions to be asked.

Step 1.

Create a form (lets call it the profile form) with the common questions such as name, surname, e-mail, etc...

Step 2.

Put all the fields belonging to both Employee and Employer inside the same profile form but with the property "Display On" set to None for the fields related with Employee and Employer. This property will hide the fields on the form whose type is "None".

Step 3.

Now in your website you need two different links for different member types to sign up. Inside your applications file manager directory create two web pages with names employee_signup.html and employer_signup.html.

Inside employee_signup.html put the following code (open the document in source code view -> right click on employer_signup.html and click Edit Source Code):

{SET:accountName:employee}
{FORM:profile:SHOW:proficiency,experience,skills}

Save the file and give a link to this page from your home page. Now people who opens this webpage will see the sign up form for employees.

As to explain what these tags do, the first one sets the accountName field to Employee and sets the proficiency, experience, skills fields as visible to the person who will see the form.

You'll need to do the same for the Employer with corresponding tags.

Step 4.

This step tells to update the profile_update.html (again in source code view) so that corresponding fields are displayed to the user according to his/her user type when that user clicks on the profile_update.html link. This way when the employee will need to update his/her lets say skills, the skills textbox is shown to the user in the update page.

Step 5.

This step tells the tags to include into the page where the profile of the user will be displayed (usually details.html). This way according to the user type, the related fields will only be shown in the user's profile. This way the two user types will be sharing the same profile page. But according to the user type different information will be displayed.

Step 6.

Lets say you have employee_listing.html which list all the employees in the system. You only want users whose account/user type employer to have access to this page. You can do this very easily. Go to "Content Manager" on the left side and open Profile - Account Type grid. Then add "Employee" and "Employer" fields. After that to enable access to only Employers to employee_listing.html you only need to right click to employee_listing.html under the file manager and select the Permission option and select Employer. That's it!


Tags: membership types account types profile
Related Articles:

Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team