DavidGNavas
(David García-Navas)
October 30, 2014, 11:50am
1
Continuing the discussion from Failed to bootstrap with Google Calendar plugin :
Two months ago, I post a topic asking for a developer to do some customizations on Discourse for my organization, Territorio creativo .
Thanks to Vairix , an organization specialized on Rails who have helped us with this, we can now share this customizations.
The first one, it’s simple a plugin that allows to embed a Google Calendar in a post :
https://github.com/tcreativo/plugin_discourse_calendar
Screenshot:
18 Likes
riking
(Kane York)
November 1, 2014, 9:46pm
2
Looking at the code, I think this would be best upstreamed to the onebox code, so that all the sites can use it.
Though… The url matcher might need some tightening.
5 Likes
so what is the status of this? i would rather not install another plugin but do like the idea of being able to embed google calendars in topics. it would be very useful as a team/editorial calendar on our community.
1 Like
Moter8
November 20, 2014, 6:53pm
4
If @DavidGNavas submits a Pull Request to the onebox repo it could get added, but well, not sure if he wants to do that.
I’d be up to submit it too, but I’d rather let him do that.
1 Like
DavidGNavas
(David García-Navas)
November 21, 2014, 12:03am
5
The developer of this plugin was @Daniel_Fernandez_Pes from Vairix, perhaps he wants to submit the PR, I will notificate him. But, if he doesn’t mind, you are free to do it
4 Likes
I already send a PR to implemente this feature.
https://github.com/discourse/onebox/pull/255
Thanks for notifying me!!
nice! but what you’ve done here seems to be about spreadsheets and not calendar? is it possible to also onebox a calendar using a URL like this:
You are right!! My mistake! Here is the right PR!!
https://github.com/discourse/onebox/pull/256
5 Likes
While the embed works on here, any time I try to embed a Calendar on my forum , it doesn’t work.
I’m on the latest version of Discourse and OneBox is included with Discourse automatically now, right? So there’s nothing I really need to add is there?
The plugins I have currently:
Any insight would be greatly appreciated!
DavidGNavas
(David García-Navas)
March 2, 2015, 10:01pm
10
Sorry for not contribute much to the conversation, but we have the same plugins installed (plus details ) on a latest version docker instance and it works perfectly
I’m not sure if it was the Discourse update or that I removed “google.com ” from our OneBox list, but they embed now!
2 Likes
Hmm. I’m just trying this out, and I only get an empty calendar. The exact same code in an iframe on wordpress works just fine. Any idea why?
ie:
(note how the dropdown at top right is empty)
vs.
http://southlondonmakerspace.org/ (3rd from top in the LH column)
riking
(Kane York)
June 2, 2015, 10:51pm
13
Here’s the generated HTML:
<iframe src="https://www.google.com/calendar/embed?showTitle=0&rm=minimal" style="border: 0" width="695" height="521" frameborder="0" scrolling="no"></iframe>
Looks like some of the parameters are getting dropped.
Found that the embed only works if you take the plain URL from the “Embed This Calendar” box in Gcal settings
If you click on “Customize etc.” and paste the long URL with all the parameters separated with &
then the important bit (src=6hnjp743blahblahblah) doesn’t make it through.
I am not a coder so I don’t have the first clue about how to a)track down this issue in the source or b)submit a pull request to fix it, but hopefully this helps someone else with the same issue!
4 Likes
MiguelAngelLV
(Miguel Ángel López Vicente)
September 2, 2015, 4:11pm
15
Any way to set agenda mode as default?
Swang007
(Sean Wangnick)
September 7, 2015, 3:50am
16
Tom_Newsom:
Found that the embed only works if you take the plain URL from the “Embed This Calendar” box in Gcal settings
If you click on “Customize etc.” and paste the long URL with all the parameters separated with &
then the important bit (src=6hnjp743blahblahblah) doesn’t make it through.
I am not a coder so I don’t have the first clue about how to a)track down this issue in the source or b)submit a pull request to fix it, but hopefully this helps someone else with the same issue!
Can this be addressed again? We’d like to embed a Google Calendar into a topic, but we’d like to be able to use the customizable code instead of
2 Likes
Ryan_H
(Ryan Harris)
March 29, 2016, 1:07am
17
When you go to generate your embed code, just make all of your custom modifications and then look at the iframe tag that’s generated. take everything in the source attribute.
<iframe src="http://some-crazy-url-with-all-the-styles-that-i-want">
you want to grab everthing between the quotation marks after src=
1 Like
xiasummer
(xiasummer)
January 30, 2017, 9:06pm
18
Hi, I’ve installed the plugin, and I tried writing the urls google calendar presented me, but nothing happened.
Could you please tell me Why?
@tobiaseigen @Daniel_Fernandez_Pes @Swang007
ewanly
(EW 👌)
January 31, 2017, 10:15pm
19
Google Calendar & Spreadsheet supposed to work now with Onebox without the need to install an extra plugin. Right?
I’d tried to include Google Calendar but I couldn’t succeed. Could anybody confirm that it’s working and how please?
1 Like
xiasummer
(xiasummer)
February 4, 2017, 10:16pm
20
What do you mean? Which plugin? How can it works perfectly?
So now, how to achieve the goal of enbeding the google calendar in the Discourse?