Discourse Cakeday

:discourse2: Summary Discourse Cakeday decorates user avatars with a celebratory emoji on the anniversary of their joining day, and (optionally) on their birthday too. :cake: :birthday:
:open_book: Install Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately.

Enabling Cakeday

The Cakeday plugin is default enabled but can be disabled/enabled from its settings, accessed from your admin/plugins page:

Cakeday settings

Features

  • Emoji displayed on posts, usercards, and user pages for forum joining anniversary and/or birthday: (Emojis displayed can also be customized)

  • Browsable directory of anniversaries and birthdays at /cakeday/anniversaries/today

  • Automatically uses join date for anniversaries, and adds an optional Date of Birth field on each user’s Preferences->Profile page (limited to Month and Date)

Settings

  • See all relevant site settings by searching your admin settings for “cakeday”
Name Description
cakeday enabled Show cakeday emoji[s] beside the user’s name on the date they joined Discourse
cakeday emoji The emoji[s] that will be shown beside the user’s name on the date that they joined Discourse. Multiple emojis can be specified by: smile
cakeday birthday enabled Show birthday emoji[s] beside the user’s name on their birthday
cakeday birthday emoji The emoji[s] that will be shown beside the user’s name on their birthday. Multiple emojis can be specified by: smile

:discourse2: Hosted by us? This plugin is available on all of our hosting tiers Cakeday | Discourse - Civilized Discussion

Last edited by @mcwumbly 2025-10-04T21:15:57Z

Check documentPerform check on document:
58 个赞

4 个帖子已拆分为新主题:只显示纪念日而不显示生日?

帖子已拆分为新主题:生日时如何自动在某个类别中创建帖子?

您好,仅供参考,已暂存的用户有一个生日徽章,但它没有出现在生日列表中(只显示普通用户):slight_smile:

3 个赞

是否可以手动编辑(或最好上传 CSV 文件)周年纪念字段?

我们的主要问题是我们已将社区从一个非常旧的平台(enjin)迁移到 Discourse。我们设法抓取了大部分数据,包括我们旧的加入日期,但显然当我们创建新的 Discourse 用户时,“加入日期”不再对应他们实际加入我们 enjin 社区的时间。

如果您有权访问 rails,这样做是可行的(尽管是完全手动的):

UPDATE users SET created_at = '2023-05-03 13:56:41' WHERE username_lower = 'username';

您好,在我的“论坛加入周年纪念”列表中,/cakeday/anniversaries/all?month=3 中没有任何内容,尽管大多数成员都在那个月加入的,有什么想法吗?谢谢。

1 个赞

嗯。:thinking: 也许这个月是今年的,而且还没有人庆祝周年纪念?

2 个赞

但是这个URL(/cakeday/anniversaries/all)应该显示所有的注册周年纪念日,而不是生日。
生日的URL是:/cakeday/birthdays/all

1 个赞

我的意思是,它可以在庆祝第一次周年纪念的月份弹出(也就是说,在人们加入论坛一年后)。你加入的第一天严格来说不是周年纪念日。所以,如果“三月”在这种情况下是“2024年3月”,并且那是他们都加入的那一年,那么还没有人会庆祝周年纪念日。

我还没有查看代码,所以这可能只是猜测。 :slight_smile:

1 个赞

“全部”选项卡可能误导了我:

1 个赞

有没有什么API或者方法可以获取今天的生日和纪念日?

1 个赞

是的,

https://meta.discourse.org/cakeday/birthdays/today.json

https://meta.discourse.org/cakeday/anniversaries/today.json

3 个赞

非常感谢!

2 个赞

多亏了你的帮助,理查德,我成功地创建了一个组件!

3 个赞

看起来很快就会有一个新的 docker_manager 镜像可用了?

您好,我很久以前就安装了这个插件,但今天在我的网站上找不到它的任何踪迹……怎么回事?:roll_eyes: 这个插件现在是核心功能了吗?

1 个赞

此插件现已与 Discourse 核心捆绑 :partying_face:

2 个赞

是否可以在注册表单中显示“月和日”出生日期偏好设置,而不是仅显示在每个用户的“偏好设置→个人资料”页面上?

1 个赞

我认为目前还不可能。

2 个赞