# Angus' Events Plugin 📅

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

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [September 25, 2017, 8:06pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/23 "2017-09-25T20:06:25Z")

</div>

Thanks for that @Michaeld much appreciated

@angus on mobile should there be a button to add the event date. It’s just showing as a white square as per below.  
If I click on the white square next to create new topic it brings up the date picker ok

 ![Screenshot_20170925-210225](https://global.discourse-cdn.com/meta/original/3X/6/4/64b8f54d009c5775a8beff57a1495a0a7b08d859.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: [September 26, 2017, 1:48am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/24 "2017-09-26T01:48:29Z")

</div>

Thanks for noting this. An omission from the update that added the `events_event_label_icon` setting. Fixed.

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

Example:

 ![26 AM](https://global.discourse-cdn.com/meta/original/3X/a/c/ac587a0d96d4638895a9695218f95f5d64ad8c27.png)

See: [https://discourse.angusmcleod.com.au/c/events/l/agenda](https://discourse.angusmcleod.com.au/c/events/l/agenda)

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [October 17, 2017, 6:04am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/25 "2017-10-17T06:04:53Z")

</div>

Are you planning to make a **“Calendar” view aka Google calendar** , so that it’s more visual? There are JS plugins that generate calendars from JSON / JS ARRAY input.

What I mean is something [like this](https://fullcalendar.io/):

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/5/753408365f9ae595921a2ff7fe3bd35de0c414bc.png)

So, talking about your two plugins, Locations and Events: Locations would open a map, Events would open a calendar.

---

<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: [October 17, 2017, 1:04pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/26 "2017-10-17T13:04:49Z")

</div>

Yes, I did consider this when building this plugin, but decided to go with the agenda format as it works well with the existing Discourse topic list. I will add this when I find some time over the next few weeks. Or, happy to accept a pr.

---

<div class="post-metadata">

### Author: ![supernaturally](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@supernaturally](https://meta.discourse.org/u/supernaturally)
#### Post date: [October 18, 2017, 5:23am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/27 "2017-10-18T05:23:48Z")

</div>

Full Calendar is great…you can modify the CSS to give it a Material look as well:

 ![desginupgrade](https://global.discourse-cdn.com/meta/original/3X/0/5/05fc07c28bce2ca8ee1271466c1bb6146859c510.png)

I am a bit new to discourse development - @angus is it possible to use the Discourse RESTful API to update posts/threads that are using your plugin-in (use-case: having my web application create and update event info in the OP)

---

<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: [October 18, 2017, 10:56am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/28 "2017-10-18T10:56:00Z")

</div>

> [@supernaturally](#):
>
> is it possible to use the Discourse RESTful API to update posts/threads that are using your plugin-in

It is now 🙂

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

To add a date and time when creating a topic, pass a JSON `event` string with `start` and `end` set as datetimes in ISO 8601 format.

Example request:

```plaintext
curl -X POST \
  https://your_site/posts \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F api_key=your_key \
  -F api_username=your_username \
  -F 'title=Posting an event from the API :robot:' \
  -F 'raw=Boogey on down to funky town.' \
  -F category=Events \
  -F 'event={ "start": "2017-10-18T10:08:08Z", "end": "2017-10-18T11:08:08Z" }'

```

Result:  
[https://discourse.angusmcleod.com.au/t/posting-an-event-from-the-api-robot/79/1](https://discourse.angusmcleod.com.au/t/posting-an-event-from-the-api-robot/79/1)

**Note** : I’m not sure if it’s possible to pass custom parameters to methods available in the `disocurse_api` gem. @blake?

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [October 18, 2017, 11:16am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/29 "2017-10-18T11:16:42Z")

</div>

> [@meglio](#):
>
> Are you planning to make a “Calendar” view aka Google calendar

Even better would be a .ics feed of _all_ events (per category) so that Gcal (and other platforms) can subscribe to them.

---

<div class="post-metadata">

### Author: ![swfsql](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swfsql/32/120376_2.png) [@swfsql](https://meta.discourse.org/u/swfsql)
#### Post date: [October 28, 2017, 6:44pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/30 "2017-10-28T18:44:16Z")

</div>

Thank you @angus for your plugins, they’re really nice!  
I have this question (I’ll eventually try to learn how to code pluggins - so I can’t really PR):

Is there an option to remove the event from the map (with your other plugin), if that event is finished?

Cheers!

---

<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: [October 30, 2017, 1:34am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/31 "2017-10-30T01:34:43Z")

</div>

hm yes. The trick is to keep the locations plugin at arms length from the events plugin. Events is one use case for the locations plugin, but it is not the only one.

The first thought I had was that this could be handled by filtering closed topics. But you may want to close an upcoming event topics for other reasons.

So, I think the best way to handle this category of features is via allowing any plugin to add filter blocks to the locations map list query. And adding an appropriate filter in the Events plugin.

Added.

[https://github.com/angusmcleod/discourse-locations/commit/f3d731e540b1a94bf98bbf189eaf2ac121fd98f4](https://github.com/angusmcleod/discourse-locations/commit/f3d731e540b1a94bf98bbf189eaf2ac121fd98f4)

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

You can now filter out finished events from the map with the `events_remove_past_from_map` setting.

---

<div class="post-metadata">

### Author: ![swfsql](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swfsql/32/120376_2.png) [@swfsql](https://meta.discourse.org/u/swfsql)
#### Post date: [October 30, 2017, 1:42am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/32 "2017-10-30T01:42:47Z")

</div>

whoa, that was fast and well worked out (for the long term)!  
thank you!

---

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [November 1, 2017, 11:39pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/33 "2017-11-01T23:39:51Z")

</div>

I come to see another software, while a feature captured my attention. It is event subscribe or event regist function.

We pose an activity, and people can subscribe to see the exact activity Room or activity Time.

Don’t know whether this can come true?

Yours.

---

<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: [November 3, 2017, 4:51am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/34 "2017-11-03T04:51:26Z")

</div>

Yes, adding an iCal feed is doable…maybe next week. We’ll see.

Keep in mind that iCal feeds are read only and not all commonly used calendar clients handle them well.

For example Google Calendar only syncs iCal feeds every 24 hours (or longer), and can be frustrating if used for time sensitive events.

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [November 7, 2017, 11:58pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/35 "2017-11-07T23:58:26Z")

</div>

> [@angus](#):
>
> You can now filter out finished events from the map with the events\_remove\_past\_from\_map setting.

Great approach!  
Now, would it be possible for you to also add a filter to remove closed topics from the map?

---

<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: [November 8, 2017, 3:18am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/36 "2017-11-08T03:18:33Z")

</div>

Sure, this is purely a locations plugin setting though.

[https://meta.discourse.org/t/locations-plugin/69742/88?u=angus](https://meta.discourse.org/t/locations-plugin/69742/88)

---

<div class="post-metadata">

### Author: ![bangarang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bangarang/32/63023_2.png) [@bangarang](https://meta.discourse.org/u/bangarang)
#### Post date: [November 8, 2017, 8:18pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/37 "2017-11-08T20:18:46Z")

</div>

i think it would be also useful to have those filter options for the agenda list, so that you can filter out past events and/or closed topics from the agenda.

---

<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: [November 12, 2017, 2:45am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/38 "2017-11-12T02:45:23Z")

</div>

👍 Added site and category-specific filters for closed topics in the agenda.

> <https://github.com/angusmcleod/discourse-events/commit/4500147f297d6439185ef38010a530a594e5f62d>

---

<div class="post-metadata">

### Author: ![TerminalAddict](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terminaladdict/32/119676_2.png) [@TerminalAddict](https://meta.discourse.org/u/TerminalAddict)
#### Post date: [November 12, 2017, 6:33am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/39 "2017-11-12T06:33:08Z")

</div>

recurring events ? (big ask I bet)

---

<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: [November 12, 2017, 1:13pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/40 "2017-11-12T13:13:11Z")

</div>

Yeah, probably a biggish task. Let’s try to think it through though. Here are some initial thoughts:

Topics

1. Event topic is reused (‘evergreen’) and event times update after each instance passes; or

2. New topic is created for each instance immediately after the recurring event is created.

3. New topic is created for each instance some time(s) after the recurring event is created.

Management

- If each instance has its own topic:
  - How to you manage the ‘event series’ as a series? A new modal? Where would this modal go?

  - If you delete or close a topic which is an instance in a recurring event series what happens to future events in the series?

---

<div class="post-metadata">

### Author: ![bangarang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bangarang/32/63023_2.png) [@bangarang](https://meta.discourse.org/u/bangarang)
#### Post date: [November 17, 2017, 9:23pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/41 "2017-11-17T21:23:44Z")

</div>

thanks for the agenda-filters!

on mobile devices the event dates are displayed after the topic title - not before the title like on desktops - and are inline with tags and category which can break the topic list:

 ![topic-list](https://global.discourse-cdn.com/meta/original/3X/a/2/a24d2111946278e399d7069b1845e935732c16ba.jpg)

on my sandbox i’m using the standard theme and have no other plugins installed besides your awesome event and location plugin. but on your sandbox the topic list on mobile devices is fine and the date will be displayed right before the title. any hints which could be wrong with my installation?

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [November 17, 2017, 11:51pm UTC](https://meta.discourse.org/t/angus-events-plugin/69776/42 "2017-11-17T23:51:23Z")

</div>

I can confirm I am getting the same issue

 ![Screenshot_20171117-235029](https://global.discourse-cdn.com/meta/original/3X/0/a/0acb117cdcd64b621a520e28e57b4328af1ade17.png)

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

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