Sunday, September 5th, 2010

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 --
1561 Downloads To Date

HotScripts.com
Rating: 4.27 / 5
Votes: 15
Hits: 4,151

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)

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.

asdasd
12/31/2006 04:15 AM
:) :P :D :S (L)
JMan: Moot.

Jenny
11/18/2006 04:32 PM
sorry
JMan: Confused.

dfsa
09/08/2006 11:34 AM
:@(A):-#8-|8o|(H)
JMan: Likewise. I think.

asdasd
08/14/2006 02:17 AM
Smile Smile
:D Open-Mouthed Open-Mouthed
:P Tongue Out Tongue Out
;) Wink Wink
:( Sad Sad
:S Confused Confused
:| Disappointed Disappointed
:'( Crying Crying
JMan: Why someone would copy the whole example window, and paste it as a comment, I'll never know... Sorry I had to ruin your fun by editing your post.

Rose's smelly a--
06/10/2006 01:05 PM
(nah)(6)(xx)(um)(yn)(ci)(mo)(au)(li)(tu)(h5)(K)(%)(?)
In english that means..
I was once a smelly goat who used to date the devil. We would play X-box together. I went outside with an umbrella. I gave the devil a high 5 with a cigarette in my hand. He left me. I was homeless, so I needed money to buy a car. There was a storm. I found a turtle, and we started to ba friends. I gave him a high 5. Then I kissed him. I went to jail because that was illegle for me to date a turtle that was a 48 year old turtle that was a man and lived with his mom.
JMan: I'm sorry for everyone who wasted their time reading that. And this comment too. I'm sorry, lol.

2laak
04/27/2006 04:08 AM
thanx go out from Slovakia!
JMan: Any time (from Canada).

Putte
04/09/2006 04:30 AM


YEAH nice script!
JMan: Thanky =)

HISHAMHANY
03/24/2006 07:05 AM
hiii
JMan: Helloooo

Billy
03/21/2006 01:11 PM
Test comment
JMan: Test reply. Yep, works.

demoguestbook
02/16/2006 10:48 PM
JMan: ...yep, thanks for that

Swoop
02/14/2006 12:10 PM
This is very cool. <:0) )

Awesome1
JMan: It works better when you type the right keys... but still, thanks.
It's actually a small letter o in the <:o) code, not the number 0.

SHARKY
02/14/2006 11:29 AM
Hello

MSN Emoticons Script is very good.
I like it.
JMan: I moved this from the guestbook to here, cause that's what this thing is for. But thanks :)

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.