# You say it's your birthday?

**URL:** <https://meta.discourse.org/t/you-say-its-your-birthday/24594>\
**Category:** Feature\
**Tags:** rfc, spec\
**Created:** [2015年一月30日 00:55 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594 "2015-01-30T00:55:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![geoff777](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/geoff777/32/202388_2.png) [@geoff777](https://meta.discourse.org/u/geoff777)\
**Post date:** [2015年八月15日 14:05 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/24 "2015-08-15T14:05:44Z")

</div>

After this plugin can we have a rewrite of 🙀 Farmville?

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2015年八月20日 12:56 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/25 "2015-08-20T12:56:59Z")

</div>

Started work on the plugin 😄

![](https://global.discourse-cdn.com/meta/original/3X/1/1/111687937a9c9aedacb0e4f904353ec8a804e4b2.gif)

[https://github.com/tgxworld/discourse-its-your-birthday](https://github.com/tgxworld/discourse-its-your-birthday)

As of right now, the default date that it uses is the day the user joined Discourse. (I don’t really like it since it isn’t actually the user’s birthday).

In the coming days, I’ll add the option to update the user’s date of birth under user preferences. 🍰

---

<div class="post-metadata">

**Author:** ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Post date:** [2015年八月20日 13:36 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/26 "2015-08-20T13:36:26Z")

</div>

> [@tgxworld](#):
>
> (I don’t really like it since it isn’t actually the user’s birthday).

That could be alleviated by renaming the plugin to “Cake Day”, like OP alluded to.

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2015年八月20日 14:00 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/27 "2015-08-20T14:00:52Z")

</div>

But but…

[http://tiempocio.com/en/wp-content/uploads/sites/2/2013/07/The-Cake-is-a-Lie.jpg](http://tiempocio.com/en/wp-content/uploads/sites/2/2013/07/The-Cake-is-a-Lie.jpg)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年八月20日 23:26 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/28 "2015-08-20T23:26:33Z")

</div>

> [@tgxworld](#):
>
> I’ll add the option to update the user’s date of birth under user preferences.

@codinghorror should this be a core feature?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年八月21日 00:22 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/29 "2015-08-21T00:22:45Z")

</div>

No, it should be optional – if there is a custom field in the userprofile called “Birthday” use that. If not then use the join date.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年八月21日 00:28 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/30 "2015-08-21T00:28:03Z")

</div>

One thing that we support changing here @tgxworld is adding a date custom field type (though for birthdays people really like years being optional) .

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2015年八月21日 00:47 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/31 "2015-08-21T00:47:08Z")

</div>

> [@codinghorror](#):
>
> No, it should be optional – if there is a custom field in the userprofile called “Birthday” use that. If not then use the join date.

I think I’ll rename the plugin to cakeday since…

 ![](https://global.discourse-cdn.com/meta/original/3X/6/1/61251f817f3d7f4ada0203443c7584e72d23dd25.jpg)

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015年八月21日 00:53 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/32 "2015-08-21T00:53:57Z")

</div>

> [@codinghorror](#):
>
> No, it should be optional – if there is a custom field in the userprofile called “Birthday” use that. If not then use the join date.

No need for custom fields, there’s an actual field on the `users` column named date\_of\_birth.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年八月21日 00:54 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/33 "2015-08-21T00:54:30Z")

</div>

I always forget that field is there. So the question is, whether to expose it. Perhaps the plugin can expose it?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年八月21日 01:05 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/34 "2015-08-21T01:05:50Z")

</div>

No point having this field in core if there is no UI for it.

My call is to build a UI for it in user prefs and then allow admins to either turn it on or off.

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2015年八月21日 01:08 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/35 "2015-08-21T01:08:14Z")

</div>

> [@sam](#):
>
> though for birthdays people really like years being optional

Yes, more years seen than Yoda I have

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2015年八月21日 03:19 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/36 "2015-08-21T03:19:57Z")

</div>

I think we should drop it from core for the following reasons:

1. We’re not using it anywhere and I don’t think there are plans to?
2. Different developers might end up wanting different customizations with the DOB. For instance, year should be optional but what if I don’t want year to be optional (age declaration for sites with age restrictions).

My 2 💰

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年八月21日 03:36 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/37 "2015-08-21T03:36:21Z")

</div>

Sure go ahead and drop it

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年八月21日 07:41 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/38 "2015-08-21T07:41:31Z")

</div>

@tgxworld If you drop the birthday field from core, there should be a migration of existing values to the custom field used by the plugin. The dates imported by the SMF2 and phpBB3 importers would otherwise be lost.

---

<div class="post-metadata">

**Author:** ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Post date:** [2015年八月21日 07:42 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/39 "2015-08-21T07:42:15Z")

</div>

> [@tgxworld](#):
>
> Different developers might end up wanting different customizations with the DOB

Yeah, so, maybe this is a weird request, but I’d prefer it if the plugin let me choose my join date as my Cake Day, even if I’ve also added my birth date on my forum.

I want to add my birthday because we’re a pretty tight knit bunch, and some people might wanna surprise me with an unexpected birthday wish, and vice versa. But the whole point of a cake day for me is that it’s an _additional_ day of joy. It’s that day I forgot about, but then; surprise cake!

---

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2015年八月21日 07:44 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/40 "2015-08-21T07:44:36Z")

</div>

But we won’t know the name of the custom field that the plugin uses. It could be different across plugins. I think the key here is the there is no use / no plans for the DOB field to be used in Discourse. 🐈

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年八月21日 07:45 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/41 "2015-08-21T07:45:40Z")

</div>

Why choose? Make it two cake days per year. 🎂 🎂

---

<div class="post-metadata">

**Author:** ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Post date:** [2015年八月21日 07:46 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/42 "2015-08-21T07:46:49Z")

</div>

No thanks. That’s like deciding to have two Christmases. Makes it less special. 😿

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2015年八月21日 07:48 UTC](https://meta.discourse.org/t/you-say-its-your-birthday/24594/43 "2015-08-21T07:48:13Z")

</div>

Well, if _you_ develop the plugin, you’ll know the name of the custom field, won’t you? 😉

[上一頁](https://meta.discourse.org/t/you-say-its-your-birthday/24594.md?page=1)

[下一頁](https://meta.discourse.org/t/you-say-its-your-birthday/24594.md?page=3)
