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

  • Resolved jcfromkc

    (@jcfromkc)


    I’ve went through all of the steps outlined in the article https://kaine.pl/projects/wp-plugins/wise-chat-pro/documentation/features/private-chat-button/ 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.

    Thanks

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.