Disable 'Create a group' & 'View Profile'

Last post 02-07-2010, 11:38 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  02-07-2010, 5:34 PM 58564

    Disable 'Create a group' & 'View Profile'

    I'd like to disable the following options:
     
    1. 'Create a group' from the main menu
    2. 'View Profile' from the friend list
     
    Is this possible?
     
    Thanks
     
  •  02-07-2010, 11:38 PM 58568 in reply to 58564

    Re: Disable 'Create a group' & 'View Profile'

    Hi surfo101,
     

    1.       How to disable the “Create a group” button?

     Open file “CuteSoft_Client\CuteChat\NewMessengerMain.htm”

     Find section below

     <span title="[[AddNewGroup]]" class="MessangerToolbarItem" hoverclass="MessangerToolbarItemHover"

                       onclick="CuteChatMessenger.BubbleCommand('AddNewGroup',this,event)">

                       <img src="#__cc_urlbase#Images/add_group.png" />

    </span>

     Change to

          <span style=" display:none" title="[[AddNewGroup]]" class="MessangerToolbarItem" hoverclass="MessangerToolbarItemHover"

                       onclick="CuteChatMessenger.BubbleCommand('AddNewGroup',this,event)">

                       <img src="#__cc_urlbase#Images/add_group.png" />

    </span>
     

    2.       How to disable the “View profile” button which appears in the dialog window when you hover over a user?

     Open file “CuteSoft_Client\CuteChat\Script\NewMessenger.js”

     Find section below

     sb.push("<img class='ContactFloatPanelButton' id='ccm_fpprofile' src='"+__cc_urlbase+"Images/profile.gif'  title='"+TEXT("UI_MENU_ViewProfile")+"'/>");

     Change to

     sb.push("<img style='visibility:hidden' class='ContactFloatPanelButton' id='ccm_fpprofile' src='"+__cc_urlbase+"Images/profile.gif'  title='"+TEXT("UI_MENU_ViewProfile")+"'/>");
     
     
     
     How to disable the “View profile” button on the right click menu?
     

     Open file “CuteSoft_Client\CuteChat\Script\NewMessenger.js”

     Find section below and comment/delete it

     menuitem=menu.Add(1,TEXT("UI_MENU_ViewProfile"),""+__cc_urlbase+"Images/profile.gif"
       ,CuteWebUI.Delegate(messenger,messenger.OnMenuClick),null);
      menuitem.command="ViewProfile";
      menuitem.contactid=contactid;
     
     
     
    Regards,
     

    Ken
View as RSS news feed in XML