Support » Plugin: Wise Chat » Private Chat Button – Custom Page – Front.php

  • Resolved jcfromkc


    I’ve went through all of the steps outlined in the article to enable the Private Chat feature for BuddyPress users. The following code is referenced in the article for custom pages.

    <a href="#" class="wise-chat-send-message" data-user-id="123">Chat Message</a>

    I’m using a custom profile page and would like for the chat window to open based on the users profile that I’m viewing. What should I be using for data-user-id? I’m using the following code with no luck.

    <a href="#" class="wise-chat-send-message" data-user-id=" <?php bp_get_member_user_id(); ?> ">Chat Message</a>

    Am I going down the correct path?

    When I click on Chat Message I receive an error stating “The user is not in the chat”.

    All the BuddyPress and Offline features are enabled.


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