Monday, February 6th, 2012

MSN Messenger Emoticons Script
Root page of JMan's Bedpan
A short little bio of JMan and JMan's Bedpan
Some PHP scripts that JMan has written, for public use. MSN Emoticons, Weather, Webcam, Latest Version, Cache, HotScripts
Other random stuff that doesnt belong on any other page. Family Feud Cheat, I *Heart* James, Stupidest Famous Last Words, Funny Search Engine Queries, Funny Euphemisms
Rants by Blakey
A bunch of useful links
. : : MSN Emoticons Script

This little chunk of code takes the string passed to it, and replaces any instances of MSN Emoticon codes with the corrisponding icon.


:) :D :O :P ;) :( :S :| :'( :$ (H) :@ (A) (6) :-# 8o| 8-| ^o) :-* +o( :^) *-) <:o) 8-) |-) (C) (Y) (N) (B) (D) (X) (Z) ({) (}) :[ (^) (L) (U) (K) (G) (F) (W) (P) (~) (@) (&) (T) (I) (8) (S) (*) (E) (O) (M) (sn) (bah) (pl) (||) (pi) (so) (au) (ap) (um) (ip) (co) (mp) (st) (li) (mo) (%) (R) (?) (#) (ci) (brb) (tu) (h5) (xx) (yn) (nah) Explanations:

#.gif - All the different emoticon image files.
index.php - A redirecting index page to prevent directory viewing.
gpl.txt - A copy of the General Public License.
msn.php - The script page. Include it in the page you want emoticons with, then call its functions.
readme.txt - A quick readme file.


EXAMPLE:

<?
# Format: 
# Smilies($text)
#    $text is the string that you want the image codes to be replaced in

include ("msn.php");
$text "Look at me! :) All fancy with my MSN emoticons! :P Woo! |-)";
echo 
Smilies($text);
?>
Look at me! All fancy with my MSN emoticons! Woo!
Here is a complete list of emoticons.

-- DOWNLOAD --
2441 Downloads To Date

HotScripts.com
Rating: Not Yet Rated / 5
Votes: 0
Hits: 0

LASTEST UPDATES:
July 7, 2009
Again, *hopefully* fixed a problem with the party icon. Also added alt and title tags.

December 13, 2005
Fixed issue with the party icon <:o) , where :o was being detected before <:o)

[Show All 17 Comments]

phlum
12/02/2010 03:48 PM
How can I implement this into Wordpress?
JMan: I don't use Wordpress? I code my own...

Jesse
08/22/2010 06:50 PM
I notice this is in php, will it work with javascript for clientside?
JMan: The main function is a simple str_ireplace. As-is, it will not do beans in javascript. But the icons, and idea could be used in a client side function, just as easily. I'm no javascript wizard though.

This script was written in PHP, which does not use the same functions as javascript. It would need to be rewritten to run in javascript. A javascript equivalent would not be too hard to write, but as i mentioned, I am not the greatest with javascript.

CONFUZED
07/05/2009 07:35 PM
+-o
im confused
can u please help me?
i wanna do this on may stie but i cant seem to get it
<:O)
thanks
JMan: I've updated the script with a version that *should* work no matter what. Let me know how it goes. Future reference: adding your email address to your comment would let me reply to you directly. Enjoy.

aisserf
03/21/2008 03:43 PM
you are missing some icons, like for ex: ('.')
try that one with the new messenger. It's a rabbit.

MANUEL
02/20/2007 11:52 PM
QUE HONDA (?):^)8-|8-|
JMan: Likewise.

[Show All 17 Comments]

Add a Comment (Max: 1 Per Hour)

Please make sure that your comment pertains to this page. If it has nothing to do with this page, I'll just delete it. If you want, you can send me an email here: jman@bedpan.ca.

Name :
Email or URL :
Verification :
All fields are required for submission. Entries with blank fields will not be posted.

disclaimer:
the comments posted throughout my site are submitted by other users.
the things said are not endorsed by me, and do not represent my opinion.