WordPress.org

Ready to get started?Download WordPress

Forums

Eyes Only: User Access Shortcode
[resolved] Great plugin but slight user with custom roles (4 posts)

  1. Yatish Bhula Madhav
    Member
    Posted 9 months ago #

    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.

    http://wordpress.org/plugins/eyes-only-user-access-shortcode/

  2. Yatish Bhula Madhav
    Member
    Posted 9 months ago #

    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

  3. thomstark
    Member
    Plugin Author

    Posted 9 months ago #

    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!

    Best,
    Thom

  4. thomstark
    Member
    Plugin Author

    Posted 9 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic