AntiMetaman wants to create a custom button that allows users to upload a specific file, which would then be converted into an image. Additionally, they want to create a category with a grid layout, similar to an image gallery, with image thumbnails and captions.
osioke suggests using theme-components like User Portfolio, Featured Tiles, and Topic List Thumbnails to achieve the grid layout. They also recommend reverse-engineering the Formatting Toolbar plugin to add custom buttons.
AntiMetaman finds that the Formatting Toolbar plugin conflicts with the official bbcode plugin, but Steven suggests using the Md Composer Extras theme component as an alternative.
AntiMetaman plans to study the code to create a custom button, and later updates that the easiest way to create custom bbcode is to reverse-engineer the Awesome BBCodes plugin, according to a thread on Meta Discourse (AntiMetaman).
I’m new to Discourse. I’ve installed it already and am playing around with it. There is one feature I’d really like and maybe this is already possible which is why I’d like to ask.
I want to create a category in my forum which is similar to an image gallery. If the user makes a post in this category, it would appear like a grid with an image thumbnail, and a caption with things like user views, ratings (thumbs up) and date posted.
Note that only this specific category should be shown as grid layout, not other categories.
Furthermore, I want to create my own button that allows a user to upload a specific file. Upon uploading the file, a custom code would convert that file into an image. It’s similar to bbcode. Where is the documentation to create custom buttons with a code?
Thanks for the reply! I see that the formatting toolbar conflicts with the official bbcode plugin. I’ll have to uninstall the bbcode then to use this one. I’m still looking for some documentation on how to create plugins that allow one to modify the toolbar or to create custom buttons.
Also, yes, the Topic List Thumbnails Component does exactly what I was looking for. I had installed that earlier but it didn’t work for me since I was on stable.