26
2011
Animated quick messages
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:
<img src=“http://www.yoursite.com/media/quick_gifs/kiss.gif” alt=“Kiss” />
Muahz cutie!
and
<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:
$body = nl2br(htmlentities2utf8($obj['body']));
replace with:
$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 ...
1 Comment + Add Comment
Leave a comment
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
Recommended Mods 4 Your Site.
Featured Posts
-
Our Community
-
Display a register form at the front page.
-
Newsletter Mail System for vldPersonals
-
Auto update copyright date !
-
Answer & Question
-
Blink icon then get new messages
-
Marketplace
-
New templates on luvpoint for vld.2.7
-
Change Join Now logo (multilanguages)
-
Include a Browser Detection
-
60 Mods to Make Your Site Better
-
Forum
-
Tool Tip Registration Mod
-
Search Engine Optimization
-
Support/Help for VldPersonals Owner
VldMods Polls
Friends
Views
- Free & Pay Mods - 754 views
- jquery step by step form. - 402 views
- Tutorials - 310 views
- How to edit the Frontpage VldPersonals. - 256 views
- Templates for Vldpersonals. - 192 views
- Coupon Code for Cometchat - 166 views
- Display a register form at the front page. - 165 views
- 60 Mods to Make Your Site Better - 163 views
- Help & Support - 157 views
- New templates on luvpoint for vld.2.7 - 115 views


An article by















Finally! This is just what I was looking for.
Like or Dislike:
0
0