Animated quick messages

Here we can make tutorials ... how to ...
it will make it more easy to start with our new sites.

Animated quick messages

Postby admin » September 18th, 2010, 9:42 pm

This tutorials is made of radioact from http://www.vldcrowd.com

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
//gugu
Admin VldMods Forum
User avatar
admin
Site Admin
 
Posts: 105
Joined: 13 Aug 2010
Location: sweden
Knowledge: 6
Vld Version: 2.7
Vld Site: http://www.love2u.se

Re: Animated quick messages

Postby leoleon » September 23rd, 2010, 1:01 pm

cool
Thanks
leoleon
 
Posts: 12
Joined: 22 Sep 2010
Knowledge: 1
Vld Version: 2.5.3
Vld Site: http://www.myvldmods.de


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron