Help
Ask questions about how to do or fix things in Arrowchat
User avatar
techflare
Customer
 
Posts: 5
Joined: 28 Mar 2012, 15:29

 

by techflare 17 Apr 2012, 21:34

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.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 17 Apr 2012, 23:59

Thanks! I'll check this out and see if it is indeed a bug.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 18 Apr 2012, 00:49

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.
User avatar
techflare
Customer
 
Posts: 5
Joined: 28 Mar 2012, 15:29

 

by techflare 19 Apr 2012, 23:12

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.
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 19 Apr 2012, 23:55

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?
User avatar
techflare
Customer
 
Posts: 5
Joined: 28 Mar 2012, 15:29

 

by techflare 22 Apr 2012, 16:50

Hi Jason,

Thank you - that's fixed it. And yes, we're on windows.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 07 Nov 2012, 12:40

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.