Support » Plugin: Private Content » post author only

  • Resolved agenziae20

    (@agenziae20)


    Hello,

    your plugin is very interesting.
    On my website I have User Generated Content and would like to have some text displayed only to the author of the post (not the category “author” but the user who wrote the post), for example to invite him to upgrade so he can unlock extra fields for his post.

    I guess I can do it using the “recipient” parameter
    [private role=”none” recipient=”login-name”]Text for a specific user only[/private]
    but the “login-name” would be a dynamic field (since there is a different author for each post) and not a single predefined user.
    How can I retrieve and fill the “login-name” with the current post author’s login-name?

    Any different solution is welcome 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello @agenziae20,
    your question is really interesting. Currently this feature is not available, but I promise to take a look if I can add it to the plugin without breaking anything! 😀

    I’ll let you know here.

    Thanks for your post.

    I would be interested in a feature like this also 🙂

    Plugin Author Aldo Latino

    (@aldolat)

    Hey @agenziae20 and @songiuno,
    I just added this feature and released the 6.4.0 version. 🙂
    After upgrading, please let me know if it works as expected.

    How to use the new feature

    I added two cases for the role option:

    • post-author: the private note created with post-author will be readable by the author of the post and by the Administrator role.
    • post-author-only: the private note created with post-author-only will be readable by the author of the post only.

    Examples of use

    A private note for the author of the post (Admins can read it):

    [private role="post-author"]Text for the author of the post.[/private]

    A private note for the author of the post, with a public message for other users (Admins will see the private note):

    [private role="post-author" alt="Public message for all."]Text for the author of the post.[/private]

    A private note for the author of the post only (Admins can’t read it):

    [private role="post-author-only"]Text for the author of the post.[/private]

    A private note for the author of the post only, with a public message for other users (Admins can’t read the private note and will see the public message):

    [private role="post-author-only" alt="Public message for all."]Text for the author of the post only.[/private]

    Please, let me know.

    • This reply was modified 2 months, 1 week ago by Aldo Latino. Reason: Edited code
    Thread Starter agenziae20

    (@agenziae20)

    Just tested and works flawlessly, thank you so much! I also added my enthusiastic plugin review, you really deserve it.

    Thanks agenziae20 for requesting a feature I hadn’t thought about and could use!

    Aldo as usual, thanks for supporting your users so quickly!

    Plugin Author Aldo Latino

    (@aldolat)

    You both are very welcome, and thank you! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.