Page 1 of 1
Smiley images broken
PostPosted: 17 Apr 2012, 21:34
by techflare
Hi,
I'm trying out a trial version of Arrowchat and it all seems fine except one thing - when you send a smiley, the sender can see the smiley fine, however the recipient sees a broken image. Inspecting the image shows that the path is wrong - it's missing a slash. An example:
/arrowchat/themesnew_facebook_full/images/smilies/smiley.gif
There should be a slash between themes and new_facebook_full.
PostPosted: 17 Apr 2012, 23:59
by Jason
Thanks! I'll check this out and see if it is indeed a bug.
PostPosted: 18 Apr 2012, 00:49
by Jason
I verified that it does work and the coding seems to be correct.
When a message is sent, "DIRECTORY_SEPARATOR" is used between themes and the theme name (in this case new_facebook_full).
I've never heard of DIRECTORY_SEPARATOR not working on a server before and that would cause issues in other parts of the code too. Perhaps it is a problem with IonCube Loader but we can certainly fix this for you either way if you decided to purchase.
PostPosted: 19 Apr 2012, 23:12
by techflare
Hi Jason,
Thanks for the reply! We went ahead and purchased the product after being impressed by its feature set and your customer service. I went ahead and installed the premium version. Unfortunately, I'm still seeing this behaviour.
If it makes troubleshooting any easier, I went into the database and had a look at the data in the "arrowchat" table's "message" field and it had this -
<img class="arrowchat_smiley" height="16" width="16" src="/secure/arrowchat/themesnew_facebook_full/images/smilies/smiley.gif" alt="smiley">
You can see the slash is missing from there too.
I'm testing this by using Chrome on one monitor and FF on the other. It doesn't matter if I type in Chrome or in FF, the result is the same.
PostPosted: 19 Apr 2012, 23:55
by Jason
Try opening up the arrowchat/includes/functions/functions_send.php file and change this (line 61):
- Code: Select all
$text = str_replace($pattern, '<img class="arrowchat_smiley" height="16" width="16" src="' . $base_url . AC_FOLDER_THEMES . DIRECTORY_SEPARATOR . $theme . '/images/smilies/' . $result . '.gif" alt="' . $result . '">', $text);
To:
- Code: Select all
$text = str_replace($pattern, '<img class="arrowchat_smiley" height="16" width="16" src="' . $base_url . AC_FOLDER_THEMES . '/' . $theme . '/images/smilies/' . $result . '.gif" alt="' . $result . '">', $text);
I can't imagine this will work but it's worth a try. This will only effect new messages.
Are you on a Windows server by any chance?
PostPosted: 22 Apr 2012, 16:50
by techflare
Hi Jason,
Thank you - that's fixed it. And yes, we're on windows.
Topic Closed
PostPosted: 07 Nov 2012, 12:40
by Staff Bot
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.