Support forums
in

Disable context menu in chat room

Last post 11-16-2012, 9:08 AM by RichW. 4 replies.
Sort Posts: Previous Next
  •  11-14-2012, 8:45 AM 75256

    Disable context menu in chat room

    We have integrated your chat room with our site as a demonstration for a client and they are now asking for the user context menus to be disabled. So whenever a user right clicks on their own or another user's name, nothing should appear.

     

    We are using the full screen chat rather than an embedded one.

     

    How do we disable these? If you need any further info, please ask.

  •  11-14-2012, 10:34 AM 75258 in reply to 75256

    Re: Disable context menu in chat room

    Hi RichW,

     

    Please try the way below.

     

    1. Open file CuteSoft_Client\CuteChat\Script\Channel_New.js 

     

    2. Find section below and delete it. Two places has this line. line 628 and line 711, please delete both.

     

    menu.Show(document.body,x,y); 

     

    Regards,

     

    Ken

  •  11-14-2012, 11:25 AM 75260 in reply to 75258

    Re: Disable context menu in chat room

    Thanks Ken that has solved most of the problem now. There is one other place a menu still appears - when you right click in the user list section (so not on yourself or another chat user). It displays To All, Send File, Pick an Avatar, Online, Away and Busy.

     

    Any idea how to get rid of this as well?

  •  11-15-2012, 6:40 AM 75264 in reply to 75260

    Re: Disable context menu in chat room

    Hi RichW,

     

    1. Open file \CuteSoft_Client\CuteChat\Script\Channel_New.js 

     

    2. Find section below from function "function UserList_OnContextMenu(event) and remove it

     

    menu.Show(document.body,document.documentElement.scrollLeft+event.clientX,document.documentElement.scrollTop+event.clientY); 

     

     

    Regards,

     

    Ken

  •  11-16-2012, 9:08 AM 75272 in reply to 75264

    Re: Disable context menu in chat room

    Thanks for the info, that is now sorted; case closed!
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems