PDA

View Full Version : Massive Smiley Importer



s0ct0j0c
21-04-2011, 02:19 PM
SMILEY IMPORT - A fast and effective way to import all of your smilies into your XF Forum. A few steps to this
#1 - Unzip your smileys on your pc into their own folder. Rename any duplicates as necessary
#2 - upload all of your smileys (they must be named uniquely) into any web accessible folder on your server
#3 - upload all files in this archive where you uploaded the smileys
#4 - edit the vars.php file to be appropriate for your settings
#5 - call smiley_import.php (ie: http://www.yourforumname.com/smileys/smiley_import.php)
#6 - go into your admin panel -> smileys and edit one of your smileys. It doesn't matter which one, just edit and save it (even if you made no changes). This will rebuild the cache

This was written as a very quick hack to allow multiple smiley imports as opposed to doing them one by one. The php script automatically replaces _ with a space and adds the necessary colons to the beginning and end before inserting it into the database. This is automatically determined by filename.

This isn't really an "addon" per se, just a quick hack / resource until an easier way to do this gets put into place officially, or through an addon.