The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. CarlosBerman
    Posted 5 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”>

    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”]

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

    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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic