Bugs theme-component

Bugs: a Discourse theme-component

Did you know fruit flies were the first living creatures to be sent into space? Spiders are found on every continent of the world except Antarctica :spider:

This theme component is a port and update of Auzbugs repo. It originally started out as an April fools joke and has been adapted over time. I’ve included a new bugs interact feature in this component.

This is just a bit of fun :stuck_out_tongue_winking_eye: : I suggest you use it sparingly, maybe just at Halloween :ghost: or to play a joke on someone you know :nerd_face:. You can target it at specific groups and users in the theme settings.

I personally like to have a little bug friend on screen to keep me company :ant: I swat him away if he starts to bug me! Yes you can exterminate them :skull: :flushed:

Want to know more? Try out the preview below…

Discourse Bugs theme component

:eyeglasses: Demo: Preview this theme component

:hammer_and_wrench: Git repo: https://github.com/naidihr/discourse-bug-theme

:thinking: How do I install a Theme or Theme Component?

Settings

I’ve included some options in the theme settings. These include making it show only to specific users and groups.

There are a couple of methods that you can use to allow users to turn it on and off.

Create a user selectable bugs group

By creating a group you can allow users to join and leave at their will.

Set up a group called e.g. Bugs. In the group settings allow them to join and leave freely.

This will give them these options before they join and after.

Remember to set the theme setting so the group will see the bugs!

Convert the component into a user selectable theme

To make this theme component user selectable you can covert it to a theme. To do that click the Convert button at the bottom of the theme settings.

Once it is a theme make it user selectable, select the light color palate and include any other components you have installed. You can also rename it if you prefer.

If you have the theme selector component installed users can then toggle their themes on the site menu.

22 Likes

Really cool !

Just another suggestion:
Can you please add an option to enable this theme-component only at a certain time interval in a day.
For example, it would be fun if a user who visits the forum at midnight sees this :wink:

4 Likes

Happy to look at this unless anyone else fancies a go?

I’ve included the JavaScript code in the header file so admins can make their own customisations (that’s currently not possible if I include it as a linked js file).

I’m open to pull requests on the repo.

Great theme component! This kept me laughing! It would be useful if there was a visual check-box somewhere so the user can easily toggle it off-on.

Good point.

One way to make it so users can toggle it on and off is to convert it to a theme, as opposed to a theme component. I’ve added that to in the instructions at the top of the page.

You can also do it by setting up a group that users can freely join and leave. This takes advantage of the theme setting that can be set to only show it to specified users and groups. I’ve also added that option to the instructions at the top.

4 Likes

Not seeing any bugs when I enable it. Only me?

No, you aren’t alone. I don’t know if the issue is Safari, DiscourseHub or i-devices in general but I couldn’t get anykind bugs anywhere. Yes, I know I should check if there is some errors but I didn’t bother.

Sorry it is now ‘buggy’ in the wrong sense - I’ll have a look. The component hasn’t been changed but it looks like there have been some changes elsewhere that require an update. It did work in Safari before.

4 Likes

This sure is a “buggy” TC! :drum: :clown_face: