User List

Last post 09-11-2007, 1:18 AM by watchmyhousesell. 10 replies.
Sort Posts: Previous Next
  •  11-19-2004, 2:20 PM 2488

    User List

    I want to add an additional button or link to the user list to open a new window and view the user's profile for the external part of the website.

     
    For example:
     
    I have a dating website. I want to add a "View Profile" link to the user list. Is there anyway to accomodate this? I can't seem to find a repeater or anything that would allow me to do this.
     
    Is it possible to modify the display of the user listing?
  •  11-20-2004, 10:49 AM 2496 in reply to 2488

    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
  •  11-21-2004, 12:33 PM 2504 in reply to 2496

    Re: User List

    Thanks, that worked perfectly.
  •  03-29-2005, 2:39 PM 5068 in reply to 2504

    Re: User List

    Can we still do this in version 2.0?

  •  03-29-2005, 2:46 PM 5069 in reply to 5068

    Re: User List

    The version 2.0 has this built-in feature which allows you view the user profile.
     

    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

  •  03-29-2005, 2:57 PM 5071 in reply to 5069

    Re: User List

    Adam,
     
    I am the developer for dozens of dating sites and added a button to the old chat room to open a new window and view the user profile within the dating site, not the chat room. I need to be able to keep the profiles limited to the dating site and use the chat room for one thing, chatting. Can I still do this with version 2? Or, atleast have the ability to turn off items?
  •  03-29-2005, 2:59 PM 5074 in reply to 5071

    Re: User List

    Actually, I see that the div is now gone for the buttons, which will work fine. Thanks.
  •  03-29-2005, 3:05 PM 5075 in reply to 5071

    Re: User List

    View user's profile

    When you are in a chat room, right-click the user's nickname in the room user list, and then click "View Profile".


    This user's profile will open in a new browser window. .


     
     
     
    If you open the CuteSoft_Client/CuteChat/ViewProfile.aspx file, you can find out we've collected the following user information:
     
    --------------------------------------------------------------------------------
     int UserId=int.Parse(Request.QueryString["UserId"]);
     user=ChatWebUtility.Api.GetUser(UserId);
     displayName=ChatWebUtility.Api.GetUserDisplayName(UserId);
    -------------------------------------------------------------------------------
     
    With those user information, you can write your own business logic or redirect to your own profile page.
     
     

    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

  •  09-10-2007, 2:11 AM 33399 in reply to 5075

    Re: User List

    I am able to redirect to a profile page within my website but
    the opened window does not have top memu or a sroll bar for the page
    is it possible to open this profile window as a regular broswer window?
  •  09-10-2007, 10:25 PM 33433 in reply to 33399

    Re: User List

    watchmyhousesell:
    I am able to redirect to a profile page within my website but
    the opened window does not have top memu or a sroll bar for the page
    is it possible to open this profile window as a regular broswer window?
     
    Yes. Please open the following page:
     
    CuteSoft.ChatWeb\CuteSoft_Client\CuteChat\ChatUI.js.aspx
     
    And modify the following code:
     
     OpenWindowAsync(null,CuteChatUrlBase+"ViewProfile.aspx?UserId="+user.UserId+"&DisplayName="+user.DisplayName+"",null ,"resizable=1,status=0,menubar=0,"+GetOpenWindowSizeText(577,410))
     
     

    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

  •  09-11-2007, 1:18 AM 33436 in reply to 33433

    Re: User List

    Thanks for the reply. I was able to track it down and I made it work.
    I had it right but the page was caching so I could not
    see the change until I removed the cached files.
     
     
View as RSS news feed in XML