Support » Plugin: Eyes Only: User Access Shortcode » Great plugin but slight user with custom roles

  • Resolved YBM


    Hi there,

    This is a really neat and intuitive plugin. Though I have one slight issue OR I may be going wrong somewhere.

    Below is the content. I am working on localhost WAMP at the moment. When I am logged out all of them are not display … which is GREAT 🙂 if I login as a user from a custom ‘staff’ user role, all the content is displayed. Surely it should hide all other content and just show “Content Here for Staff” in this case?

    [eyesonly level=”author” logged=”in”] Content Here for Author [/eyesonly]
    [eyesonly level=”administrator” logged=”in”] Content Here for Admins [/eyesonly]
    [eyesonly level=”staff” logged=”in”] Content Here for Staff [/eyesonly]

    Please let me know ASAP. Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • YBM


    OK all is good.

    I seem to have got it working as required. I removed the ‘logged=”in”‘ for all of them. (Inserted it thinking that the 2 attributes where AND and not OR related – i.e. IF Staff AND logged in THEN show this …)

    Thanks once again for this plugin. Will be working this into the online version of the website.

    Will inform if there is any glitches or tips/suggestions

    Plugin Author thomstark


    Right. The different options are OR not AND. Glad you worked it out! Please do let me know if there are any issues.

    Also, there should be an update up today or tomorrow with a few new features. Stay tuned!


    Plugin Author thomstark


    The logged=in|out option has a few uses. For example:

    You may have content only for logged out users to see, but as the page author or administrator, you may want to be able to see it yourself without having to log out. In that case, you can choose:

    [eyesonly logged=out username=myusername]Content[/eyesonly]

    That way, you’re the only logged in person who will see it, and it won’t distract other logged in users for whom it is not intended.

    The logged=in option really only has one use: hiding/showing content to/from anyone who is not logged out.

    Hope that helps clarify their usefulness.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Great plugin but slight user with custom roles’ is closed to new replies.