Help
Ask questions about how to do or fix things in Arrowchat
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 08 Feb 2013, 16:03

Hi, i have a server with IIS on port 80 and Apache on port 8080, i have Arrowchat installed on Apache, it is working fine en port 8080, problem is i have a webpage on IIS that needs to lauch Arrowchat, it shows the chat bar but it doesn't get any users listed as online.

Other problem is that arrowchat looks for images on www.mysite.com/arrowchat... when accessed from IIS and not in www.mysite.com:8080/arrowchat..., resulting in the images not displaying
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 08 Feb 2013, 16:26

You might want to change the base URL and header/footer code to ":8080/arrowchat/". That should make it look for ArrowChat in the correct place.

The image URL can be updated in the includes/integration.php file in the get_avatar() function.
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 08 Feb 2013, 16:37

I have already done that, here is my code:

Code: Select all
<!DOCTYPE html>


<head>
  <meta charset="utf-8" />
  <link type="text/css" rel="stylesheet" id="arrowchat_css" media="all" href="http://www.mysite.com:8080/arrowchat/external.php?type=css" charset="utf-8" />
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/includes/js/jquery.js"></script>
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/includes/js/jquery-ui.js"></script>



  <title>Chat</title>

 
</head>
<body>
   
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/external.php?type=djs" charset="utf-8"></script>
<script type="text/javascript" src="http://www.mysite.com:8080/arrowchat/external.php?type=js" charset="utf-8"></script>
</body>
</html>


The chat bar appears but it shows: No one is available to chat.

I do have a session already started, if i run the same code on port 8080 then everything works fine
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 08 Feb 2013, 16:42

The image URL problem is on a Bar Link i have created, i have put the image on the themes/../images/icons folder, again on port 8080 it shows correctly, on port 80 it doesn't show
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 11 Feb 2013, 12:08

Is there any config file that i can change so that arrowchat can always search on a specific URL? like always search on www.mysite.com:8080/ ??? regardless of the URL in wich is invoked?

Sorry for my english
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 13 Feb 2013, 20:24

Thank you Jason for your reply, it seems like a problem with CORS, i got the error:

XMLHttpRequest cannot load http://www.mysite.com:8080/arrowchat/in ... ceive_core…&room=-1&callback=jQuery17102318679301533848_1360815365543&_=1360815579414. Origin http://www.mysite.com is not allowed by Access-Control-Allow-Origin.

Question is how can i fix this, the image link was fixed with your answer about setting the base to :8080/, but the users are not showing because of the error above,

Please i need help with this, i had tried including:

Header set Access-Control-Allow-Origin "*" on apache but the error continues
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 13 Feb 2013, 20:58

Ok, i get rid of the error message, but still it doesn't show any users, it only shows:

Loading...

And nothing happens,

any help?
User avatar
CGomezMeda
Customer
 
Posts: 9
Joined: 14 Nov 2012, 20:02

 

by CGomezMeda 13 Feb 2013, 22:20

Ok, thats weird, it now works fine on IE but not in chrome or in firefox
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]