Changing the anonymous user name

Last post 08-07-2008, 3:47 AM by Gerard. 3 replies.
Sort Posts: Previous Next
  •  08-04-2008, 4:11 AM 42713

    Changing the anonymous user name

    Hi,
     
    We want to use the chat system in anonymous mode but are not happy with the anonymous user name as allocated. Can you tell me where this is set up so that I can adjust it to one of our choosing?
     
    Thanks in advance!
     
    Gerard
     
     
  •  08-04-2008, 5:41 PM 42723 in reply to 42713

    Re: Changing the anonymous user name

    Gerard,
     
    The guest name format is hardcoded.
     
    To achieve this, you have to modify the source code.
     
    Can you tell me what kind of format you want to change to?
     
    We will make it adjustable in the coming new version.

    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

  •  08-05-2008, 8:10 AM 42735 in reply to 42723

    Re: Changing the anonymous user name

    However it does seem possible to change the name once it has been set up by the system by altering code in Chatui.js and this change seems to remain attached to that user throughout that session.
     
    I guess that means if I play enough I'll be able to get round the allocated name.
     
     
    Gerard
  •  08-07-2008, 3:47 AM 42804 in reply to 42735

    Re: Changing the anonymous user name

    I have managed to do this now by changing a line in the script file chatclient.js (in the scripts folder). I then call my embedded chat page with a couple of parameters:
     
    For example:
     
    embed.aspx?room=1&UserName=Steve
     
    Then in chatclient.js
     
    I have altered the code in Function Connect(placename) so that the following line
     
    cookie.GuestName=chatclient.guestname;
     
    now reads as
     
    cookie.GuestName=location.href.substring(9+location.href.indexOf('UserName='));
     
    This results in the User name appearing as Steve. Obviously you can provide any alternate user name instead of my 'Steve' example.
     
     
    Hope that this helps other people wishing to change the name too.
     
     
    Gerard
     
View as RSS news feed in XML