View Full Version : Php script emoticons


MaGiCSuN
03-19-2003, 09:43 AM
hi there,

i want to add smilies to my blog @ blogger.com but i don't want to use the proper <img> tag

So i went looking for an smiley script written in PHP but all i could find was a script for a tagboard (clicking the image adds the code to the message) or the script b2.

Does anyone know if it is possible to add a PHP script to your blog that changes your codes to real smilies without the <img> tag? Also i know there are scripts for guestbooks, but are they also usefull for blogs? thanks allot !

Love,
Mirna

bejayel
03-20-2003, 05:41 AM
erm give me a second here i am trying to remember.
$chat=ereg_replace(":(","<img src=smiles/2.gif width=15 height=15 vspace=0 border=0>",$chat);

that is the code to do it whne a user inputs something. but i completely forget how to do it regularly. lol.

MaGiCSuN
03-20-2003, 03:05 PM
yes... but where i have to put this? and do i have to make some special files for it?

Love,
mirna

jen-angel
03-21-2003, 01:09 AM
Mirna
I think so. you can get smilies at My Smilies (http://www.mysmilies.com)
There's 100+ smilies to use.

bejayel
03-22-2003, 12:53 AM
<?
$ereg_replace...
?>
<html>
<head>
<title>untitled</title>
</head>
<body>
text tet text text :) <--(that will make a smiley)
text text text text text
and so on.
and yes you do have to make images, but it saves you the greif of typing in the <img> tag all of the time. of course you have to make an image for the smileys, where else would you get the image from? your lucky i am not mean on this board. lol the other one i go to i am really mean. and on my board i wil be really mean...(lol once i get it up)

MaGiCSuN
03-22-2003, 05:25 PM
Thanks allot! i will try it asap :)

Jen-angel : sorry i wasn't really clear hehe. I was talking about the php, if i had to make special files for that in order to make it work. Thanks though for the url !

Love,
Mirna

MaGiCSuN
03-22-2003, 06:12 PM
Just to make sure, do you need to use .php pages to make this work? or can you just add this to an .html page too? i now this sounds dumb, but no matter how hard i try, the codes still are there in text (the smiley codes) and don't change to images that's why i want to make sure. Thanks for the great help!

Love,
Mirna

MaGiCSuN
03-23-2003, 11:58 AM
Nevermind about this. Thanks for your code though!

i had to make a blog.php and blog.html and then put an special php code on the.php page that would link to the blog.html

anywayz, i got the smilies to work! thanks for your help :)

Love,
Mirna

jen-angel
04-08-2003, 06:39 AM
I know this is kinda old....but this is the stuff I need help with.
I have these smilies I would like to use with my Moveable Type blog. is there a way to set it up like the ones on greymatter. I mean like when I type an entry and if I say go like this :D it will show a certain smilie......but for the comments it have a box and in the box it will have the smilies in a table, and if the visitor clicks the smilie he/she would like to use, it inserts it into the comment.


Is this possible?


please email me at jenny_boo@msn.com