close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Registration form

Thread began 3/23/2011 9:47 pm by madelectrical386948 | Last modified 4/09/2012 10:52 am by Jason Byrnes | 1419 views | 8 replies |

madelectrical386948

Registration form

When a client registers on my site, I want to add different levels, one for Admin, CMS abilities and one for regular users to check the classifieds. The Admin and CMS will be done on the Admin backend.
My DB has a userLevel interger field that I would like to put in a 1 for regular user when the register button is redirected to the new Accept page.
What is the best possible way to do that with Security Assist?

Mike

Sign in to reply to this post

Lon WintersBeta Tester

If you're using the WA CMS, that gets set up with it's own login and everything so you may have to find a way to integrate that with login pages that you built.

ARe "Regular Users' just public users who don't require a log in? If they don't, then you don't need a rule or user level for them. And vice versa. Let's say that they do for now. I'll give you a general outline, but trust me, go through the video tutorials on setting up rules and access levels.

1. Make sure you're capturing the User Level into a Session variable using the login user wizard in SA.
2. Create three simple rules, one for each level - simply to grant access if the user level = 1 or 2 or 3.
3. Create groups that join these rules together in any combination you want - for example, if Admins will also have access to CMS pages and regular pages, you'll combine all three rules.
4. Next, create additional rules that, instead of being based on criteria like the first three rules, are based on a group. It seems like an extra step, but the effect is that you're combining two or more rules into a single rule.
4. Finally, add the rules to your pages - this can be done in bulk. At this point, you may not use every rule that is available, but you will use them as part of a group.

It's confusing I know. I first made the mistake of trying not to use groups. I would write a rule to grant access if "UserLevel >=1" or something like that. In theory, it should work the same, but I often got mixed results.

Sign in to reply to this post

madelectrical386948

Yes, it can be confusing.

I haven't setup the WA CMS yet so I hope I am not creating an issue with Security Assist and adding WA CMS? Now I have to look at that.

People who will visit the site will be "visitors" (no sign in required), like visiting Craigslist. You don't have to sign in to look.

"Regulars" (sign in). That allows them to see different things on the pages, like google maps and other items that I plan.

"CMS" (sign in). That allows these clients to have their own page to modify their classified. Just like Craigslist.

"Admin" (me).

I do not want to logins so I was hoping that would be easy. Maybe not.

I will look at the group type logins. Anything that can help is great.

Thanks for your response.

Mike

Sign in to reply to this post

madelectrical386948

In the above post, "I don't want 2 logins because of CMS".

Mike

Sign in to reply to this post

Lon WintersBeta Tester

I see what you're trying to do. Personally, I wouldn't use the WA CMS for regular users to update their listings and what not. I've only used the one that comes with Site Sculptor, and it generates it's own database tables, login section, etc. You could base your own registration and login pages on the same table, but after that I wouldn't know what to do next - it would take a lot of customization. It's really intended for updating static content by a few different user groups with access to different sets of pages.

What you need tis to create User accounts and all the related pages that go with with including all the signup forms, login forms, account update forms, etc. Most of these can be done using the Security Assist and Data Assist Wizards.

Then you'll need insert and update pages for the users to be able to enter and modify listings. which would of course populate the public users' search-results and detail pages, also easily done with Data Assist. Then if you want, you can create a public profile page for each user - similar to the user's own account profile page, but with limited info and of course have to updating features. All these pages would be dynamic.

For rules, you don't need to set any rules for the regular viewing of the ads. But you will need access rules for all the user account pages and admin pages.

You can build whatever functionality you want into the admin pages - such as show the user lists, modify user account information, view and edit the classifieds, send email notices to the users, etc.

What is your experience level in building sites that include these types of features? If you've done registrations and logins before, then you understand how that works, and how to set up and use the database and you should be well on your way from there.

Sign in to reply to this post

h150477

Using a drop down list in the registration page

Registration on my site will be done by an administrator who will need to select the userlevel from a dynamically populated select list, using data from a MySQL database.
The registration wizard seems to create a lot of spry select input fields, which I have never bothered to learn about, as I have always found the standard select fields and lists OK.
Is it practical to include none spry select fields in the registration page?
If the registration page has already been built, is it possible to edit it and include an extra field, or do you have to start over?

Sign in to reply to this post

Jason ByrnesWebAssist

a registration page is really just a form with an insert record behavior on it to insert the registration information.

if you don't like the form created by the security assist wizard, you can create your own, then use the insert record behavior to store the registration information to the database.

if you need to add form elements after it is created, you will need to edit the insert record behavior to bind the new form elements to the new database columns.

Sign in to reply to this post

elevy388997Beta Tester

Originally Said By: Lon Winters
  1. Make sure you're capturing the User Level into a Session variable using the login user wizard in SA.  



How do you set up SA to capture the User Level and change it accordingly? I used the Free eCommerce MySQL database to have some groundwork and I want 3 levels. I went through the wizard already and had it create the login, logout, registration, etc So how do I correctly add to the database:

0 - Guest, not logged in
1 - Member, Logged in but no access to premium area
2 - Customer, Logged in and granted access to premium area


Edit: I think this answers most of my question.. securityassist_user_level_auth_sr.pdf but do I need anything more specific in the db, such as collation, null, or default values?

Sign in to reply to this post

Jason ByrnesWebAssist

no, nothing needs to be changed in the database as far as null values or collation for user level authentication.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...