# Плагин событий Angus' 📅

**URL:** https://meta.discourse.org/t/angus-events-plugin/69776
**Category:** Plugin
**Created:** [11.Сентябрь.2017 02:44:59 UTC](https://meta.discourse.org/t/angus-events-plugin/69776 "2017-09-11T02:44:59Z")
**Posts on this page:** 20
**Page:** 10

<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: [19.Март.2018 12:20:34 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/185 "2018-03-19T12:20:34Z")

</div>

@ChrisBeach I’ll take a look at it first thing tomorrow morning.

> [@savas](#):
>
> can you do for admin settings that for all users set start day andtime 24 h ?

If you’re talking about changing the formatting of the time, you can do that via the site settings ` events event label format` and ` events event label short format`.

---

<div class="post-metadata">

### Author: ![ZackFea](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zackfea/32/123509_2.png) [@ZackFea](https://meta.discourse.org/u/ZackFea)
#### Post date: [19.Март.2018 21:19:34 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/186 "2018-03-19T21:19:34Z")

</div>

There is something wrong with the button in the German translation:

![image](https://global.discourse-cdn.com/meta/original/3X/9/c/9cf8c90e1bc90e594b642cc3e217d0fdc386bdc8.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: [20.Март.2018 13:04:48 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/187 "2018-03-20T13:04:48Z")

</div>

> [@ZackFea](#):
>
> There is something wrong with the button in german translation.

This should be fixed now

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

@ChrisBeach I’ve nearly finished adding event times to all the relevant emails (the different types of topic notifications and topic invites). It’s on the [`add_email_support`](https://github.com/angusmcleod/discourse-events/tree/add_email_support) branch which is currently running on my sandbox.

Injecting custom topic variables into email templates and their plain-text counterparts is non-trivial, so it will take a bit more testing before I merge the feature branch into master. It should be merged sometime tomorrow.

---

<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: [26.Март.2018 14:30:26 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/188 "2018-03-26T14:30:26Z")

</div>

@angus some bugs and feature suggestions after using this plugin for a few weeks now on my site:

- I think having CALENDAR on the top menu might be too prominent, unless members are really excited about it (still have to check). We could add it to the hamburger menu instead. You could add this maybe as a global admin setting.
- the calendar is a little glitchy on mobile. When you select dates the screen flashes. I do like being able to select dates and seeing the full details below rather than leaving the calendar to go to the topic - would love to see this on desktop too.
- when adding event info to topics that have occurred already, it seemed odd to me that there is a subscribe button for those topics. maybe suppress it on events in the past?
- the per-category settings are cumbersome for a site like ours where we want to use the calendar for all categories. I just went through and changed all of our categories to the settings below - see screenshot. Seems these could/should be available as global admin settings to avoid human error.

 ![04%20AM](https://global.discourse-cdn.com/meta/original/3X/3/a/3a2146a43539d9e381fec81f16e025f39aafb869.png)

---

<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: [28.Март.2018 17:58:00 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/189 "2018-03-28T17:58:00Z")

</div>

crazy idea: how about an event calendar for groups? e.g. messages can be given event info, displayed on the calendar, and subscribed to by members of the group. calendar group page gets a calendar menu item.

---

<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: [28.Март.2018 20:31:46 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/190 "2018-03-28T20:31:46Z")

</div>

Minor bug. Quoted event topic gets a bit of munged looking text prepended to the quoted text. See screenshot. What I’d expect is no event info or something prettier, like an event icon and a short event label.

 ![00%20PM](https://global.discourse-cdn.com/meta/original/3X/6/4/64fd7d6484c409a8e3326721c5caf429d9647844.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: [28.Март.2018 22:19:42 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/191 "2018-03-28T22:19:42Z")

</div>

My agenda here is:

1. Release email support for events. My work on this was disrupted by travel. I’m putting the finishing touches on this now.

2. Add a setting to add a hamburger menu item for events (the top menu item can currently be toggled in the top menu setting).

3. Add site level settings for event visibility and trust controls

4. Fix the preview display issue.

> [@tobiaseigen](#):
>
> when adding event info to topics that have occurred already, it seemed odd to me that there is a subscribe button for those topics. maybe suppress it on events in the past?

Do you mean the Add to Calendar button within the topic? hm I’m not sure hiding it on past events is a good idea. Sometimes people like to add past events to their calendar for completeness, or record keeping. Is there another concern here?

> [@tobiaseigen](#):
>
> crazy idea: how about an event calendar for groups? e.g. messages can be given event info, displayed on the calendar, and subscribed to by members of the group. calendar group page gets a calendar menu item.

Nice idea. I’ll consider it in a bit more depth after I’ve done the above.

---

<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: [28.Март.2018 23:11:05 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/192 "2018-03-28T23:11:05Z")

</div>

All good things - thanks much. When you say “release email support for emails” do you mean “email support for events”?

> [@angus](#):
>
> Do you mean the Add to Calendar button within the topic? hm I’m not sure hiding it on past events is a good idea. Sometimes people like to add past events to their calendar for completeness, or record keeping. Is there another concern here?

Yeah, this is what I mean. I dunno about other people, but I have never wanted to add an event in the past to my calendar - maybe worth asking around. In the meantime, I guess it does no harm to display it.

---

<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: [28.Март.2018 23:56:20 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/193 "2018-03-28T23:56:20Z")

</div>

> [@tobiaseigen](#):
>
> When you say “release email support for emaikls” do you mean “email support for events”?

Yup that’s the one 🙂

---

<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: [29.Март.2018 02:37:07 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/194 "2018-03-29T02:37:07Z")

</div>

Ok I’ve just merged v1 of event emails.

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

For all emails mentioned below:

- The event details have been inserted into both the html and the plain text version.

- No email translation ‘templates’ have been overridden. i.e. You should still be able to use any custom email templates (there may be conflicts in some custom cases).

- The event label takes the format: unicode calendar - start datetime - end datetime - event timezone

**Invitations**

For both user and non-user invitations:

- The event details have been inserted to the topic excerpts below the title

- The words “invited you to a discussion” have been changed to “invited you to an event”

 ![Screenshot%20at%20Mar%2029%2013-35-14](https://global.discourse-cdn.com/meta/original/3X/2/4/246954905d25725819e029c1b30081d5d895c608.jpg)

**Notifications**

For every type of user notification email (associated with an event topic):

- The event details appear at the top, separated by a line break

 ![Screenshot%20at%20Mar%2029%2012-48-01](https://global.discourse-cdn.com/meta/original/3X/5/b/5bd4bf83a10c09172431901a894c42cb445490f5.png)

**New Setting**

You will need to set a default timezone for events using the new `events_default_timezone` site setting (defaults to UTC).

This is necessary because if an event itself does not have a timezone set, there needs to be a fallback on the server as it’s impossible to detect the email recipient’s timezone.

cc @ChrisBeach

---

<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: [29.Март.2018 08:23:43 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/195 "2018-03-29T08:23:43Z")

</div>

Excellent! Thanks for doing this Angus. I’ll let you know how this goes on my forums.

---

<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: [29.Март.2018 20:05:31 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/196 "2018-03-29T20:05:31Z")

</div>

I’ve been assisting a couple of communities who have expressed interest in using events on their Discourse instances.

Today they both rely on Facebook for events because it allows users to RSVP and organisers to assess demand. The recent privacy furore has them desperate to cut ties ASAP.

Are there any plans to add the ability to RSVP to an event?

I guess we’re potentially looking at three elements:

1. a user interface to RSVP (with the option to do so anonymously?)
2. a display of public RSVPs
3. an interface for organisers to see all users who have responded

It might also be desirable to have the ability to limit the total number of RSVPs.

---

<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: [29.Март.2018 20:19:22 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/197 "2018-03-29T20:19:22Z")

</div>

Cool!

I guess you could have a poll in the event topic that people can use to RSVP. Not possible I don’t think to limit the number of respondents to polls. Or you can simply ask people to reply to RSVP.

_Poll ([view on site](https://meta.discourse.org/t/angus-events-plugin/69776/197))_

---

<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: [29.Март.2018 22:41:23 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/198 "2018-03-29T22:41:23Z")

</div>

> [@angus](#):
>
> For all emails mentioned below:
> 
> The event details have been inserted into both the html and the plain text version.

Hi Angus,

I haven’t yet seen an email but have got quite a few errors in my logs 😥

Apologies about the unhelpful screenshot but am on mobile and it’s quite difficult to copy and paste the full details:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/0/90a2104bf9654846efce468347a94d8cca573b69.jpg)

---

<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: [29.Март.2018 23:04:20 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/199 "2018-03-29T23:04:20Z")

</div>

hmm. I can’t repro this, but as a precautionary measure I’ve reverted master to the previous state until I figure out what’s going on there.

Please “upgrade” discourse-events to go back to the old version.

---

<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: [29.Март.2018 23:07:15 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/200 "2018-03-29T23:07:15Z")

</div>

Thanks @Angus. I’m upgrading as we speak.

---

<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: [29.Март.2018 23:23:49 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/201 "2018-03-29T23:23:49Z")

</div>

FYI I’ve updated too and am not seeing these errors.

---

<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: [29.Март.2018 23:31:47 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/202 "2018-03-29T23:31:47Z")

</div>

@angus - Ah I’ve just delved deeper and found I might be wasting your time here - apologies. These errors began earlier in the week than when I upgraded your plugin.

---

<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: [30.Март.2018 02:53:38 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/203 "2018-03-30T02:53:38Z")

</div>

Yes. After taking a look at @ChrisBeach’s logs, his issue is not Events plugin related.

I’ve re-applied the events emails to master.

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

I understand there may be concerns about emails not working properly with this change.

This plugin has been subject to testing in the context of the `tests_passed` branch of Discourse for some time. I’ve updated those tests so that now every commit will be tested against _all_ of the core Discourse rspec tests, including the all the core email tests.

An instance with this plugin, with the email changes included, passes all core rspec tests.

You can check the CI status of this repo here: [Travis CI](https://travis-ci.org/angusmcleod/discourse-events)

---

<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: [30.Март.2018 17:37:19 UTC](https://meta.discourse.org/t/angus-events-plugin/69776/204 "2018-03-30T17:37:19Z")

</div>

I’m greatly enjoying the calendar and am already finding it useful. Really nice job, @angus!

Sorry to harp on about issues I’ve already raised above, but wanted to point out again that long titles are getting cut off, making events hard to read. Maybe others here have ideas on how this might be improved. Some ideas:

- don’t show the time of day of events in the calendar view, which takes alot of horizontal space
- show full title on mouseover tooltip (not helpful on mobile or tablets)
- show full title on select/click, maybe even with some more event details, like a usercard popup.. with options to click on to go to the event topic or to add the event to your personal calendar
- make days selectable, like on mobile, and show full details for the day below
- simply display full list of events, in order, below calendar. (maybe instead of the agenda view? not finding the agenda view in its current form that useful anyway if I may be brutally honest)

 ![44%20AM](https://global.discourse-cdn.com/meta/original/3X/9/d/9d7458bb79bfec42bfb19dd9b433de1d54c2cd4d.png)

[Предыдущая страница](https://meta.discourse.org/t/angus-events-plugin/69776.md?page=9)

[Следующая страница](https://meta.discourse.org/t/angus-events-plugin/69776.md?page=11)
