Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Sigor

    (@sigor)

    Hi there,

    I’ve been trying ‘Eyes Only’ plugin for one hour and I don’t know if it’s not working or if my way to use it is a wrong way.

    Here what I did:
    – wp 4.2.3
    – Premium theme with Visual Composer build-in
    – I tried first this code inside a ‘Fancy Title’ section made with Visual composer and put the code inside ‘Text’ tab (not ‘Visual’ tab):
    [eyesonly username=”user1″ logged=”in”]Hi there Barack[/eyesonly][eyesonly username=”user2″ logged=”in”]Hi there Michelle[/eyesonly]

    – Then I tried this one:
    [eyesonly username=”user1″ logged=”in”]Hi there Barack[eyesonlier username=”user2″ logged=”in”]Hi there Michelle[/eyesonly]

    – User1 and User 2 are subscribers/ I tried to connect with each login user, I can see the page but each time I connect, I can see both of content.

    Did I miss something?

    Regards

    Plugin Author thomstark

    (@thomstark)

    logged=”in” means “anybody who is logged in.”

    Do this:

    [eyesonly username="user1"]Hi there Barack[/eyesonly][eyesonly username="user2"]Hi there Michelle[/eyesonly]

    Plugin Author thomstark

    (@thomstark)

    Explanation of only, onlier, onliest with an example:

    [eyesonly logged="in"]All logged in users can see this. [eyesonlier level="edit_posts"]Only users who can edit posts can see this. [eyesonliest level="administrator"]Only administrators can see this.[/eyesonliest] Only people who can edit posts can see this.[/eyesonlier] All logged in users can see this.[/eyesonly]

    eyesonliest and eyesonlier are only necessary if you need to nest a shortcode inside another shortcode. The three shortcodes allows nesting to three levels of depth. Otherwise, just use [eyesonly].

    Thread Starter Sigor

    (@sigor)

    Thank you thomstark for your answers today. Your support is very fast. Congrats.

    Hope I’m almost done: it’s better with your code but… not perfect.
    Actually, I make my tries with 2 subscribers accounts. With your code, only one user can now see his content and the other one sees nothing. I’m trying to find out what is happening…

    I don’t undersatant the logged=”in” parameter: the subscribers have to log-in to see the private page I’ve set for them. So, each user is actually logged in when they are redirected to the private page. Anyway.

    Plugin Author thomstark

    (@thomstark)

    Adding logged="in" to the shortcode makes the shortcode content visible to anyone who is logged in. You don’t want to use that for your purposes.

    [eyesonly username=”user1″]Hi there Barack[/eyesonly][eyesonly username=”user2″]Hi there Michelle[/eyesonly]

    Make sure the username is correct in the second shortcode. Make sure the first shortcode is closed [/eyesonly] before the second shortcode is opened.

    Thread Starter Sigor

    (@sigor)

    Ok. I found what is happening. The plugin runs only if the user login is an email address. If it’s everything else, it doesn’t work.
    Is it the regular process for the ‘Eyes Only’ plugin to work only with users who have been created with an email address as login?

    Thanks for your help.

    Plugin Author thomstark

    (@thomstark)

    No, that is not correct. It works with any username.

    Thread Starter Sigor

    (@sigor)

    Ok. I don’t know what is happening.
    Anyway. Its’ working now. Thank you for your help thomstark.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘my mistake’ is closed to new replies.