![]() |
Summary | Adds a banner to the site to show the anniversaries and birthdays today. |
![]() |
Preview | Theme Creator |
![]() |
Repository | GitHub - NateDhaliwal/Discourse-Birthdays-Anniversaries-Today |
![]() |
Install Guide | How to install a theme or theme component |
![]() |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Now that the Cakeday plugin has been included in core, there is no need to install the plugin separately to use this Theme Component.
Overview
This theme component places a banner at the top of the site on the homepage displaying the birthdays and anniversaries for that day.
Settings
The setting banner_location
allows you to select where you want the banner to be placed. The available options are:
above-site-header
below-site-header
above-main-containter
The settings banner_text_color
an banner_background_color
change the banner’s text and background colours respectively. You can input Discourse CSS variables like var(--primary)
or var(--tertiary)
, or Hex values too.
Also, the settings anniversaries_text
and birthdays_text
allow you to use the placeholder %{count}
for the number of users celebrating that event respectively.
Users displayed are not pinged: it uses <a class="mention">
to show the users. The user cards of each user will still be shown if you click on it.
Screenshots:
Desktop:
Mobile:
Additional information
The data is fetched from /cakeday/anniversaries/today.json
and /cakeday/birthdays/today.json
for the display of users.
I got this idea when looking at Discourse and wondering, since the Cakeday plugin is installed, why don’t users celebrate other user’s birthdays and anniversaries? We used to do this kind of thing on a forum I was on, and here on Meta too. With this theme component, you can celebrate user’s special days with them, promoting a more inclusive community.