# Angus' Events Plugin 📅

**URL:** https://meta.discourse.org/t/angus-events-plugin/69776
**Category:** Plugin
**Created:** [11. September 2017 um 02:44 UTC](https://meta.discourse.org/t/angus-events-plugin/69776 "2017-09-11T02:44:59Z")
**Posts on this page:** 20
**Page:** 13

<div class="post-metadata">

### Author: ![mbajur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbajur/32/51349_2.png) [@mbajur](https://meta.discourse.org/u/mbajur)
#### Post date: [5. Mai 2018 um 14:36 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/245 "2018-05-05T14:36:01Z")

</div>

Thanks for amazing work @angus ! I was waiting for such thing for ages.

What do you think about implementing “Make event date and/or time required when creating event” feature? I would love to help with that if i had the skills.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [5. Mai 2018 um 23:57 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/246 "2018-05-05T23:57:43Z")

</div>

I’ve pushed v0.1 of the RSVP feature. Thanks for being patient, I’ve been moving city and house, so I’ve been busy.

[Add rsvp feature · angusmcleod/discourse-events@39a8de1 · GitHub](https://github.com/angusmcleod/discourse-events/commit/39a8de18af16c0fcac41fac6e031824dcf6d5c42)

If you enable `events rsvp` in site settings, you will see:

- An rsvp toggle and attendee count under the topic title (Guests just see an unlinked count).

- Clicking on the attendee count opens a modal with a filterable list of the attendees.

- The attendee count appears on the topic list.

Future additions:

- ~~Event-specific rsvp enabling.~~

- Email markup to allow rsvp from email clients (e.g. Gmail).

- “Interested” rsvp (aka ‘Maybe’).

- ~~Rsvp limit (@Stephen).~~

cc @shoshber

* * *

> [@mbajur](#):
>
> What do you think about implementing “Make event date and/or time required when creating event” feature?

Do you mean a setting to require users to add an event when creating a topic, or setting(s) to require users to add specific parts of an event, i.e. you can’t create an event with adding a date _and_ a time?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [6. Mai 2018 um 00:01 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/247 "2018-05-06T00:01:02Z")

</div>

Looks awesome. Will test shortly.

Can I suggest an RSVP limit be considered for the future? The reason I suggested the feature to begin with is a group who have regular meetings in a physical space with a capacity limit. First-come, first-served.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [6. Mai 2018 um 02:28 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/248 "2018-05-06T02:28:26Z")

</div>

I’ve added:

- Event-specific rsvp enabling; and

- Guest limits

[https://github.com/angusmcleod/discourse-events/commit/f26c71c9cbd9b8667024744d6bd5188a53fbd6b8](https://github.com/angusmcleod/discourse-events/commit/f26c71c9cbd9b8667024744d6bd5188a53fbd6b8)

Now the site setting `events rsvp` toggles controls in the Add Event modal that lets the event creator enable rsvp and set a guest limit for each event.

- Rsvp details in the topic and the topic list are shown only if rsvp is enabled for that topic.

- The guest limit is not mandatory.

![Screenshot%20at%20May%2006%2012-26-42](https://global.discourse-cdn.com/meta/original/3X/1/9/1991af4c575bbc42c6c1cd6e23b5adacf5bc7e8e.png)

The event details under the topic title includes spots remaining if a guest limit is set.

 ![Screenshot%20at%20May%2006%2012-26-28](https://global.discourse-cdn.com/meta/original/3X/5/e/5e890269b5317047bcbcba8cd759b205ff853441.png)

This is live on my sandbox, e.g. [https://discourse.angusmcleod.com.au/t/spelunking-in-the-amazon/338](https://discourse.angusmcleod.com.au/t/spelunking-in-the-amazon/338)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [6. Mai 2018 um 05:29 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/249 "2018-05-06T05:29:47Z")

</div>

Get a 500 error when RSVP’ing:

> RuntimeError (translation missing: en.event\_rsvp.error.not\_enabled)  
> /var/www/discourse/plugins/discourse-events/controllers/event\_rsvp.rb:66:in `check\_if\_rsvp\_enabled’

Let me know if you want more of the log.

---

<div class="post-metadata">

### Author: ![mbajur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbajur/32/51349_2.png) [@mbajur](https://meta.discourse.org/u/mbajur)
#### Post date: [6. Mai 2018 um 07:36 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/250 "2018-05-06T07:36:55Z")

</div>

> [@angus](#):
>
> Do you mean a setting to require users to add an event when creating a topic, or setting(s) to require users to add specific parts of an event, i.e. you can’t create an event with adding a date _and_ a time?

Definitely a first one - require users to set date (and time) when creating an event.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [6. Mai 2018 um 09:27 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/251 "2018-05-06T09:27:40Z")

</div>

> [@angus](#):
>
> I’ve added:
> 
> - Event-specific rsvp enabling; and
> 
> - Guest limits

Excellent feature - very welcome addition.

I did, however find that my forum completely stopped working (even in [safe mode](https://meta.discourse.org/t/53504?silent=true)) after I added an event 😨

From `production.log`

```plaintext
Completed 500 Internal Server Error in 98ms (ActiveRecord: 25.3ms)
NoMethodError (undefined method `>' for nil:NilClass)
/var/www/discourse/plugins/discourse-events/plugin.rb:177:in `event_going_max'

```

I was able to get the forum back online by deleting the last topic I’d created using the following at the Rails console:

```plaintext
Topic.last.destroy

```

Another issue - in desktop mode, when selecting an events-enabled category, the event date button is unclickable due to it being rendered behind the preview pane:

 ![Screenshot%20from%202018-05-06%2010-33-57](https://global.discourse-cdn.com/meta/original/3X/0/a/0a8e7351beeb0b8c86b899f19785f615795ee385.png)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [6. Mai 2018 um 09:58 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/252 "2018-05-06T09:58:09Z")

</div>

> [@Stephen](#):
>
> Get a 500 error when RSVP’ing:

Thanks, fixed.

[https://github.com/angusmcleod/discourse-events/commit/46c5f16815d3224b7bc83e10d082a7ad93d8f7b9](https://github.com/angusmcleod/discourse-events/commit/46c5f16815d3224b7bc83e10d082a7ad93d8f7b9)

> [@ChrisBeach](#):
>
> I did, however find that my forum completely stopped working (even in [safe mode](https://meta.discourse.org/t/53504?silent=true)) after I added an event 😨

😖 My apologies. Not sure how I missed that one in my tests. Fixed.

[https://github.com/angusmcleod/discourse-events/commit/a5521d01fefa383c3662c1660c20b6938b9dece2](https://github.com/angusmcleod/discourse-events/commit/a5521d01fefa383c3662c1660c20b6938b9dece2)

I’ve created a new test topic with those changes here:

[https://discourse.angusmcleod.com.au/t/kite-flying-on-the-common/395](https://discourse.angusmcleod.com.au/t/kite-flying-on-the-common/395)

> [@ChrisBeach](#):
>
> in desktop mode, when selecting an events-enabled category, the event date button is unclickable due to it being rendered behind the preview pane

hm I’ll take a look at this later tonight.

> [@mbajur](#):
>
> Definitely a first one - require users to set date (and time) when creating an event.

Ok, I’ll take a look at adding that in the coming week.

---

<div class="post-metadata">

### Author: ![ChrisBeach](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrisbeach/32/214628_2.png) [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)
#### Post date: [6. Mai 2018 um 10:00 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/253 "2018-05-06T10:00:09Z")

</div>

Speedy response as always, thanks @angus 👍

---

<div class="post-metadata">

### Author: ![Francois\_Douville](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francois_douville/32/94221_2.png) [@Francois\_Douville](https://meta.discourse.org/u/Francois_Douville)
#### Post date: [6. Mai 2018 um 14:31 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/254 "2018-05-06T14:31:12Z")

</div>

_Is it possible to add multiple dates for a same event? For now it is not, I have to write multiple topics._

> [@angus](#):
>
> Not yet, but I can add it to the to do list.

_If I just have a day but no time for an event, is it possible to not display 00:00 ?_

> [@angus](#):
>
> hm it shouldn’t be doing that. I’ll take a look on the weekend.

It would be so awesome if you add these features soon, thank you very much @angus 👍

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [6. Mai 2018 um 15:19 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/255 "2018-05-06T15:19:31Z")

</div>

> [@angus](#):
>
> Thanks, fixed.

Rebuilt about 45 minutes ago, still getting the 500 error on new and existing events. Tried with both a guest limit and without.

Also, when I create an event with RSVP enabled and a guest limit the ‘going’ box doesn’t immediately appear. If I edit the event again and save it without making any changes then it’s visible. Will have a video clip in a moment to illustrate.

[https://gfycat.com/GroundedOrdinaryHumpbackwhale](https://gfycat.com/GroundedOrdinaryHumpbackwhale)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [6. Mai 2018 um 21:51 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/256 "2018-05-06T21:51:56Z")

</div>

I am liking the look of rhe rsvp feature. I can see this being very useful! Nice work, Angus!

Two features that might help fit this into our workflow are:

- ability to export the rsvp list ([data explorer](https://meta.discourse.org/t/32566?silent=true) query would be fine)
- ability to limit registration to certain groups (maybe this can be handled using categories)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [7. Mai 2018 um 00:03 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/257 "2018-05-07T00:03:04Z")

</div>

> [@Stephen](#):
>
> Rebuilt about 45 minutes ago, still getting the 500 error on new and existing events
> 
> Also, when I create an event with RSVP enabled and a guest limit the ‘going’ box doesn’t immediately appear. If I edit the event again and save it without making any changes then it’s visible.

Can you post a screenshot of

- the line for discourse events in /admin/docker, including the commit

- the site setting “events rsvp”

> [@Francois\_Douville](#):
>
> _If I just have a day but no time for an event, is it possible to not display 00:00 ?_

This is not easy to reproduce. Can you link me to an example of it on your forum? Thanks. Also please post all your current settings for events here. Use the \> Hide details feature so the post isn’t huge.

> [@tobiaseigen](#):
>
> - ability to export the rsvp list ([data explorer](https://meta.discourse.org/t/32566?silent=true) query would be fine)
> - ability to limit registration to certain groups (maybe this can be handled using categories)

Yup, both of these are doable. It’s relatively common to have the ability to export a list of attendees, so I may just make it a native feature.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [7. Mai 2018 um 01:40 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/258 "2018-05-07T01:40:45Z")

</div>

> [@ChrisBeach](#):
>
> in desktop mode, when selecting an events-enabled category, the event date button is unclickable due to it being rendered behind the preview pane:

I’ve fixed this and other style issues.

[https://github.com/angusmcleod/discourse-events/commit/e5daabf9fa630c6e0bb18b5595bad670fa2bd466](https://github.com/angusmcleod/discourse-events/commit/e5daabf9fa630c6e0bb18b5595bad670fa2bd466)

---

<div class="post-metadata">

### Author: ![Francois\_Douville](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francois_douville/32/94221_2.png) [@Francois\_Douville](https://meta.discourse.org/u/Francois_Douville)
#### Post date: [7. Mai 2018 um 11:23 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/259 "2018-05-07T11:23:13Z")

</div>

> [@angus](#):
>
> This is not easy to reproduce. Can you link me to an example of it on your forum? Thanks. Also please post all your current settings for events here. Use the \> Hide details feature so the post isn’t huge.

I found that choosing “all day” do not show hours. Is it the solution? Because I can’t just not choose hours.

 ![time](https://global.discourse-cdn.com/meta/original/3X/5/8/587d0ae02848488f394b6f17104f0f8205c1c35c.gif)

> **Settings**
>
> ![1](https://global.discourse-cdn.com/meta/original/3X/e/0/e0fd0697596960260b4d21ab00f7ce9f6a59cefb.png) ![2](https://global.discourse-cdn.com/meta/original/3X/7/c/7c207a8a636ab798003ec6770104068e07a2cad0.png) ![3](https://global.discourse-cdn.com/meta/original/3X/a/2/a25c366b5eb4f2f178f9c74e75d1049ed991c530.png)

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [7. Mai 2018 um 12:02 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/260 "2018-05-07T12:02:13Z")

</div>

> [@Francois\_Douville](#):
>
> I found that choosing “all day” do not show hours. Is it the solution?

Yup, if you want to post just a date without a time then use the all day setting.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [7. Mai 2018 um 12:49 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/261 "2018-05-07T12:49:55Z")

</div>

@angus I’d be glad to try out the RSVP functions on your sandbox but it doesn’t seem to be working right now.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [7. Mai 2018 um 13:04 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/262 "2018-05-07T13:04:14Z")

</div>

Hm. What are you seeing? I just tried it with a couple of different users on my phone and it worked ok.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [7. Mai 2018 um 13:21 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/263 "2018-05-07T13:21:53Z")

</div>

Some sort of wizard already completed message.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [7. Mai 2018 um 18:23 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/264 "2018-05-07T18:23:13Z")

</div>

> [@angus](#):
>
> Can you post a screenshot of
> 
> - the line for discourse events in /admin/docker, including the commit
> 
> - the site setting “events rsvp”

After another rebuild it’s behaving, although I note that it’s possible to enable RSVP on events without the ‘events rsvp’ site setting enabled, which also returns HTTP500.

[Previous page](https://meta.discourse.org/t/angus-events-plugin/69776.md?page=12)

[Next page](https://meta.discourse.org/t/angus-events-plugin/69776.md?page=14)
