So, this was raised ages ago in the private area, and I want to bring it back for discussion. It is, after all, something of a mess.
First question: do we really need the facility for multiple smiley sets?
Second question: do we really need to ensure the same smileys are present in every set?
Third question, and this is one for the programmers rather than anyone else: can we safely ditch the predefined smileys shtick? Spoiler because it's long, messy and of little importance to most people, other than the UI aspect which I'll deal with afterwards.
(click to show/hide)
I mentioned a UI problem. Adding a new smiley is incredibly unintuitive.[1]
So, if we don't have customised smileys, because internally it's *all* that customised gig, we get to massively streamline the UI. Depending on how the above other questions turn out.
Also: as far as I'm concerned you will have to use FTP/SFTP credentials to upload files. I really hope that's not a problem for anyone because I'm not prepared to budge on that; the whole point is to NOT have to change file permissions and thus encourage people to make things insecure by design.
Thoughts welcome.
First question: do we really need the facility for multiple smiley sets?
Second question: do we really need to ensure the same smileys are present in every set?
Third question, and this is one for the programmers rather than anyone else: can we safely ditch the predefined smileys shtick? Spoiler because it's long, messy and of little importance to most people, other than the UI aspect which I'll deal with afterwards.
So, smileys have the predefined list hardcoded into the smiley code in a bunch of places, so that we don't have queries when we don't need them, except that anyone who uses customised smileys in any fashion - and that's probably most people who don't have a 'businessy' site - will be using customised smileys, and thus the performance aspect.
I seem to remember that it is cached, but that's not a hard thing to check and enforce. And even if we do have the whole multiple smiley sets (which I'm not entirely convinced needs to remain but I'm willing to go with the majority), it's not like we can't just cache everything and be done with it.
So there is a performance trade off for people who do use it, versus less hit for people who don't, but then we have the UI aspect...
I mentioned a UI problem. Adding a new smiley is incredibly unintuitive.[1]
So, if we don't have customised smileys, because internally it's *all* that customised gig, we get to massively streamline the UI. Depending on how the above other questions turn out.
Also: as far as I'm concerned you will have to use FTP/SFTP credentials to upload files. I really hope that's not a problem for anyone because I'm not prepared to budge on that; the whole point is to NOT have to change file permissions and thus encourage people to make things insecure by design.
Thoughts welcome.
1. | In fact, one of my side projects is a heavily modified SMF install (there's enough custom code that I don't want to have to keep patching to keep it level with Wedge, and I don't even see my keeping it beyond SMF 2.0). For reasons I won't get into, this project's smiley set was made out of a single sprite sheet, so I crudely replaced the code in SMF with that image and offsets and whatnot, and I showed the other folks involved on the project the UI, showing off the different smileys and all the codes attached to it - and the take-away comment was "I like the whole admin control. I wish SMF had such." - as in he thought I'd made the entire UI for customised smileys, solely because no-one had mentioned to him about enabling them. |