Page 1 of 1

includes/functions/functions_send.php edit glitch?

PostPosted: 06 Aug 2015, 03:24
by fortrefuge
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!

Re: includes/functions/functions_send.php edit glitch?

PostPosted: 06 Aug 2015, 14:56
by Jason
I know there are a couple places this needs to be changed. The includes/js/arrowchat_core.js file is another one.

Re: includes/functions/functions_send.php edit glitch?

PostPosted: 07 Aug 2015, 08:27
by fortrefuge
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!