• Resolved sdkang

    (@sdkang)


    I want to check whether user is logged in or not.

    And

    I want to show chatbot icon to logged-in users.

    How can I above?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Intela-bot Help

    (@intelahelp)

    Hello @sdkang.

    Unfortunately, in the plugin settings there is no way to show chat only for logged in users. If you have knowledge of PHP, you can add such functionality yourself, working with the code from our repository https://github.com/Intela-solutions/watson-assistant-wordpress.

    Thread Starter sdkang

    (@sdkang)

    Thank you for your reply.
    Then I want to know just whether users login or not in my wordpress site.

    Thread Starter sdkang

    (@sdkang)

    I checked user login using web hook successfully.
    And then I want to disable input box of plugin’s chat box.

    I’ll make only logged in users can type in input box.

    is this possible?

    Plugin Author Intela-bot Help

    (@intelahelp)

    Hello @sdkang.
    Additional information is needed to solve this problem. Please describe in more detail how exactly you use webhook.

    Thread Starter sdkang

    (@sdkang)

    I checked user login using WP functions in wordpress site and then return json type results to watson.
    But I changed the way to show the chatbox only to logged in users more simply.
    I modifed style.css in wordpress site as below.

    body:not(.logged-in) #watsonconv-floating-box{
    display: none;
    }

    Plugin Author Intela-bot Help

    (@intelahelp)

    Hello @sdkang.
    We are glad that now everything works for you.
    Thank you for letting us know and since the problem is resolved, please mark the topic as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to check whether user is logged in or not.’ is closed to new replies.