Dotnetnuke 4.4.1 Integration

Last post 09-07-2007, 9:23 AM by Wolverine10. 7 replies.
Sort Posts: Previous Next
  •  09-05-2007, 11:56 AM 33268

    Dotnetnuke 4.4.1 Integration

    What's up all,
      I installed the Chat/Messenger module...that works fine.
     
    But I am having trouble with integrating the IM Message into my other modules.
     
    I would like to popup a messenger window open when the users name is display within certain modules.
     
    I looked around and can't seem fine another user doing this and the integration instructions are really not explaining a lot.
     
    I am adding this to my default.aspx page:
    <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>
     
    Then within the specific modules, I have this:
    <a href="#" onclick=Chat_OpenContact('<%# DataBinder.Eval(Container.DataItem, "Username") %>')"><img src="~/DesktopModules/CuteSoft_Client/CuteSoft_Client/CuteChat/Images/avatar.gif" runat="server" />Chat</a>
     
    When the page loads I am getting a syntax error and then when I try and click the "chat" button I get the object required error.
     
    Anyone run into this?
     
    Do I need to do any other integration to get users into the ChatUsers table or something to make this work?
     
    Thanks!
  •  09-05-2007, 12:45 PM 33269 in reply to 33268

    Re: Dotnetnuke 4.4.1 Integration

    Wolverine10,
     
    Are you sure you set the following path correct?
     
    <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>
     
    Try using site relative path:
     
    <script src="http://cutesoft.net/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>
     
    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

  •  09-05-2007, 1:45 PM 33275 in reply to 33269

    Re: Dotnetnuke 4.4.1 Integration

    the only way I can get it to even come close to working is if I copy and paste the contents of the IntegrationUtility.js.aspx in to the top of the default.aspx page and hardcode in the url at the top:
    var __cc_urlbase='http://localhost:9500/DesktopModules/CuteSoft_Client/CuteSoft_Client/CuteChat/';

    If I don't do that, it will find the file but it logs me out every time I try and navigate to another page on the site.
     
    Now I can at least get a window to pop up but I keep getting some kind of 404 error trying to find a "Login.Aspx" file?  I can't seem to find it either.
     
    Please help!
  •  09-05-2007, 2:17 PM 33276 in reply to 33275

    Re: Dotnetnuke 4.4.1 Integration

    Wolverine10,
     

    <%@ Control Language="vb" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>
    <%@ Import Namespace="DotNetNuke" %>
    <%@ Import Namespace="CuteSoft.Chat" %>

    <script src="<%=ResolveUrl("~/DesktopModules/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx")%></script>

     

    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-06-2007, 3:10 PM 33338 in reply to 33276

    Re: Dotnetnuke 4.4.1 Integration

    Hi Adam,
      If you wanted me to put that in my default.aspx page, then that will not work since it is already inheriting it's own assembly.
     
    And if I hardcode in the script src path (just to see if it works) it still won't work and gives me JS errors that it can't find the object that it is trying to call?
    Any other thoughts?  Do you have an example of a working DNN integration?  If so, maybe you post that code?
     
    Thanks again! 
  •  09-06-2007, 4:04 PM 33343 in reply to 33338

    Re: Dotnetnuke 4.4.1 Integration

    <%@ Import Namespace="DotNetNuke" %>
    <%@ Import Namespace="CuteSoft.Chat" %>

    <script src="<%=ResolveUrl("~/DesktopModules/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx")%></script>


    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-06-2007, 4:07 PM 33344 in reply to 33276

    Re: Dotnetnuke 4.4.1 Integration

    OK, right now I am just trying to get it to work so I am hardcoding in all of the URL references just to see if I can get it to work...I will deal with the URL problem myself later....
     
    Now the window pops up, but I am getting the following on the "Utility_RedirectContact.aspx":
    Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'CuteChatConfig'.

    Source Error:

    Line 10: string uniquename=Request.QueryString["UniqueName"]; Line 11: Line 12: if( ! ChatWebUtility.CurrentIdentity.IsRegistered ) Line 13: {

     
    Any thoughts on that one?
    Thanks!
  •  09-07-2007, 9:23 AM 33369 in reply to 33343

    Re: Dotnetnuke 4.4.1 Integration

    Ok...after testing and playing I FINALLY got everything working...
     
    I think my original problem was that I was trying to launch the window from a child portal, which I will have to play with and try and figure out.
     
    But also I could not get the above code to work at all....It gave me an error every time...Invalid Syntax in "IntegrationUtility.js.aspx"...blah blah blah
    The way I finally got it to work was that I copied just the "javascript" code into to a .js file.  Then I created a function that will return that redirect url base:
    function getURL()
    {
       return '/DesktopModules/CuteSoft_Client/CuteSoft_Client/CuteChat/';
    }
     
    BTW when you install on DNN you get that path instead of what you have written above.
     
    Then I hardcoded in the src path to the new js file.
     
    Seems to work now.  I will have to do more testing but it is at least loading the chat window now with the user.
     
    Adam...Great product!  and I know you are more used to installing on Community Server, but it might be good to nail down the DNN install and configuration instructions as much as you do with the Community Server...But just a thought.
     
    Thanks for the input!
View as RSS news feed in XML