Okay, so I’ve recently got my hands on the script to a textCMS system. However I wish to ‘develop’ it more for myself as its just too basic for my liking. I wouldn’t say I’m a ‘starter’ php coder, however I’m not very advanced.
http://ppGATE.net <– this is the CMS I am using.
Could someone please help me in introducing that when I use the online page editor, that if I use 🙂 or 😛 that it changes it to a emot.
I’ve looked online and not really found anything that works yet.
Any help is thankful.
Repeat for the different smilies.
I’d say you are in fact a starter if you can’t figure this one out on your own. You want to replace text smiley faces with images of smiley faces, correct? The code pretty much spells itself out.
If you want to get fancy like Joseph, you can also do this:
No need for regexes here.