I needed an emoticon engine, so I made one (tired of writing a ‘new’ one everytime a client needs one). How to use it:
- Include the class file
- Edit it as required (suggest a url for the path to the files)
- Then do something like:
$dpe = new DPEmoticonEngine();
$content = $dpe->parseText($content);
- And its done!
If you have a lot of icons, or lots of different sets of icons then you may want to pre-load the emoticon variable.
- Set the class file as required
- Then so something like:
$dpe = new DPEmoticonEngine();
$evar = $dpe->getEmoticons();
- Save $evar in a database, create as many different setups as you like, just edit the class file each time.
- To use the saved setup:
$evar = …
$dpe = new DPEmoticonEngine($evar);
- And everything else as normal
Have fun. (and Happy New Year)
Download DisputedIP Emoticon Engine (PHP) by clicking here
This work is licenced under a Creative Commons Licence.
Twitter
- Wow, this hasn't been touched in a while 2 months ago
- @TMobileUKhelp Any news on the Galaxy Nexus? Some places have started reselling T-Mobile contracts, well lising them at least 2 months ago
- Woot, another train. Have coffee to keep me company tho. Crap - there are babies 2 years ago
- Interview went well, gonna take 3 hours on public transport to get back tho... 2 years ago
- Omg. £30 for a single, if I come back in peak time its gonna cost £50. My expenses claim is going to be interesting. 2 years ago
Tags
button c30 circuit diagram controller crc cybernetics desk distance dspic graph i2c infrared laser led microchip microcontroller Micromouse micromouse sensors minos name pic pic24 pic32 picture rapid prototype reading reading university robot schematic sensor sensors shapeways switch timer tmr0 tsl250 university of reading video voltage regulator wall sensor



