<![CDATA[ Support/Comments for Google Events *Use This Thread* - My Forums]]> https://forums.modx.com/thread/?thread=48852 <![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283972 acaffiero Feb 23, 2011, 05:05 PM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283972 <![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283971
If you are saying that old events are not disappearing after new events show up, then I’m not sure what might be causing that.]]>
jbjones Nov 04, 2010, 10:53 PM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283971
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283970 rajfantastic Nov 04, 2010, 10:45 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283970 <![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283969
First of all - thnaks for this really nice snippet!

Easy to setup!!! YEAH!

But.. when i’m deleting/adding new events in my google calender, it doesn’t show on my page. First i tried with 3 dummy events.. and it worked. But Now i have deleted them adn added 3 new ones. But it’s the same 3 dummy events the page shows.

I tried to look through this whole thread, but i couldn’t find an answer to my question. So please, can anyone help me?

Here is the site: http://www.againstyourrecords.dk/mikkela/

Cheers, Bjarke]]>
brillebjarke Nov 04, 2010, 05:43 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283969
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283968 Quote from: xmetal at Apr 17, 2009, 04:03 PM

would it be possible to have the system display not only future events, but also past ones? If you view my public feed, those past events are still there, and I’d like to be able to show those as well.

Any advice on displaying past events?

The solution to display past events is to make the following change in the Google Events snippet around line 167:
//	$addresses[$tempCounter] = "http://www.google.com/calendar/feeds/".$addy."/public/full?start-min=".date('Y-m-d').'&start-max='.$startMax."&orderby=starttime&sortorder=$order&singleevents=true";
	$addresses[$tempCounter] = "http://www.google.com/calendar/feeds/".$addy."/public/full?start-min=".date('Y-m-d', strtotime('-30 days')).'&start-max='.$startMax."&orderby=starttime&sortorder=$order&singleevents=true";


This should display events from the last 30 days, provided they are still in the gCal feed.

This didn’t seem to work either. Use this calendar snippet instead: http://github.com/chucktrukk/prowebscape-calendar

Not sure why it’s not in the repository...
]]>
rajfantastic Jun 17, 2010, 10:25 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=19#dis-post-283968
<![CDATA[Styling the Last Event...]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283967
I’m using GE 1.4.2. I have custom templates set up for the first event, odd events, and even events in a list view, so that I get an alternating striped effect -- odd events have a background shade and even events don’t.

Here’s the problem: Whether the final event in the list is odd or even, it does not "take" the style assigned to odd or even events. It will only take the template assigned to the last item. Which means that I have to, essentially, "hard-code" the last event’s style as either shaded or not. But if the last event is an even number, it should NOT be shaded, and if it’s an odd number it should be. Right now, I have to make my last event template either shaded or not, which means that -- depending on the number of events in total -- there’s a chance that my list will end with two shaded items or two non-shaded items, as opposed to a nice, neat alternating pattern.

Any suggestions for how to make that last event obey the alternating rule?

Thanks!]]>
fanboyandgothgirl Mar 01, 2010, 11:35 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283967
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283966 Quote from: kevince52 at Nov 26, 2007, 03:46 PM

Hi,

I’ve installed this snippet as per the instructions. Made sure there was only one set of <?php ?>. Changed the gmail address in the snippet and in the snippet call. this is my call:

[!GoogleEvents?dayNameSize=`full`&outputType=`calendar`&calendarType=`wide`&email=`[email protected]`!]

My page returns nothing. No calendar, no errors and not even any code (page source) referring to the snippet call. Any ideas what I’m doing wrong?

I’m using Modx 9.6.1 and Google Events 1.4.1


This is exactly what’s happening to me. The calendar is public, there are future events. I’m using Modx 1.0.2 and Google Events 1.4.2 but nothing is showing. This is my call:

[!GoogleEvents?dayNameSize=`3`&outputType=`list`&maxEvents=`50`&lastEvent=`365`&email=`[ourcalendar]@gmail.com`&dateFormat=`D,Mj`!]

I tried swapping this for a debug call following the response to the above post, but I’m still getting no output whatsoever from that.

I notice that the readme instructions give the parameters and sample snippets followed by a list of placeholders, separated by the sentence:


The placeholders that you can use in the chunks passed to the snippet for a template are:

Does this mean the snippet won’t work without using chunks that I’d have to code myself? Is this the "something obvious" I’m missing?]]>
Pipemma Feb 23, 2010, 01:54 PM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283966
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283965
Is there an easy way to append the details URL with the proper time zone? (example: http://www.google.com/calendar/event?eid=dWx2Z0&ctz=America/Denver)

I was able to append the url for the list view using a chunk, but there is no such option with the full view.

Great snippet, by the way!]]>
bigbuddy Jan 29, 2010, 05:07 PM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283965
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283964
site at sandbox7.aaatrading.co.uk/diary

thanks]]>
phomor Jan 19, 2010, 09:00 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283964
<![CDATA[Re: Support/Comments for Google Events *Use This Thread*]]> https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283963 ’Non-static method SimplePie_GCalendar::create_feed_url() should not be called statically, assuming $this from incompatible context’

This worked for me: http://modxcms.com/forums/index.php/topic,38889.msg234520.html (solution from OpenGeek)
Thanks OpenGeek! grin]]>
MorneB Nov 03, 2009, 07:29 AM https://forums.modx.com/thread/48852/support-comments-for-google-events-use-this-thread?page=18#dis-post-283963