Re: 2 questions about the chat

  •  03-18-2007, 9:00 PM

    Re: 2 questions about the chat

    Shai,
     
    Thanks for the nice comments.
     
    For the question 1, can you post a screenshot?
     
    For the question 2, please follow the steps below:
     
    1. Open ChatUI.xml file
     
    2. Remove the following entry at line 92.
     
     <HtmlMenuItem Text="$UI_MENU_AddContact" Image="%CuteChatUrlBase%Images/DefaultAvatar.gif">
       <Scripts>
        <OnUpdate Arguments="htmlEvent">
         var user=htmlEvent.GetParent();
         if(user.UserId==0)
         {
          this.SetEnable(false);
          this.SetText(TEXT("UI_MENU_AddContact"));
         }
         else
         {
          if(IsBlock(user))
          {
           this.SetEnable(false);
           this.SetText(TEXT("UI_MENU_AddContact"));
          }
          else
          {
           this.SetEnable(true);
           if(IsContact(user))
           {
            this.SetText(TEXT("UI_MENU_RemoveContact"));
           }
           else
           {
            this.SetText(TEXT("UI_MENU_AddContact"));
           }
          }
         }
        </OnUpdate>
        <OnClick Arguments="htmlEvent">
         var user=htmlEvent.GetParent();
         if(IsContact(user))
         {
          RemoveContact(user.UserId);
         }
         else
         {
          AddContact(user.UserId);
         }
        </OnClick>
       </Scripts>
      </HtmlMenuItem>
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread