Help
Discuss or request ArrowChat modifications
User avatar
fortrefuge
Customer
 
Posts: 4
Joined: 26 May 2015, 15:43

 

by fortrefuge 06 Aug 2015, 03:24

hi

i have chat integrated with forums, so i want it to use forum smileys. edited all the relevant javascript and includes/functions/functions_send.php to remove sizing and change img src and file extension (our forum smileys are gifs, more IE friendly). all works fine except the recipient sees a broken image plus the link to the image. i.e. i see the smileys in popup and in my entries, but other chatters see broken img and a link instead; same vice versa.

this is the line i edited in functions_send.php:
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 . '.png" alt="' . $result . '">', $text);


this is what i edited it to:
Code: Select all
$text = str_replace($pattern, '<img class="arrowchat_smiley" src="http://www.mysite.com/forum/images/smilies/' . $result . '.gif" alt="' . $result . '">', $text);


breaking my head why this isn't working. i understand it's a template modification and all, just thought maybe someone could answer, should be a simple thing.

thank you very much!
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 06 Aug 2015, 14:56

I know there are a couple places this needs to be changed. The includes/js/arrowchat_core.js file is another one.
User avatar
fortrefuge
Customer
 
Posts: 4
Joined: 26 May 2015, 15:43

 

by fortrefuge 07 Aug 2015, 08:27

Yes, of course, i edited these files:

includes/functions/functions_send.php - 1 instance;
includes/js/arrowchat_core.js - 3 instances;
public/chatroom/js/chatroom_core.js - 2 instances;
public/mobile/includes/js/mobile_core.js - 1 instance;
public/popout/js/popout_core.js - 2 instances;

Am I missing any files?
Thank you very much!