Jul
26
2011

Animated quick messages

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: HTML

<img src=“http://www.yoursite.com/media/quick_gifs/kiss.gif” alt=“Kiss” />
Muahz cutie!
 

and
 

code: HTML

<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:  PHP

$body = nl2br(htmlentities2utf8($obj['body']));
 

replace with:

code: PHP

$body = $quickmsg ? nl2br($obj['body']) : nl2br(htmlentities2utf8($obj['body']));
 

Now we trust quick messages yet clean up regular messages.

thanks radioact for this nice tutorial ...

 If you REALLY want to spice up your message, open your account_messages_view.tpl file and insert this in the bottom, just above the footer code:
 
<!– IF message_subject == “EXACT QUICK MESSAGE SUBJECT HERE” –>
<embed height=”30″ src=”http://www.sound-effect.com/sounds1/human/kiss_up.wav” width=”344″ AUTOLOAD=”TRUE” AUTOSTART=”true” VOLUME=”100″ HIDDEN=”true”></embed>
<!– ENDIF –>
 
Then you will hear a cool ‘kissing’ audio when the message is opened to complement the animation;)

thanks maxpower for this solution ...
0
VldMods

About the Author: gugu

Hey ... I´m the owner of this site ;) If you need help customize your vldpersonals site. Please ask me and I will try to help you. Enjoy reading !

1 Comment + Add Comment

  • Finally! This is just what I was looking for.

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a comment

About VldMods

Welcome to vldMods here we will try to connect all free and pay mods for vldpersonals 2.5.3 and newer.

You can now translate VldMods in 50 different languages.

Translate a post then you Continue Reading »

Add your vldpersonals site here.

Sponsor/Donate to VldMods

I hope you like VldMods if you sponsor me I can make it even better ;) Thanks.

Find Us On Facebook

VldMods Newsletter

Subscribe to VldMods Newsletter a confirmation email will be sent to you!
This is a good way to be informed about our tutorials and news.


Recommended Mods 4 Your Site.


Easy Signup USD $18.00
This extension allows you to have a fully working signup form on any page of your website.


Smilies Galore USD $14.00
Adds smilies functionality to comments, guestbooks, blogs, photos descriptions, etc


Mobile Redirect USD $14.00
Automatically redirects a visitor with mobile device to a mobile version of your site.


Multi Upload USD $55.00
Use a jquery Multi Upload function then you need your members to upload more than one pictures every time. With this mod you can upload multi pictures all at ones.

VldMods Polls

Do You Like VldMods Site?

Friends

Vldcrowd
Luvpoint
Vldpersonals
tell me if you are my friend and I will show your link here ;)
EnglishFrenchGermanItalianPortugueseSpanishSwedish