close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problems setting access levels

Thread began 10/25/2011 4:19 am by jvorzimer358609 | Last modified 10/25/2011 1:26 pm by jvorzimer358609 | 840 views | 2 replies

jvorzimer358609

Problems setting access levels

I need to set access levels based on the following values:

<?php echo $_SESSION['UserLevel']; ?> - check for membership registration

<?php echo $_SESSION['OrderSubscLevel']; ?> - what level subscription is current

<?php echo $_SESSION['SubscActive']; ?> - has the subscription run out or is active

I have written a script that sets the additional 2 SESSION variables because they come from orders table used by the cart system. I have tested the script and at login the values are available.

The problem that I am having is in getting the different user levels to interact properly.

There are 5 levels of interactivity within the site.
1- non member - values for this user are
<?php echo $_SESSION['UserLevel']; ?> - 0
<?php echo $_SESSION['OrderSubscLevel']; ?> - 0
<?php echo $_SESSION['SubscActive']; ?> - 0

2- member (free service) - user level 1
<?php echo $_SESSION['UserLevel']; ?> - 1
<?php echo $_SESSION['OrderSubscLevel']; ?> - 0
<?php echo $_SESSION['SubscActive']; ?> - 0

3- first level subscription (paid service) -
<?php echo $_SESSION['UserLevel']; ?> - 1
<?php echo $_SESSION['OrderSubscLevel']; ?> - 2
<?php echo $_SESSION['SubscActive']; ?> - 1

4- second level subscription
<?php echo $_SESSION['UserLevel']; ?> - 1
<?php echo $_SESSION['OrderSubscLevel']; ?> - 3
<?php echo $_SESSION['SubscActive']; ?> - 1

5- third level subscription
<?php echo $_SESSION['UserLevel']; ?> - 1
<?php echo $_SESSION['OrderSubscLevel']; ?> - 4
<?php echo $_SESSION['SubscActive']; ?> - 1

Content available to each successive level still needs to be open to the higher levels.

I just don't seem to find any combination of these that will work. It seems like as soon as any "allow" criteria is hit all the others are just ignored. I need all 3 criteria to be met before allowing access.

I have tried to set groups for this but when I try to define a group based on either of the two variables I set in my script Security Assist Groups Manager gives this error:
uilnitialize error.
Error: The object is not currently contained in a document

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