Have you received quick message today? ;)
Although we don't need quick messages on this site but as they say "diagram worths many words".
Spend 15 minutes and your users appreciate your efforts.
1. Find two animated icons: one for wink and one for kiss. You may take mine though I'm not sure about copyrights. I don't remember were they free or paid.
Upload icons to your website. Let's say '/media/quick_gifs/' folder.
2. Open CP->Settings->Quick messages and edit them accordingly:
- Code: Select all
<img src="http://www.yoursite.com/media/quick_gifs/kiss.gif" alt="Kiss" />
Muahz cutie!
and
- Code: Select all
<img src="http://www.yoursite.com/media/quick_gifs/wink.gif" alt="Wink" />
Wanna chat sometime?
Almost done.
If we send quick message now we get '<img src="http://www.yoursite.com/media/quick_gifs/wink.gif" alt="Wink" />' as is. That's happen because all messages cleaned up before displaying for security reasons.
But we can trust quick messages as we trust News made in CP and enable html for them as well. Let's do it in the next step.
3. Open /includes/lib/lib.account_messages.php and find function show_message
Around line 1170 (commercial version) code:
- Code: Select all
$body = nl2br(htmlentities2utf8($obj['body']));
replace with:
- Code: Select all
$body = $quickmsg ? nl2br($obj['body']) : nl2br(htmlentities2utf8($obj['body']));
Now we trust quick messages yet clean up regular messages.
Voila!
you can read the originalpost from vldcrowd