Topic: [WIP] Custom Smilies/Smiley Gallery
Custom Smilies & Smiley Gallery
This mod replaces the built-in smiley parser with one that is backed from a database. It also create a page displays all of the smilies you have in the database.
You can see an example here.
There is currently no admin interface because I do not know how to make one But I am still working on it. Smilies must be inserted directly into the database. For help doing this I will explain the schema of the 2 tables this extention creates:
id - a unique id number assigned to the category
category_name - a descriptive name for the category
category - the id number (see above) of the category this smiley belongs to
replace_text - the text that this smiley replaces in a parsed string
alt_text - some text to show when you hover over the smiley in a parsed string
smiley_file - the name of the smiley's graphic. This is relative to img/smilies/, so for example, if your smiley is called "happy.gif" and it's in the img/smilies folder, just make this value "happy.gif".
If you are using the BBCode bar, the smilies will be automatically hidden. Perhaps I should replace that with just a link to the smilies page?
Anyway, if there is futher interest, I will continue to work on this, otherwise it suits my needs. This is my first extension, so if anyone has any commentary about how bad the code is and how to make it better, I'd be glad to hear it . And of course, suggestions are always welcome.
custom_smilies_punbb.zip - version 1.0
EDIT: Was missing a comma in the installer, fixed that!