The comments plugin has a new feature that allows you to access the “stream” of comments as they are submitted to your comments box. So now you can “do stuff” on your page in response to comments that people make.

Title is (mostly) a joke, but it wouldn’t be toooo hard to create simple multiplayer games like chess or little point-and-click worlds that people can play on your page via the comments (just need to ignore invalid user moves/inputs based on the rules of the game you’re making).

I expect a few perchance devs to play around with some “mad science” along those lines, but for most people, probably the most useful thing here is that it allows you to completely customize the way comments are displayed. Including e.g. adding avatar pics to comments, changing the background image of every comment based on the keywords in it, making confetti fly across the page (for everyone) when someone says a secret/“easter egg” keyword, and so on.

Examples:

  • BluePower@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    Nice update! This gives me an idea to add a feature where users could make and save their own unrandomized abstract flag based on the user’s specific “prompt” details in my Power Flag Generator and do a bunch of things, e.g. chat commands, for example when the user sent this comment:

    layout: diagonal, emblem: star, unique: true, advanced: true

    Then it’ll pop up this flag, without affecting any configurations in the options:

    Or: layout: random, emblem: none

    Then it’ll pop up a flag like this, with a random layout:

    Or: layout: vertical triple, enable country details, enable advanced colors, comment: hai

    pops up a flag like this: , enables advanced colors and country details, and sent that user’s comment after the comment: part.

    Or maybe, users could randomize the flag just by saying this: random , acts the same as clicking on the randomize button.

    And randomize a specific part of the flag like this: random: 1

    Or emblems: random: 0

    All of these “prompts” will be saved to a separate container that when clicked, pops up that exact flag the prompt generates (also got this idea from your last example mentioned).

    I know these could also be doable with slash commands, but such a variant will prevent the command from being sent into the comments section. And I’ll add that too.

    /generate layout: vertical triple, emblem: circle

    I also wanted to implement a feature so that users can also select each individual color for the flag they wanted; but this requires assigning ids into each layout maker component. I can do that for myself using some JS, but I think this would be a great feature if you can assign an id into each area of the layout-maker-plugin.