Page 1 of 2

Re: Calendar & Offers page

Posted: Wed Feb 01, 2017 6:03 pm
by montecarlojoe
And now with a tool bar to subscribe to the calendar or quick add deck release events.

Re: Calendar & Offers page

Posted: Wed Feb 01, 2017 6:59 pm
by ecNate
Ah, very nice.

Question though, is it really a 'mush' that I have Google Calendar to add a deck? ;) Small spelling error there on the hover text.

Re: Calendar & Offers page

Posted: Thu Feb 02, 2017 5:07 am
by montecarlojoe
Yes - google is a mush. lol

(Will take a look at the typo when I get back home)

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 4:12 pm
by shaitani
I didn't know about the up to date google calendar until I saw this post.
It is pretty damn useful, thanks for keeping it up to date and working properly.

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 4:28 pm
by ecNate
The UTC time is a little annoying, but plenty of converters exist. You just need to realize times are in UTC which is mentioned as a footnote.

One good addition since we now have a custom solution as a listing would be to include the description of the calendar entry since it typically includes a link to the forum thread entry for that deck.

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 4:35 pm
by shaitani
I'm actually seeing the correct time in my calendar, at least for one sample.
E.g. Don Quixote is being released "Tuesday at 12:00 pm EST", and I'm seeing that correctly in my calendar at "9:00 am" (I'm in PST). I assume Google Calendar automatically populates the calendar for the appropriate time zone you're in.

I also very much like the description containing a link to the thread, a good time saver.

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 5:02 pm
by montecarlojoe
I had to pick a time zone do display the list on UC and UCT is, well, universal. (And the rest of the board uses it as a standard - GMT anyway, basically the same)

However if you subscribe times will be displayed according to your locality in your own calendar.

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 5:04 pm
by flyers3003
Still seeing this:
Screen Shot 2017-02-09 at 5.02.46 PM.png
Screen Shot 2017-02-09 at 5.02.46 PM.png (97.95 KiB) Viewed 7566 times
Cleared cache many times. Any ideas?

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 6:13 pm
by montecarlojoe
It relies on Javascript - so if you have noscript installed or similar it wont work...

What browser are you using?

Re: Calendar & Offers page

Posted: Thu Feb 09, 2017 8:41 pm
by flyers3003
I get the same result for Chrome, Edge and FF.

I double-checked my Chrome settings and I have "Allow all sites to run Javascript" enabled.

I did notice in the developer tools console the following error: Refused to display 'https://accounts.google.com/o/oauth2/au ... iaXw4iMjOg' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

After a little further investigation, if I add "?:embed=yes" to the end of the URL "calendar.php", it works.

Re: Calendar & Offers page

Posted: Fri Feb 10, 2017 8:49 am
by montecarlojoe
I don't know why...

The iFrames are generated by the google API, as is the Google response header - makes no sense for them to clash, or for it to happen to one person and not others...

I use chrome on PC, but works fine for me in IE11 at work, and chrome on android.

In chrome console errors are limited to a couple of missing icons, and in IE is says access denied to the scripts within the generated iframes, but functionality wasn't limited.

I'll have a play later when I get back to my own computer at home

Re: Calendar & Offers page

Posted: Fri Feb 10, 2017 8:54 am
by montecarlojoe
I think it may to be to do with the way sandboxing works in HTML5 - there is an override to force the target of the iframes to NOT be self using the <base> element. I'll let you know when I can get that in place and we'll go a test!

Re: Calendar & Offers page

Posted: Fri Feb 10, 2017 8:56 am
by montecarlojoe
The other important point is to ensure you access UC at https://unitedcardists.com" onclick="window.open(this.href);return false; - which may mean redoing shortcuts. If your are accessing http://unitedcardists.com" onclick="window.open(this.href);return false; scripts may be blocked.

(NB this would also cause very regular forced log-outs as the site redirects you to the secure urls)

Re: Calendar & Offers page

Posted: Fri Feb 10, 2017 10:48 am
by flyers3003
Yeah, already using https - made the change to my shortcuts a while ago when you asked us to. So I just tried the calendar now and it is working.

Re: Calendar & Offers page (wap)

Posted: Fri Feb 10, 2017 1:55 pm
by montecarlojoe
Weird. I haven't changed anything! Put it down to a glitch in the matrix!

Re: Calendar & Offers page

Posted: Thu Mar 15, 2018 10:48 am
by ecNate
FYI - embedded calendar is broken again. :( calendar.php

Re: Calendar & Offers page

Posted: Wed Mar 28, 2018 12:00 pm
by ecNate
Looks like the event calendar is displaying again (thanks!), but unfortunately it's not showing the proper time zone. Apparently it is displaying as UTC. As an example, the House of the Rising Spade event shows on Google in my time zone to be accurate for me at 4pm central. However, when displayed on the site it shows as 9pm (21:00). I don't know if there is a way to force a dynamic update based on the users time zone via profile, probably not though. In that case adding a clear notice that it is UTC would be a good idea since the footer for me says "All times are UTC - 6 hours [ DST ]".