• Resolved tonygao

    (@tonygao)


    Hello,

    I tried to use javascript to create the chat room, it looks normal but when I click the send button, it doesn’t work.

    I did things like this:

    step 1: Use PHP to call the wise chat shorcode to get the html of the chat room and save it in a javascript varible

    Step 2: On front end, after the page loaded like 10 seconds, I use javascript to write the html code of chat room to a <div> element.

    I tried to disable other plugins, different themes but the problem is same.

    Another thing is how to use the access_roles parameter to allow both subscriber and admin to join the chat?

    • This topic was modified 4 years, 4 months ago by tonygao.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    Hello @tonygao

    You also need to execute Wise Chat JS initialization code that is normally run on page startup.

    As for the second question:
    [wise-chat access_roles="{administrator,subscriber}"]

    Thread Starter tonygao

    (@tonygao)

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There is a problem’ is closed to new replies.