イベントプラグイン 📅

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

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

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

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

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

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

「いいね!」 1

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

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

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

「いいね!」 2

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

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

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

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

I’ve fixed this and other style issues.

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

「いいね!」 3

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

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

「いいね!」 2

@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

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

「いいね!」 1

Some sort of wizard already completed message.

「いいね!」 1

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