Re: Removing Items

  •  05-17-2006, 12:10 PM

    Re: Removing Items

    Alaa,
     
    Open ChatUI.xml.
     
    1. Remove "Choose avatar"

    Find <Class TypeName="UIOptionMenuFragment" BaseType="Fragment">
    and remove the following code:
     
    <HtmlMenuItem Text="$UI_ChangeAvatar">
       <Scripts>
        <OnClick Arguments="htmlEvent">
         ChatUI_ShowAvatarDialog();
        </OnClick>
        <OnUpdate>
         var myinfo=GetMyInfo();
         if(myinfo.PublicProperties.Avatar)
          this.SetImage("DrawAvatar.Aspx?avatar="+myinfo.PublicProperties.Avatar);
         else
          this.SetImage("Images/defaultavatar.gif");
        </OnUpdate>
       </Scripts>
      </HtmlMenuItem>
     
    2. Remove "Track user"
     
    Find <Class TypeName="UserMenuFragment" BaseType="Fragment">
     
    And remove the following code:
     
      <HtmlMenuItem Text="$UI_MENU_TrackIt" Image="Images/icon_eye.gif">
       <Scripts>
        <OnUpdate>
         this.SetVisible(typeof(theMessageTabs)!="undefined");
        </OnUpdate>
        <OnClick Arguments="htmlEvent">
         var user=htmlEvent.GetParent();
         theMessageTabs.TrackUser(user);
        </OnClick>
       </Scripts>
      </HtmlMenuItem>
     
    3. Remove "view profile"
     
    Find <Class TypeName="UserMenuFragment" BaseType="Fragment">
     
    And remove the following code:
     
    <HtmlMenuItem Text="$UI_MENU_ViewProfile" Image="Images/Profile.gif">
       <Scripts>
        <OnClick Arguments="htmlEvent">
         ChatUI_ShowProfile(htmlEvent.GetParent());
        </OnClick>
        <OnUpdate Arguments="htmlEvent">
         this.SetEnable( htmlEvent.GetParent().UserId!=0 );
        </OnUpdate>
       </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