Events Plugin šŸ“†

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.

1 Like

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 Ā· paviliondev/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).

    Screenshot%20at%20May%2006%2009-45-40

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

    Screenshot%20at%20May%2006%2009-46-10

  • The attendee count appears on the topic list.

    Screenshot%20at%20May%2006%2009-45-19

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?

8 Likes

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.

4 Likes

Iā€™ve added:

  • Event-specific rsvp enabling; and

  • Guest limits

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

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

Screenshot%20at%20May%2006%2012-26-28

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

6 Likes

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.

1 Like

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

1 Like

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:

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:

1 Like

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:

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

hm Iā€™ll take a look at this later tonight.

Ok, Iā€™ll take a look at adding that in the coming week.

6 Likes

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

2 Likes

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:

1 Like

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

1 Like

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)
2 Likes

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.

2 Likes

Iā€™ve fixed this and other style issues.

https://github.com/angusmcleod/discourse-events/commit/e5daabf9fa630c6e0bb18b5595bad670fa2bd466

3 Likes

I found that choosing ā€œall dayā€ do not show hours. Is it the solution? Because I canā€™t just not choose hours.

Settings

3

1 Like

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

2 Likes

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

1 Like

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

1 Like

Some sort of wizard already completed message.

1 Like

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.

2 Likes