Re: How to set rules to not allow user to add new contact????

  •  04-20-2009, 4:29 AM

    Re: How to set rules to not allow user to add new contact????

    Hi gbpatel,
     
    Try this way:
     
    1. Open file 'NewMessengerMain.htm' (\CuteSoft_Client\CuteChat\NewMessengerMain.htm)
     
    2. Find section below and comment it
     
     <div style="" class="MessengerSmallButton" title="[[UI_MENU_AddContact]]" hoverclass="MessengerSmallButtonHover"
     onclick="CuteChatMessenger.BubbleCommand('ShowAddFriend',this,event)">
    <img src="#__cc_urlbase#Images/icon_add.gif" alt="[[UI_MENU_AddContact]]" />
    </div>
     
    3. Open file 'Channel_New.js'(\CuteSoft_Client\CuteChat\Script\Channel_New.js)
     
    4. Find section below and comment it
     
    menuitem=menu.Add(user.IsAnonymous?0:1,TEXT(IsContact(user)?"UI_MENU_RemoveContact":"UI_MENU_AddContact"),""+__cc_urlbase+"Images/DefaultAvatar.gif",function()
     {
      if(IsContact(user))
      {
       RemoveContact(user);
      }
      else
      {
       AddContact(user);
      }
     },null);
     
    Regards,
     
    Ken
View Complete Thread