DNN Integration and Username

Last post 10-01-2004, 1:02 AM by qsnow. 4 replies.
Sort Posts: Previous Next
  •  09-30-2004, 9:14 PM 1969

    DNN Integration and Username

    Is there a way to have the CuteChat app pull peoples username instead of firstname?
  •  09-30-2004, 9:31 PM 1970 in reply to 1969

    Re: DNN Integration and Username

    qsnow,

     
    The CuteChat uses the username instead of the whole name (first name, last name).
     
    A user name is John Smith, user name is John_Smith.
     
    CuteChat will use the username: John_Smith.
     
    Does that help?
     

    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-30-2004, 9:43 PM 1971 in reply to 1970

    Re: DNN Integration and Username

    Everyone on my site knows each other by their login name - so thats what I was hoping to get...  Something seems to be wrong with how it is finding the names tho.  One person was identified as Autumn and another as Jason.  The person as Autumn has a first name registered on the site as 'Patricia' and a username as 'Grago'.

     
    Jason's first name should have been labeled as John...  Really wierd...
     
     
    Hm.  Where does it query the DNN portal for the NickName?  Maybe there I can see what its doing for my solution.
     
    Also.. Another option - is there a way to have it always 'prompt' for a username instead of attempting to read the username from the portal first?  That might be a workaround for it not identifying correctly and to allow my users to enter their nick/handle instead of it pulling from the first/last name fields.
  •  09-30-2004, 10:44 PM 1972 in reply to 1971

    Re: DNN Integration and Username

     
    Please check the
     
    CuteChat >> Toolkit >> Solution >> CuteChat.DotNetNukeLib >>  SqlDataProvider.cs and UserIdentityAdapter.cs
     
    Those two files show you how the CuteChat integrate with the DotNetNuke portal.
     
    Keep me posted

    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

  •  10-01-2004, 1:02 AM 1973 in reply to 1972

    Re: DNN Integration and Username

    Thanks for the fast responses and support.  A couple of things - 1 is more on the documentation side.  I should have caught it originally during the install - but wasn't thinking and just followed the instructions.  In the install wizard - when you select the integration portal/type - the pulldown for the database has 'dotnetnuke.dbo.' in there for the DNN solution.  The wizard then uses this information and builds the web.config file.  I had changed the name of my database a while back.  The mis-identifications I was getting was because it was still pointing to the old database.  Changing the <add key="CuteChatDotNetNukeOwnerPrefix" value= line to the correct database resolved that issue.

     
    For what part of the user information is identified for the UserList - I modified the CuteChat.DotNetNukeLib -> SqlDataProvider.cs file.  Originally it does the following query:
     

    cmd.CommandText="select FirstName,IsSuperUser from "+OwnerPrefix+"Users where Username=@username ";

     
    This effectively is pulling the firstname from the logged in user.  I changed the query to:
     

    cmd.CommandText="select Username,IsSuperUser from "+OwnerPrefix+"Users where Username=@username ";

     
    to pull the logged in users username/handle.  Rebuilt the solution and slapped the .dll in place.  This works much better in my environment as that is how everyone knows each other.
     
    Great work on the project. I look forward to continued testing over the next few days.
View as RSS news feed in XML