• Resolved caswdev

    (@caswdev)


    Our users can access private messaging via their UM profile. We use the UM Private Messaging extension for this. However, it does not work for users which have a custom UM role.

    This is due to users with a role having effectively a double profile in the HTML. When the Private Messaging JavaScript code now checks whether the .um-message-conv-view is visible, it finds two of them, one of which is invisible, and so it returns false. This enters it into a flow that only works on mobile.

    The best fix for this, imo, is to make the selector that looks for .um-message-conv-view more specific. I would suggest changing
    jQuery('.um-message-conv-view').is(':hidden')
    on line 310 of the formatted /um-messaging/assets/js/um-messaging.min.js?ver=2.3.2 to
    jQuery(this.closest('.um-viewing').querySelector('.um-message-conv-view')).is(':hidden')
    so that it only checks for the relevant .um-message-conv-view element. Namely the one inside the same .um-viewing element.

    If you are having this problem you can fix it in the source code on your server.
    I hope someone from the UM team sees this and implements the fix in the actual plugin code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @caswdev

    If you have purchased one of our extensions or our bundle and you need help, you will need to submit a support ticket via our website as we are only allowed to provide support on this forum for the free plugin hosted on the www.remarpro.com website.

    To submit a ticket, please log in to our website using the email used on checkout and go to this page:

    https://ultimatemember.com/support/ticket/

    Thank you for supporting Ultimate Member with your purchase!

    Regards,

    Thread Starter caswdev

    (@caswdev)

    Hey @aswingiri,

    Thanks for your kind reply, we have indeed purchased the extension bundle.
    Nevertheless I have figured out a solution to the problem. I am just posting this to help others and the UM team fix this issue as well. The latter is especially important to me since I do not wish to edit the source JS file every time we update the plugin.

    I see you are quite active on this forum, so thanks for the work you and others like you do to make life for the normal devs like myself a lot easier!

    Cheers,
    Cas

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Thanks for sharing the solutions for this issue. I’m marking this as resolved now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘UM Custom role profile chat fix’ is closed to new replies.