Decklist and card viewer plugin
-
It would be really cool to have a plugin that lets us hover a card name to see the card. Uploading card images manually is a bit of a chore. This has existed in Magic forums for some time, so I'm sure there's lots of existing projects to draw inspiration from.
Additionally, I think it is a good idea to be able to post and see decklists directly in the forum rather than only having hotlinks to other sites such as Fabrary.net. Of course there's nothing stopping anyone from just posting a list as plain text currently, but it's unlikely that people will want to do that when you get card previews and other benefits in deck builders.
One of my motivations for this is that Fabrary decks often get modified, made private or deleted, but forum posts could preserve a more accurate representation of what was actually being discussed at the time, like an archive. I would suggest, perhaps, that such a decklist plugin could take in a fabrary link, and when you post your comment it will contain a static version of that decklist (with card previews on hover using the card preview plugin). The link to Fabrary could still be attached for those who want to click through and see more details in there.
-
It seems AutoCardAnywhere supports Flesh & Blood as well, now, which is nice
-
just saying in case you missed it somehow, this is built on nodebb and they have a plugin template here https://github.com/NodeBB/nodebb-plugin-quickstart
-
-
My initial idea was to implement a server side functionality that would filter upon posting and insert HTML card embeds. I got it a rough draft of that working with a filter hook.
The problem was that I couldn't see a way to make it not look weird if you would try to edit a post that had cards embedded. Ideally I would have wanted another hook that would essentially strip away the card embeds when you hit edit, but I found no such hook. Could be it exists. The edit hooks that exist seem to apply once you click save in the editor? I would maybe like to ask about that. Maybe they could add a hook for this.I was also worried that the embedded card markup in the actual post content would look awful if consumed outside of this site via federation. At least the embeds would have to be something that's not annoying to read on the other end, like a normal hyperlink. In that case I suppose the client side script in here could then only take care of inserting the images on hover, which would be a lot simpler and more performant.
