Page 1 of 1

IPS 4 - Profile picture in chat

PostPosted: 29 Dec 2016, 06:46
by winzbro
Hello,

I've noticed that the chat fails to retrieve the profile picture from IPS4 (Invision Power Suite 4) because it is accessing the wrong link.

The chat is attempting to display the PP via this wrong link: http://www.my**web.com/arrowchat/public/uploads/monthly_2016_12/happy-new-year-wallpapers-2016.thumb.png.f8be3760b9fde59a02999b868a552795.png

While the correct link should be; http://www.my**web.com/uploads/monthly_ ... 552795.png

For now, i've copied all PP files to /arrowchat/public/uploads folder and it is working.

Please fix.. I don't want to do this forever.
Regards,

Re: IPS 4 - Profile picture in chat

PostPosted: 29 Dec 2016, 10:59
by Jason
What is your base URL set to? Because the code in the integration.php file looks correct. This may be a problem with the base URL or where ArrowChat is placed on your server.

Re: IPS 4 - Profile picture in chat

PostPosted: 29 Dec 2016, 13:32
by Jason
Nevermind, I just figured out the problem. I've also updated the v2.0 package to fix this issue for anyone installing here on out.

Solution to fix this issue
Existing IP.Board users can fix this by opening the includes/integration.php file. Find:

Code: Select all
return '../uploads/' . $image;


REPLACE WITH:

Code: Select all
return $base_url . '../uploads/' . $image;

Re: IPS 4 - Profile picture in chat

PostPosted: 29 Dec 2016, 13:39
by NSharma
Ok that seems to have worked for me. Thanks

Re: IPS 4 - Profile picture in chat

PostPosted: 10 Jan 2017, 15:36
by winzbro
Thanks!