2 questions about the chat

Last post 03-18-2007, 9:00 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  03-18-2007, 8:44 PM 27488

    2 questions about the chat

    Hi!
     
    The chat is great!
     
    I have 2 questions:
     
    1. Why do I need to choose a name, and also put a V in the checkbox? How Can I change that, so that a private message will be sent when you just click on a user's name?
     
    2. If not using the messenger, what is the purpose of the 'Add contact' - Can I hide it? 
     
    Thanx
    Shai
  •  03-18-2007, 9:00 PM 27489 in reply to 27488

    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 as RSS news feed in XML