here is a little plugin I'd like to share. Feedbacks, if any, are welcome.
See it on Github.
Allows users to randomly display one item from a set defined in their signature.
npm install nodebb-plugin-shuffle-signature
In signatures, a special shuffle block can be used.
This will randomly displays one item from a defined set.
There can be multiple shuffle blocks.
A shuffle block is defined with 2 sets of parentheses.
The first one being either
(!), the second one containing the list of items.
An item is defined inside square brackets
([item 1] [item 2]).
Image links will be automatically converted to an html image element
<img src="myLink" alt="image">.
My random quote of the day: (shuffle)([My first random quote] [My second random quote])
will be randomly parsed to
My random quote of the day: My second random quote
My random quote of the day: My first random quote
Random picture: (!)( [My first caption: http://my.first/picture.png] [My second caption: http://my.second/picture.png] ) Random quote: (!)( [My first random quote] [My second random quote] )
Random picture: My second caption: <img src="http://my.second/picture.png" alt="image"> Random quote: My first random quote
Note that the image link has been automatically converted to an img element.
Noticed this popped up on Google last night. Looks great!
Netto Hikari last edited by
Great work, @Xevious!
Now I can express my different kinds of stupidity randomly in a single signature!
Kayimi last edited by Kayimi
Awesome stuff @Xevious! Love the idea of mixed static & dynamic signature ability!
@a_5mith what a great idea!
esiao last edited by
T'es un génie
Awesome stuff mate.
Haha, thanks guys.
I've added the github link in the first post.
This is awesome. Allows for enhanced expression, but without the clutter.
as I said on Github, pretty cool