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 ...
5 Comments + Add Comment
Featured Posts
-
Why we need a Bootstrap theme for VldPersonals. Campaign Now 30% OFF
-
Answer & Question
-
Blink icon then get new messages
-
Forum
-
Search Engine Optimization
-
Marketplace
-
Auto update copyright date !
-
60 Mods to Make Your Site Better
-
Support/Help for VldPersonals Owner
-
Tool Tip Registration Mod
-
Register Step by Step Mod
-
Newsletter Mail System for vldPersonals
-
Our Community
-
Videos Fun & Friends
-
New templates on luvpoint for vld.2.7
-
Bootstrap 3.0 Theme for VldPersonals
-
Display a register form at the front page.
-
Include a Browser Detection
-
Change Join Now logo (multilanguages)
Finally! This is just what I was looking for.
vldmods contact
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 ;)