Re: User List

  •  11-20-2004, 10:49 AM

    Re: User List

    twdo:

     
    the user-list html is generated at server side . and it could not be changed in CuteChat1.0
     
    but you could add this feature by modify the context-menu on the user :
     
    open the CuteUI_IE.ascx and find :
     
    <div id="divusermenu" style="position:absolute;display:none;left:0px;top:0px;width:120px;height:20px;overflow:visible;">
     <button id="btnprivatechat"><img src="images/private.gif" align="absmiddle" />&nbsp;<%=SS.PrivateChat%></button>
    </div>
     
    modify it as :
     
    <div id="divusermenu" style="position:absolute;display:none;left:0px;top:0px;width:120px;height:20px;overflow:visible;">
     <button id="btnprivatechat"><img src="images/private.gif" align="absmiddle" />&nbsp;<%=SS.PrivateChat%></button>
    <br>
    <button onclick="showUserInfo()">UserInfo</button>
    </div>
    <script>
    function showUserInfo()
    {
    var userid=divusermenu.targetElement.UserId;
    window.open("../ShowYourUserInfo.Aspx?UserId="+userid);
    }
    </script>
     
    of cause , you need to create the ShowYourUserInfo.Aspx ,get the UserId,
    and find the useruniquename in the table cutechat_user where internalid=UserId
     
    When you get the uniquename , you could load your userinfo and display it.
     
    Regards , Terry
View Complete Thread