Replies: 0
Hi Kento and Antonio,
I am trying to use your group plug in together with groups file access. So far I was able to use a basics setup well and it worked fine. Now in a second step I am trying to use a more advanced setup and am struggling to make it work. Hopefully you can give me a tip on what I do wrong.
I would like to convert an unrestricted site to a site that cannot be accessed by an unregistered user. The user should be prompted to log in before being able to access the content, when logged in he should see the messages “please log in to access the content” . If the user is logged in but the group he belongs to does not have the capability to see the content he should only see the message “you do not have permission”.
I tried various combinations but could not find a setup that works. The only setup that works so far is the one below. It is not ideal, since the phrase “you do not have permission” is also shown when the user is not logged in, ideally I would like this phrase only to show when the user has logged in but is not permitted.
my setup:
[groups_login]
[groups_non_member group=”Registered”]
“please log in to access the content”
[/groups_non_member]
[groups_can_not capability=”see_content”]
“you do not have permission”
[/groups_can_not]
[groups_can capability=”see_content”]
The content of the site
[/groups_can]
Do you know of a way to achieve what i am trying to do? I seem to have problems once I use various layers of groups and capability permission-sets and it seems the opening and closing shortcodes for each group restriction do not connect or communicate with each other, they get translated as separate parts that do not belong together. Thank you for your help, I highly appreciate it.
-
This topic was modified 7 minutes ago by
maxident.