Help Center Live Community

Support => Installation Help & Software Support => Topic started by: lpenados on July 26, 2007, 12:05:18 AM



Title: One HCL for different domains?
Post by: lpenados on July 26, 2007, 12:05:18 AM
Hi.  I want to have one installation of HCL to chat with visitors from several domains.
 
I included the jscript include code (include.php) and the 'initiate' <div> in each website.  When the user requests a chat it works fine, but when an operator tries to initiate a chat the user gets no notification, e.g. this.check is not working.  When I try this in my localhost everything works fine.

I think the problem is having it in different domains since xmlhttprequest tries to connect to the domain where the visitor is at.

Am I right?  Is it possible to have one chat for many domains?  How?

Please help!  Thanks.


Title: Re: One HCL for different domains?
Post by: HCL Admin on July 26, 2007, 06:24:34 AM
I have no problem running across multiple domains, however I notice there is lag in the initiate chat portion (we rarely use it anymore).  That section needs some attention, as there is some blocking of the proper codes that needs to be tracked down.  In the past we've raised the timeout to some effect, so I believe you may be running into the same issue.

One problem I've had is differentiating which site a chatter is coming in on, however you can modify the templates to show the "department" that the chatter clicked on.


Title: Re: One HCL for different domains?
Post by: lpenados on July 26, 2007, 06:35:42 PM
Here's what I'm trying now...

I made a little page in my "host site" with the jscript-include.php and the 'initiate' div.  If I run this page and the operator tries to initiate a chat everything works fine, the guest gets the chat invitation. 

Now I include this file through an iFrame in my "guest site".  The operator sees it and tries to initiate but nothing happens.  It worked once and then never again. Weird.  I'm guessing it has to do with the timeouts like you pointed out.

Which timeout do you think should I raise/lower then or how can I fix this??  Thanks for your help!


Title: Re: One HCL for different domains?
Post by: HCL Admin on July 26, 2007, 07:47:25 PM
Ah, try dropping the code into the actual site (use an include if it's PHP) rather then an iframe.  Iframes have several issues, and it probably is hiding the initiate graphic.


Title: Re: One HCL for different domains?
Post by: lpenados on July 26, 2007, 08:52:59 PM
The graphic isn't hidding.  If I erase the "visibility:hidden" on it's style the graphic shows fine.  I even put an "alert('helo')" on the code launch() so when it woks it alerts me.  It still doesn't work :S

I really don't know what else to try.  Thanks for your help.


Title: Re: One HCL for different domains?
Post by: HCL Admin on July 27, 2007, 12:36:57 AM
PM the URL to me, and I'll see what  I can find out.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 07, 2007, 05:36:28 PM
I am having similar issues. It also does not update the who's online properly and the status of operators online/offline. The problem seems to be that the install of hcl is on one domain and the ajax code points to that domain. Ajax *WILL NOT* allow calls to another domain name. From what I read, even subdomains are considered other domains, but they seem to work for me. Any comments would be appreciated.


Title: Re: One HCL for different domains?
Post by: HCL Admin on September 07, 2007, 05:45:15 PM
That's very strange since I use the same HCL install for 15 different sites.  However all 15 are on the same server, so I'm wondering if that's the issue. 

BTW, it's actually not quite AJAX, although it's very AJAX like. :)  It uses a custom library.  However Java itself has various security features that may be bumping this in the bottom.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 07, 2007, 06:17:24 PM
I retested and that is exactly what it is doing. If it is the same domain or subdomain, it will work fine, but if it is another domain (I have them all on the same server and IP) it will load correctly, but will not show any offline if I take the operator offline. It also will bring to the no no operators available window if I try to chat.
I thought a work around would be to install hcl in the directory of the webserver and change the insert code to point to that install, but if the operator is not on that domain, it shows up on the operators console, but shows offline on the webpage and does not acknoledge the operator.
I actually expected this to work as the info is all in the same database, but it must some how look by the calling domain.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 07, 2007, 06:21:20 PM
I have an idea on an easyway to check if it is a browser problem. Does anyone know how to track the calls from the browser, or the incoming calls to php? I have w2003 and iis6 with latest php.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 07, 2007, 06:38:22 PM
I also tested firefox and it does the same thing. I think it is something on the server side as firefox show it calling the server on the bottom unless it is showig it and blocking it.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 07, 2007, 10:40:32 PM
Any ideas on this?


Title: Re: One HCL for different domains?
Post by: HCL Admin on September 09, 2007, 04:21:20 AM
How is PHP installed?  It can really make a difference.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 11, 2007, 03:45:31 PM
Not sure what you mean by how is php installed. I have not used it much so I just followed the directions. Are there some specific settings in the php.ini that I should be concerned about? I have verfied safe mode is off. I tried to post my php.ini, but it was too large.


Title: Re: One HCL for different domains?
Post by: HCL Admin on September 11, 2007, 06:28:40 PM
Actually, on Windows IIS, there a couple of different ways to install PHP, Belite is the resident IIS guy, and he could probably tell the pros and cons of each way better then I ever could (I've given up on Vista, and am once again 95% tux powered...  We have one Win2K machine for testing things.)


Title: Re: One HCL for different domains?
Post by: troyd1 on September 11, 2007, 08:09:44 PM
I am remebering something from the install and I think by options, you may mean cgi vs asapi(not sure on spelling as I am doing it from memory). I installed it as asapi.


Title: Re: One HCL for different domains?
Post by: troyd1 on September 11, 2007, 08:12:00 PM
I followed the install recommended by Peter Guy.

http://www.peterguy.com/php/install_IIS6.html



Title: Re: One HCL for different domains?
Post by: HCL Admin on September 11, 2007, 10:05:33 PM
Do all the domains have the same IP address?


Title: Re: One HCL for different domains?
Post by: troyd1 on September 11, 2007, 11:21:56 PM
Yes, and my plan was to have one installed as the ip address so that when locations come across the top of the apps, it would only show the ip address and not the domain of the install. This works the same(has the same issues) also. The domain that has the ip address works with the code I generated for that ip address if the web page is also brought up using the ip address.


Title: Re: One HCL for different domains?
Post by: naseem@ispg.in on September 11, 2007, 11:38:50 PM
Yes same problem.... i was not able to start initiate (admin to user) chat. domains were different. i changed all hcl files to root domain. Now it is working well. i think the problem is coming from that ajax code. 


Title: Re: One HCL for different domains?
Post by: HCL Admin on September 12, 2007, 08:31:46 AM
Hmm, very strange that it works on Unix (ok, Linux) and now Windows servers,  I'll dig into it today and see what I can find.