############# Smiley Helper ############# .. important:: This library is DEPRECATED and should not be used. It is now no longer supported. Currently only kept for backwards compatibility. The Smiley Helper file contains functions that let you manage smileys (emoticons). .. contents:: :local: .. raw:: html
Loading this Helper =================== This helper is loaded using the following code:: $this->load->helper('smiley'); Overview ======== The Smiley helper has a renderer that takes plain text smileys, like :-) and turns them into a image representation, like |smile!| It also lets you display a set of smiley images that when clicked will be inserted into a form field. For example, if you have a blog that allows user commenting you can show the smileys next to the comment form. Your users can click a desired smiley and with the help of some JavaScript it will be placed into the form field. Clickable Smileys Tutorial ========================== Here is an example demonstrating how you might create a set of clickable smileys next to a form field. This example requires that you first download and install the smiley images, then create a controller and the View as described. .. important:: Before you begin, please `download the smiley imagesClick to insert a smiley!
When you have created the above controller and view, load it by visiting http://www.example.com/index.php/smileys/