WordPress.org

Ready to get started?Download WordPress

Forums

Members
[resolved] Display a message for visitors inside a post, when login, it dissapears. (1 post)

  1. CarlosBerman
    Member
    Posted 2 years ago #

    I made this and works fine, just an example.

    Hide for visitors a tag Div with its style, display none
    [access role=”administrator,subscriber” ]
    <div style=”display:none”>
    [/access]

    Show the message for visitors (not logged users, plaint text, html)
    Only Registered users can see THE LINK.

    The close tag for the DIV above, hide for visitors too
    [access role=”administrator,subscriber”]
    </div>
    [/access]

    THE LINK, (only visible for logged in users, or roles you choice)
    [access role="administrator,subscriber"]
    THE LINK!
    [/acces]

    The visitor see “Only Registered users can see THE LINK.”, when them log in, the message dissapears, because the DIV tag appears and it has a “display:none” style, and then the subscriber see only "THE LINK!"

    A bit confusing, but it works.

    Sorry for my English.

    Carlos Berman

    http://wordpress.org/extend/plugins/members/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic