Removing Items

Last post 05-17-2006, 12:10 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  05-17-2006, 11:58 AM 19246

    Removing Items

    Hi,
    Iam using ver 3 with DNN 4, I am asking if its possible to remove some items from the menus (eg. Choose avatar, Track user, view profile.)
     Thanks,
     
    Alaa
     
  •  05-17-2006, 12:10 PM 19248 in reply to 19246

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