Hire us to design your site.
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 ...

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 !

5 Comments + Add Comment

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

  • I just want to mention I’m new to blogs and actually savored this web blog. Probably I’m planning to bookmark your website . You actually have wonderful writings. Regards for sharing with us your web page.

  • Hello!
    In the version 2.07 of this code occurs:

    $body = nl2br( htmlentities2utf8($obj[‘body’], ( $PREFS->conf[‘enable_bbcode’] && $PREFS->conf[‘bbcode_pms’] ) ) );

    I then replaced it with this code:

    $body = $quickmsg ? nl2br($obj[‘body’]) : nl2br( htmlentities2utf8($obj[‘body’], ( $PREFS->conf[‘enable_bbcode’] && $PREFS->conf[‘bbcode_pms’] ) ) );

    There is no picture but only text. Can you help?

    • I think it is better you ask the guys on vldpersonals forum about this !
      I am there also so I can answer you question on the forum instead ;)