Kevin
Well-known member
When doing an 'Import from a directory on your server' to bulk add new smilies, please default the "Import this smilie" check option to be false (turned off) if the file name found already exists in the smilies definition table.
Here's a real world scenario as to why this suggestion would be convenient...
Here's a real world scenario as to why this suggestion would be convenient...
If you create a folder to group smilies together by a theme, say Star Wars, in /styles/default/xenforo/smilies.starwars, and as you find new Star Wars smilies you upload them to your server in the same folder. To add them to your XF site for the initial load you can do a bulk import using the 'Import from a directory on your server' option which makes adding everything in the folder at once a really easy step.
As time goes on you keep finding new smilies and keep uploading them to the /smilies.starswars folder.
When you then go into the option to import them in bulk from the folder, everything in the folder is shown to you to import, and the 'Import this smilie' is checked on by default. The problem, of course, is that if you have 100 files in the folder and 50 of them are already defined in XF then you either have to know ahead of time which ones to turn the 'Import this smilie' checkbox off for or to enter a definition for them and find out the definitions are already defined when you try to hit the 'Import Smilies' button.
Since the bulk import from the server function is currently intended for individual images, as opposed to spritesheets, then if you as an admin already have that file name defined in your smilies then the odds are greater than you will be having to turn the check box off as opposed to you really did mean to re-add the same file but are intending to use a different definition for it.As time goes on you keep finding new smilies and keep uploading them to the /smilies.starswars folder.
When you then go into the option to import them in bulk from the folder, everything in the folder is shown to you to import, and the 'Import this smilie' is checked on by default. The problem, of course, is that if you have 100 files in the folder and 50 of them are already defined in XF then you either have to know ahead of time which ones to turn the 'Import this smilie' checkbox off for or to enter a definition for them and find out the definitions are already defined when you try to hit the 'Import Smilies' button.
Upvote
1