close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Looking for step by step tutorial.....

Thread began 12/15/2010 1:12 pm by tone397472 | Last modified 1/26/2011 4:50 pm by tone397472 | 4453 views | 37 replies

Ray BorduinWebAssist

It is easier said than done I guess. We devote many man hours to documentation and tutorials. The reality is that to really understand everything you need to know the underlying technologies including Dreamweaver, SQL, HTML, CSS, and PHP. Even though we put them all together in a relatively simple interface, our documentation would have a difficult time truly explaining what happens under the hood.

Anyway to add admin and users to your table you could just add a single column: isAdmin.... set it to a tinyint and use a checkbox in the admin to set the value to "1" for admin and "0" for non-admin users.

Default it to "0" and anyone that registers will be automatically non-admin.

Then update the User login page Server Behaviors that authenticate the user and store the value of the IsAdmin column into a session variable during the login process (by default just the userID is stored).

Then open up the rules interface from the Modify menu and create a new Rule: "Is Admin" and set it to
Allow if: <?php echo $_SESSION['IsAdmin ']; ?>

Then you can use that rule to restrict access based on the column value you created to identify admins.

You don't have to follow this exactly... column names, values, and rule names can all be whatever you want... the keys are:

1) Create a way to identify Admins in the users table you are using to login
2) Store that column you are using to identify Admins as a session variable in the login process
3) Create a rule based on that Session variable to allow you to restrict access based on it

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





Ease of use


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...