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!