Advanced-Sidebox icon indicating copy to clipboard operation
Advanced-Sidebox copied to clipboard

New module: Show random predefined text

Open Eldenroot opened this issue 5 years ago • 5 comments

My idea - make something like "Did you know box?" (or whatever you call it). There would be a possibility to display randomly predefined text phrases. Admin could add these facts, important info, etc into this box and display them. It could be nice and useful feature

https://www.did-you-knows.com/

Something like this: https://ddydc3qiky-flywheel.netdna-ssl.com/wp-content/uploads/2016/05/DYKB-Facebook-OG-Logo.jpg

I know that there is a quote box, but it doesnt fit for this purpose.

Eldenroot avatar Sep 28 '18 12:09 Eldenroot

What about a module that chooses a random custom box to show?

For example, admin creates several custom boxes with these "did-you-know" quotes (or anything else for that matter) and the module would accept a list of box ids to choose from and randomly display that box in the place that the side box was placed in ACP.

To me, this would be more versatile and allow admin to do more that just "did you know," but would allow anything from a random list of selected forum quotes, random links to featured threads/posts, etc.

What do you think, @Eldenroot?

WildcardSearch avatar Sep 28 '18 13:09 WildcardSearch

Yes, sounds great! Anyway I imagine to use 100+ of "did you know" facts, so it must be a user friendly. ;)

Eldenroot avatar Sep 28 '18 16:09 Eldenroot

Hmm....hundreds of custom boxes wouldn't be good. The page would get stretched so far that the admin couldn't reach the trash can...

The reason I thought about custom boxes is because I can't see how you could enter all of those "did you know"s into the modal in an intuitive way. When you visualize the interface, how do you see it working? (forgetting the custom box idea completely for now)

WildcardSearch avatar Sep 28 '18 20:09 WildcardSearch

Maybe use something like this? Ignore the text, it is from "Announcement" plugin image

Eldenroot avatar Sep 29 '18 17:09 Eldenroot

Sadly, the current module system won't support those features. Currently, modules can only have a fixed number of settings, and it wouldn't be possible to do what you've shown.

I really need to take a look at the code with this in mind and see if I can spot a way to make this happen.

WildcardSearch avatar Sep 29 '18 17:09 WildcardSearch