• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Massive Smiley Importer

Great hack, does exactly what it says on the tin, thanks for this. ;)

If any of you have a huge amount of smilies, a mate of mine has 276 smilies so the drop-down on her site was gigantic, just add this to the EXTRA.css:

(change the 700px to what ever suits your style best!)

Code:
.xenForoSkin .mceSmiliesMenu div {
    width: 700px !important;
}
 
Replace line 37 in smiley_import.php on
PHP:
$query=$db->sql_query("INSERT into xf_smilie VALUES(NULL, '$imgname', '$imgicon', '$smiliepath/$image', 0, 'a:4:{s:1:\"w\";i:18;s:1:\"h\";i:18;s:1:\"x\";i:0;s:1:\"y\";i:0;}')");
 
Replace line 37 in smiley_import.php on
PHP:
$query=$db->sql_query("INSERT into xf_smilie VALUES(NULL, '$imgname', '$imgicon', '$smiliepath/$image', 0, 'a:4:{s:1:\"w\";i:18;s:1:\"h\";i:18;s:1:\"x\";i:0;s:1:\"y\";i:0;}')");
??
You're saying this doesn't work with updated versions? Just trying to figure out what's going on with that comment. If an update is needed, I'll happily make it and add it to the original post.
 
Back
Top Bottom