ElkArte Community

Title: Bulk Smileys
Post by: Allan on September 08, 2014, 10:42:34 am
I know we can upload sets, but they have to be manually entered and given a code. It would be great to have a bulk way of doing this so it doesn't take so long.
Title: Re: Bulk Smileys
Post by: emanuele on September 08, 2014, 10:46:11 am
nods
Title: Re: Bulk Smileys
Post by: emanuele on October 05, 2014, 08:13:47 am
Some random thoughts about this one.

1) I can see two ways to "upload" bulk smiley: a) via a package, b) from a directory on the server.
2) Decide the code can be easy or tricky or both. Easy way pick the name of the file, remove the extension, add a pair of colons at the beginning and at the end, and here it is the code. Tricky way account for a file (in the package) that somehow associates the file with one or more codes[1]
Code: [Select]
evil.gif:
  - :evil:
  - >:-D
smile.png:
  - :)
  - :-)
  - :smile:
. Of course one way doesn't exclude the other.
The format may be yaml, it should one of the best options for "configuration" instead of the usual xml.
Something like: