Jump to content

Giving access to certain client groups..HELP!


.amaZe

Recommended Posts

I made a custom page, but I want to only give access to certain client groups.. How do I do this?

 

Ive tried:

{if $gid == '#'}

----content here----

{/if}

 

{if $clientsdetails.groupname eq "client group name goes here"}

----content here----

{/if}

 

{if $clientsdetails.groupid eq "#"}

----content here----

{/if}

 

none work? or what am I doing wrong?

Link to comment
Share on other sites

Thanks, I fixed that problem. Now I have this one.

 

I have 2 if statements.

 

{if $loggedin}

do this

{else}

do this

{/if}

{if $clientsdetails.groupid eq "4"}

do this

{else}

do this

{/if}

How would I combine them? I want the login box to pop up if the user isn't logged in. Then after you log in, and if you don't have access to the page then you should see something different..
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated