designcreateplay/NodeBB — pull request #1069 by akhoury (2014-02-20 07:39:20+00:00)
Title: Added Topics thumbnails support

#### probably needs more work, but that's my first iteration.

Turn it on in the ACP, it's OFF by default.
![screen shot 2014-02-20 at 1 18 34 am](https://f.cloud.github.com/assets/1398375/2215624/2c682cb4-99f7-11e3-9e41-f26137e1b930.png)

click the image icon to toggle the upload fields, which only shows up if there is an upload plugin installed AND allowTopicsThumbnail is turned on AND if (creating a New Topic OR editing a topic's Main post)
![screen shot 2014-02-20 at 12 30 05 am](https://f.cloud.github.com/assets/1398375/2215617/01821690-99f7-11e3-9f06-4d067250a561.png)

paste a url or select a file
![screen shot 2014-02-20 at 12 31 28 am](https://f.cloud.github.com/assets/1398375/2215619/0a582340-99f7-11e3-9b1b-18311cbd6708.png)

see the image in the category page, instead of the user picture, meh
![screen shot 2014-02-20 at 1 17 28 am](https://f.cloud.github.com/assets/1398375/2215621/148c5ca0-99f7-11e3-86b9-8adebc5f8112.png)

### General stuff worth mentioning:

* added new config setting `allowTopicsThumbnail`, configurable in the ACP under Settings > General
* Feature won't work without a Upload Plugin installed, such as [nodebb-plugin-imgur](https://www.npmjs.org/package/nodebb-plugin-imgur)
* I did this with as less (not Leaner CSS) CSS as I could, using mostly BS classes and such, however, I had to inline a small `