• Resolved tomtower

    (@tomtower)


    Hi Samuel,
    I’ve update bbpress messages yesterday, now I can’t open chat, chat are listed but if I click on these them will not opened.
    can you help me?
    Thanks
    Tom

    • This topic was modified 7 years, 9 months ago by tomtower.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ismail

    (@elhardoum)

    Hello Tom,

    Did you use the admin bbPM Importer to import older messages to the new database table? Normally once you update the plugin it would tell you in a notice to use the importer tool..

    Regards,
    Samuel

    Thread Starter tomtower

    (@tomtower)

    Sorry, Is a little bit difficult to write in english, btw the problem is this:
    I can list them, but is impossible to open one of them.
    null

    Thread Starter tomtower

    (@tomtower)

    chats are listed but you can’t click on them.

    Thanks Samuel

    Plugin Contributor Ismail

    (@elhardoum)

    Hello Tom,

    Normally there’s a simple JavaScript that opens up chats when you click on any chat. I believe there’s a script conflict so could you open your browser developer tools, then ‘console’, then click on any chat, and then take a screenshot and send it to me through this form samelh.com/contact for your privacy.. Or use that form to provide me with a temporary user access and I shall look into it on your behalf.

    Thanks!

    Best,
    Samuel

    Thread Starter tomtower

    (@tomtower)

    Is this screenshoot good for you?

    Plugin Contributor Ismail

    (@elhardoum)

    Hi,

    From the screenshot it seems there’s a conflict with another plugin. Add the following code to your child theme’s functions file:

    add_action('wp_footer', function(){
        if ( !function_exists('bbpm_is_messages') || !bbpm_is_messages() )
            return;
    
        wp_enqueue_script('jquery');
    
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function($){
                $(document).on('click', '.bbpm-chats .bbpm-chat', function(e){
                    if ( e.target && 'a' == $(e.target).prop('tagName').toLowerCase() ) {
                        return;
                    }
                    location.href = '<?php echo bbpm_messages_url(); ?>' + $(this).attr('data-chatid') + '/';
                    e.preventDefault();
                });
            });
        </script>
        <?php
    });

    It should work. Let me know.

    Best,
    Samuel

    Thread Starter tomtower

    (@tomtower)

    YES it works, thank you very much Samuel.

    best regards

    Tom

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Chats are not available’ is closed to new replies.