Events Plugin 📆

(mbajur) #245

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.

(Angus McLeod) #246

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

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

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?

(Stephen) #247

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.

(Angus McLeod) #248

I’ve added:

  • Event-specific rsvp enabling; and

  • Guest limits

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.


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


This is live on my sandbox, e.g. Spelunking in the Amazon - Events - Angus' Sandbox

(Stephen) #249

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.

(mbajur) #250

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

(Chris Beach) #251

Excellent feature - very welcome addition.

I did, however find that my forum completely stopped working (even in safe mode) after I added an event :fearful:

From production.log

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:


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:

(Angus McLeod) #252

Thanks, fixed.

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

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

Kite Flying on the Common 🎏 - Events - Angus' Sandbox

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

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

(Chris Beach) #253

Speedy response as always, thanks @angus :+1:

(François Douville) #254

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

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

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

(Stephen) #255

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.

(Tobias Eigen) #256

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 query would be fine)
  • ability to limit registration to certain groups (maybe this can be handled using categories)

(Angus McLeod) #257

Can you post a screenshot of

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

  • the site setting “events rsvp”

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.

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.

(Angus McLeod) #258

I’ve fixed this and other style issues.

(François Douville) #259

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



(Angus McLeod) #260

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

(Tobias Eigen) #261

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

(Angus McLeod) #262

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

(Tobias Eigen) #263

Some sort of wizard already completed message.

(Stephen) #264

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.