<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Anmari &#187; AmR Ical Events List</title>
	<atom:link href="http://webdesign.anmari.com/category/plugins/amr-ical-events-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdesign.anmari.com</link>
	<description>Simply effective web services</description>
	<lastBuildDate>Wed, 16 Nov 2011 05:01:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Changes for the plugins</title>
		<link>http://webdesign.anmari.com/2656/changes-are-happening-for-the-plugins/</link>
		<comments>http://webdesign.anmari.com/2656/changes-are-happening-for-the-plugins/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 14:02:13 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Events]]></category>
		<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[AmR User Templates]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=2656</guid>
		<description><![CDATA[The plugins are moving amr-events plugin registration is now at icalevents.com amr-user-templates plugin registration is soon at wpusersplugin.com Your details have cloned and moved too  so you can access curremt and older versions here. New versions of the plugins will only be available at the new sites: Use the same usernames and passwords on all [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/plugins/' rel='bookmark' title='Plugins'>Plugins</a> <small>Many of my plugins are offered for free at wordpress.  Some plugins have additional functionality available to certain members of...</small></li>
<li><a href='http://webdesign.anmari.com/1783/another-hacked-story-did-2-9-appear-to-lose-your-plugins/' rel='bookmark' title='Another hacked story &#8211; did 2.9 appear to lose your plugins?'>Another hacked story &#8211; did 2.9 appear to lose your plugins?</a> <small>Don&#8217;t blame 2.9! A  site was hacked.  This was only detected because he had a funny admin screen so decided...</small></li>
<li><a href='http://webdesign.anmari.com/2078/amr-events-download/' rel='bookmark' title='amr-events download'>amr-events download</a> <small>Before you buy membership to access this plugin, please&#8230;&#8230; Test it!  test.icalevents.com.  The latest version is always there &#8211; it might...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>The plugins are moving</h3>
<ul>
<li><strong>amr-events</strong> plugin registration is now at <a title="wordpress events  and calendar plugin " href="http://icalevents.com">icalevents.com</a></li>
<li><strong>amr-user-templates</strong> plugin registration is soon at <a title="simplify wordpress backend for your users with this plugin " href="http://wpusersplugin.com">wpusersplugin.com</a></li>
</ul>
<h3></h3>
<h3>Your details have cloned and moved too</h3>
<ul>
<li> so you can access curremt and older versions here. New versions of the plugins will only be available at the new sites:</li>
<li>Use the same usernames and passwords on all sites.</li>
</ul>
<p>&nbsp;</p>
<h3>On;y forum or email subscription registrations here</h3>
<ul>
<li>Any problems, please log it at the support forum or <a href="http://webdesign.anmari.com/about/contact/">contact me asap</a>.</li>
</ul>
<p>&nbsp;</p>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/plugins/' rel='bookmark' title='Plugins'>Plugins</a> <small>Many of my plugins are offered for free at wordpress.  Some plugins have additional functionality available to certain members of...</small></li>
<li><a href='http://webdesign.anmari.com/1783/another-hacked-story-did-2-9-appear-to-lose-your-plugins/' rel='bookmark' title='Another hacked story &#8211; did 2.9 appear to lose your plugins?'>Another hacked story &#8211; did 2.9 appear to lose your plugins?</a> <small>Don&#8217;t blame 2.9! A  site was hacked.  This was only detected because he had a funny admin screen so decided...</small></li>
<li><a href='http://webdesign.anmari.com/2078/amr-events-download/' rel='bookmark' title='amr-events download'>amr-events download</a> <small>Before you buy membership to access this plugin, please&#8230;&#8230; Test it!  test.icalevents.com.  The latest version is always there &#8211; it might...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/2656/changes-are-happening-for-the-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>amr-events download</title>
		<link>http://webdesign.anmari.com/2078/amr-events-download/</link>
		<comments>http://webdesign.anmari.com/2078/amr-events-download/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 07:13:14 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Events]]></category>
		<category><![CDATA[AmR Ical Events List]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=2078</guid>
		<description><![CDATA[Before you buy membership to access this plugin, please&#8230;&#8230; Test it!  test.icalevents.com.  The latest version is always there &#8211; it might even be the next soon to be released version. See the event plugin&#8216;s own website for detailed documentation &#8211; try the sitemap Check out the forum to see the sorts of problems people have. If [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/2008/amr-user-templates-download/' rel='bookmark' title='amr user templates download'>amr user templates download</a> <small>The User Template plugin which helps you simplify member admin screens is now available for download. Access to the plugin...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/events-plugin/' rel='bookmark' title='Events Plugin'>Events Plugin</a> <small>The paid version The amr-events plugin is available here (my main site).  Please register or if already a member, please...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Before you buy membership to access this plugin, please&#8230;&#8230;</p>
<ul>
<li>Test it!  <a title="Wordpress Events Plugin Test Site" href="http://test.icalevents.com">test.icalevents.com</a>.  The latest version is always there &#8211; it might even be the next soon to be released version.</li>
<li>See the <a href="http://icalevents.com/">event plugin</a>&#8216;s own website for detailed <strong>documentation</strong> &#8211; try the sitemap</li>
<li>Check out the <a href="http://forum.anmari.com">forum</a> to see the sorts of problems people have. If all goes well, there should NOT be many posts.</li>
<li>See the rating for the <a href="http://wordpress.org/extend/plugins/amr-ical-events-list/">free version at wordpress</a>. The free plugin is required for listing functionality.</li>
<li>WPML users can test integration at <a title="wordpress ical events calendar with full translation and wpml integration" href="http://lang.anmari.com">lang.anmari.com</a></li>
</ul>
<h2>Download latest version 3.0.7 updated 25 Aug 2011 :</h2>
<div class="ym_private_no_access"><div class="ym_message"><div class="ym_message_liner">You need to be logged in to download the file or see the post</div></div></div>
<p>&nbsp;</p>
<p>Please subscribe to <a href="http://icalevents.com/feed/">icalevents.com rss updates</a> or <a title="See subscribe option in sidebar" href="http://icalevents.com/">email</a> or via <a href="https://twitter.com/icalevents">twitter</a>, so that you will be advised when there are updates.</p>
<h2>Please read <a title="Log of changes" href="http://icalevents.com/category/changelog/">change log</a> since your last version before upgrading.</h2>
<p>&nbsp;</p>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/2008/amr-user-templates-download/' rel='bookmark' title='amr user templates download'>amr user templates download</a> <small>The User Template plugin which helps you simplify member admin screens is now available for download. Access to the plugin...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/events-plugin/' rel='bookmark' title='Events Plugin'>Events Plugin</a> <small>The paid version The amr-events plugin is available here (my main site).  Please register or if already a member, please...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/2078/amr-events-download/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Gift photo calendar using Google ical files</title>
		<link>http://webdesign.anmari.com/404/gift-photo-calendar/</link>
		<comments>http://webdesign.anmari.com/404/gift-photo-calendar/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 00:29:27 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[gifts]]></category>
		<category><![CDATA[ical]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=404</guid>
		<description><![CDATA[Use your ical feed calendars (google or other (others by importing into google)) and your own photo's to generate a A4 year calendar, with some simple restyling.
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/' rel='bookmark' title='Comparison of Event Calendar Plug-ins'>Comparison of Event Calendar Plug-ins</a> <small>We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents...</small></li>
<li><a href='http://webdesign.anmari.com/770/search-engine-optimisation-with-google/' rel='bookmark' title='Search Engine Optimisation with Google'>Search Engine Optimisation with Google</a> <small>This checklist is  based on Google&#8217;s Search Engine Optimization Starter Guide. This is what they think is important.    One might...</small></li>
<li><a href='http://webdesign.anmari.com/336/timezones-wordpress-ical-php/' rel='bookmark' title='Timezones, WordPress, Ical, Php&#8230;.'>Timezones, WordPress, Ical, Php&#8230;.</a> <small>What a lot of fun this can be (not!) Your Ical file may have a timezone specified, the event may...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h3>Looking for some personalised seasonal, christmas or new year gifts?</h3>
<div id="attachment_405" class="wp-caption aligncenter" style="width: 92px"><a href="http://webdesign.anmari.com/wp-content/uploads/2008/11/yearcalendarexample.png"><img class="size-medium wp-image-405 " title="year calendar example" src="http://webdesign.anmari.com/wp-content/uploads/2008/11/yearcalendarexample-82x300.png" alt="Photo year calendar example" width="82" height="300" /></a><p class="wp-caption-text">Photo year calendar example</p></div>
<p>Use your ical calendars (google or other (others by importing into google)) and your own photo&#8217;s to generate a A4 year calendar.  Print to PDF and send to your local print shop for bindin.  Viola! instant personal presents.</p>
<h1 style="text-align: center;"><a href="http://icalphoto.com">icalphoto.com</a></h1>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/' rel='bookmark' title='Comparison of Event Calendar Plug-ins'>Comparison of Event Calendar Plug-ins</a> <small>We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents...</small></li>
<li><a href='http://webdesign.anmari.com/770/search-engine-optimisation-with-google/' rel='bookmark' title='Search Engine Optimisation with Google'>Search Engine Optimisation with Google</a> <small>This checklist is  based on Google&#8217;s Search Engine Optimization Starter Guide. This is what they think is important.    One might...</small></li>
<li><a href='http://webdesign.anmari.com/336/timezones-wordpress-ical-php/' rel='bookmark' title='Timezones, WordPress, Ical, Php&#8230;.'>Timezones, WordPress, Ical, Php&#8230;.</a> <small>What a lot of fun this can be (not!) Your Ical file may have a timezone specified, the event may...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/404/gift-photo-calendar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get the next, or previous day of week from the current date</title>
		<link>http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/</link>
		<comments>http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 20:59:35 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=2000</guid>
		<description><![CDATA[Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when working with ical recurring dates.  If the date given is already that day of week, it is returned as the result. For example to get the following Every 20th Monday of the year, forever: DTSTART;TZID=US-Eastern:19970519T090000 [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/' rel='bookmark' title='Calculate date from day of year in php'>Calculate date from day of year in php</a> <small>Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a...</small></li>
<li><a href='http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/' rel='bookmark' title='Day of week for historical dates earlier than 1760'>Day of week for historical dates earlier than 1760</a> <small>Problem with getting the day of week for old dates before 1760? See this....</small></li>
<li><a href='http://webdesign.anmari.com/520/timezones-and-offsets-in-wordpress/' rel='bookmark' title='Timezones and offsets in wordpress'>Timezones and offsets in wordpress</a> <small>Writing a plugin that requires a correct timezone object ?  Not sure how to deal with wordpress installations that may...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Given a date, get the next or previous Monday, or Tuesday etc from the given date.  This is useful when working with ical recurring dates.  If the date given is already that day of week, it is returned as the result.</p>
<p>For example to get the following</p>
<blockquote><p>Every 20th Monday of the year, forever:<br />
DTSTART;TZID=US-Eastern:19970519T090000<br />
RRULE:FREQ=YEARLY;BYDAY=20MO</p>
<p>==&gt; (1997 9:00 AM EDT)May 19<br />
(1998 9:00 AM EDT)May 18<br />
(1999 9:00 AM EDT)May 17</p></blockquote>
<p>One could get the first Monday of the year, the it is fairly easy to get the 20th !</p>
<blockquote>
<pre>&lt;?php

global $amr_day_of_week_no;
$amr_day_of_week_no = array (
 'MO' =&gt; 1,
 'TU' =&gt; 2,
 'WE' =&gt; 3,
 'TH' =&gt; 4,
 'FR' =&gt; 5,
 'SA' =&gt; 6,
 'SU' =&gt; 0
 );    

 function amr_goto_byday ($dateobj, $byday, $sign)    {
 global $amr_day_of_week_no;    
 $dayofweek = $dateobj-&gt;format('w'); /* 0=sunday, 6 = saturday */
 if ($dayofweek == '-1') $dayofweek = <a href="http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/">get_oldweekdays</a>($dateobj); /* php seems to break around 1760   */
$target     = $amr_day_of_week_no[$byday]; /*  mo=1 ,su=7  */
 $adjustment = $target - $dayofweek;
 if ($sign === '+') {
 if ($adjustment &lt; 0) $adjustment = $adjustment + 7;        
 }
 else if ($adjustment &gt; 0) $adjustment = $adjustment-7;    
 $d2 = new DateTime();
 $d2 = clone ($dateobj);         
 date_modify ($d2,$adjustment.' days');    
 return ($d2);
 }    

 /* --------Test data ------------------------- */
$d[] = new DateTime('2009-12-25');
$d[] = new DateTime('2009-12-28');
$d[] = new DateTime('2009-12-29');
$d[] = new DateTime('2009-12-30');
$d[] = new DateTime('2009-12-31');
$d[] = new DateTime('2010-01-01');
$d[] = new DateTime('2010-01-02');
$d[] = new DateTime('2010-01-03');
$d[] = new DateTime('2010-01-04');
$d[] = new DateTime('2010-01-05');
$d[] = new DateTime('2010-01-06');
$d[] = new DateTime('2010-01-07');
$d[] = new DateTime('2010-01-08');
$d[] = new DateTime('2010-01-09');
$d[] = new DateTime('2010-01-10');
$d[] = new DateTime('2010-01-11');

echo '&lt;table&gt;';    
foreach (array ('TU','WE','TH','FR','SA','SU','MO') as $day) {
 echo '&lt;tr&gt;&lt;td&gt; Aiming for '.$day.'&lt;/td&gt;&lt;td&gt;If not this, then next&lt;/td&gt;&lt;td&gt;If not this, then prev&lt;/td&gt;&lt;/tr&gt;';                
 foreach ($d as $i =&gt; $d2)    {
 $d3 = amr_goto_byday ($d2, $day, '+');
 $d4 = amr_goto_byday ($d2, $day, '-');
 $s = $d2-&gt;format('Y m d l');
 echo '&lt;tr&gt;&lt;td&gt; '.$s.'&lt;/td&gt;&lt;td&gt;'.$d3-&gt;format('l,Y m d').'&lt;/td&gt;&lt;td&gt;'.$d4-&gt;format('l,Y m d').'&lt;/td&gt;&lt;/tr&gt;';
 }    
}
echo '&lt;/table&gt;';   
  
?&gt;</pre>
</blockquote>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/' rel='bookmark' title='Calculate date from day of year in php'>Calculate date from day of year in php</a> <small>Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a...</small></li>
<li><a href='http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/' rel='bookmark' title='Day of week for historical dates earlier than 1760'>Day of week for historical dates earlier than 1760</a> <small>Problem with getting the day of week for old dates before 1760? See this....</small></li>
<li><a href='http://webdesign.anmari.com/520/timezones-and-offsets-in-wordpress/' rel='bookmark' title='Timezones and offsets in wordpress'>Timezones and offsets in wordpress</a> <small>Writing a plugin that requires a correct timezone object ?  Not sure how to deal with wordpress installations that may...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Day of week for historical dates earlier than 1760</title>
		<link>http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/</link>
		<comments>http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 19:23:54 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1989</guid>
		<description><![CDATA[Problem with getting the day of week for old dates before 1760? See this.
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/' rel='bookmark' title='Get the next, or previous day of week from the current date'>Get the next, or previous day of week from the current date</a> <small>Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when...</small></li>
<li><a href='http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/' rel='bookmark' title='Calculate date from day of year in php'>Calculate date from day of year in php</a> <small>Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a...</small></li>
<li><a href='http://webdesign.anmari.com/404/gift-photo-calendar/' rel='bookmark' title='Gift photo calendar using Google ical files'>Gift photo calendar using Google ical files</a> <small>Use your ical feed calendars (google or other (others by importing into google)) and your own photo's to generate a...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>One of the ics files that I encountered in testing my events list plugin came from Google and had a &#8220;Zero Year&#8221; date in it.  There were probably reasons for this and I have to be thankful for the happening -   In looking into it I foundthat the php date format function for day of week $dateobj-&gt;format(&#8216;w&#8217;);  &#8220;breaks&#8221; around the year 1760 and starts returning a &#8220;-1&#8243;.  Since I do have people using my plugin for anniversaries with earlier start dates (It&#8217;s not all musical gigs and sporting events!), I felt I needed to cope with it.</p>
<p>I now use the following code, which appears to work when comparing the weekdays using <a href="http://www.searchforancestors.com/utility/dayofweek.html">http://www.searchforancestors.com/utility/dayofweek.html</a></p>
<pre>$w = $dateobj-&gt;format('w');
if ($w == '-1') $w = get_oldweekdays($dateobj);

function get_oldweekdays ($d) {
   $dummy = new DateTime();
   $dummy = clone ($d);
   date_modify($dummy,'+91500 weeks');
   /* add weeks to get us back to a "working" date -
   a guess from when the date started breaking, plus some extra to be safe */
   $w = $dummy-&gt;format('w');
 return($w);
}</pre>
<p><img class="aligncenter size-full wp-image-1993" title="1700" src="http://webdesign.anmari.com/wp-content/uploads/1700.png" alt="" width="482" height="241" /></p>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/' rel='bookmark' title='Get the next, or previous day of week from the current date'>Get the next, or previous day of week from the current date</a> <small>Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when...</small></li>
<li><a href='http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/' rel='bookmark' title='Calculate date from day of year in php'>Calculate date from day of year in php</a> <small>Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a...</small></li>
<li><a href='http://webdesign.anmari.com/404/gift-photo-calendar/' rel='bookmark' title='Gift photo calendar using Google ical files'>Gift photo calendar using Google ical files</a> <small>Use your ical feed calendars (google or other (others by importing into google)) and your own photo's to generate a...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calculate date from day of year in php</title>
		<link>http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/</link>
		<comments>http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 02:04:04 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1956</guid>
		<description><![CDATA[Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a Day in the year (1 to 366), and returns a DateTime Object. /* Year if format YYYY, Day in year 1 to 366 */ function dayofyear2date( $year, $DayInYear ) { $d = new DateTime($year.'-01-01'); date_modify($d, [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/' rel='bookmark' title='Get the next, or previous day of week from the current date'>Get the next, or previous day of week from the current date</a> <small>Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when...</small></li>
<li><a href='http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/' rel='bookmark' title='Day of week for historical dates earlier than 1760'>Day of week for historical dates earlier than 1760</a> <small>Problem with getting the day of week for old dates before 1760? See this....</small></li>
<li><a href='http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/' rel='bookmark' title='Comparison of Event Calendar Plug-ins'>Comparison of Event Calendar Plug-ins</a> <small>We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here  is a simple first of several notes on useful date functions.  This function accepts  a year  (YYYY) and a Day in the year (1 to 366), and returns a DateTime Object.</p>
<pre class="php">
<pre> /* Year if format YYYY, Day in year 1 to 366 */</pre>
<p>function dayofyear2date( $year, $DayInYear ) {</p>
<p>$d = new DateTime($year.'-01-01');</p>
<p>date_modify($d, '+'.($DayInYear-1).' days');</p>
<p>return ($d);</p>
<p>}</pre>
<p>I&#8217;m tired of seeing Unix time stamp code examples that break with older dates.  Since my ical calendar scripts can potentially hold recurring dates that are anniversaries and birthdays, my scripts need to cope with dates earlier than 1970, and with timezones and daylight saving,  so I use the DateTime class exclusively now.</p>
<h3>Test Script To Check Function</h3>
<pre class="php">&lt;?php

function dayofyear2date( $year, $DayInYear ) {
 $d = new DateTime($year.'-01-01');
 date_modify($d, '+'.($DayInYear-1).' days');
return ($d);
}

$d[] = new DateTime('1950-12-31');
$d[] = new DateTime('1970-01-01');
$d[] = new DateTime('2010-01-01');
$d[] = new DateTime('2010-12-27');
$d[] = new DateTime('2010-12-31');

foreach ($d as $i =&gt; $d2)    {
 $dayofyear = $d2-&gt;format('z')+1;
 $date = dayofyear2date (
 $d2-&gt;format('Y'),
 $dayofyear ); /* note z returns days from 0 */
 echo '&lt;br /&gt;&lt;b&gt;'.$d2-&gt;format('Y m d')
  .'&lt;/b&gt;&amp;nbsp;&amp;nbsp;'.$dayofyear.'&amp;nbsp;&amp;nbsp;&lt;br /&gt;'
  .$date-&gt;format('Y m d');
}
?&gt;
</pre>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/2000/get-the-next-day-of-week-from-the-current-date/' rel='bookmark' title='Get the next, or previous day of week from the current date'>Get the next, or previous day of week from the current date</a> <small>Given a date, get the next or previous Monday, or Tuesday etc from the given date. This is useful when...</small></li>
<li><a href='http://webdesign.anmari.com/1989/day-of-week-for-dates-earlier-than-1760/' rel='bookmark' title='Day of week for historical dates earlier than 1760'>Day of week for historical dates earlier than 1760</a> <small>Problem with getting the day of week for old dates before 1760? See this....</small></li>
<li><a href='http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/' rel='bookmark' title='Comparison of Event Calendar Plug-ins'>Comparison of Event Calendar Plug-ins</a> <small>We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1956/calculate-date-from-day-of-year-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ical events &#8211; moved and html/css changes</title>
		<link>http://webdesign.anmari.com/1564/ical-events-moved-and-htmlcss-changes/</link>
		<comments>http://webdesign.anmari.com/1564/ical-events-moved-and-htmlcss-changes/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 02:40:41 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1564</guid>
		<description><![CDATA[For those of you monitoring the RSS feed for ical events, please note two things: All Ical events related work has been moved to http://icalevents.com. Due to problems with themes which strongly specify list item css in many different ways, I am thinking of removing the hardcoded list structure with the table cells (you could [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/1509/ical-events-list-2-3-9/' rel='bookmark' title='Ical Events List 2.3.9 and icalevents-table'>Ical Events List 2.3.9 and icalevents-table</a> <small>The Ical Upcoming Events List or Ical EventsTable plugin now has its own site. Please use the new site for...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/240/css-for-real-html-tables/' rel='bookmark' title='CSS for real html tables'>CSS for real html tables</a> <small>There are occasions when an HTML table is appropriate. One then wants the data to be presented well. Following are...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For those of you monitoring the RSS feed for ical events, please note two things:</p>
<ol>
<li>All Ical events related work has been moved to <a href="http://icalevents.com">http://icalevents.com</a>.</li>
<li>Due to problems with themes which strongly specify list item css in many different ways, I am thinking of removing the hardcoded list structure with the table cells (you could add it back in using the before/after fields in the admin area if you wanted). I liked it becuase I thought a list of the event properties was more &#8216;semantic&#8217; than just some breaks here and there to force the bits onto new lines.     If you have any thoughts or concerns about this, please leave a comment on the website.</li>
</ol>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/1509/ical-events-list-2-3-9/' rel='bookmark' title='Ical Events List 2.3.9 and icalevents-table'>Ical Events List 2.3.9 and icalevents-table</a> <small>The Ical Upcoming Events List or Ical EventsTable plugin now has its own site. Please use the new site for...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/240/css-for-real-html-tables/' rel='bookmark' title='CSS for real html tables'>CSS for real html tables</a> <small>There are occasions when an HTML table is appropriate. One then wants the data to be presented well. Following are...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1564/ical-events-moved-and-htmlcss-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ical Events List 2.3.9 and icalevents-table</title>
		<link>http://webdesign.anmari.com/1509/ical-events-list-2-3-9/</link>
		<comments>http://webdesign.anmari.com/1509/ical-events-list-2-3-9/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 09:21:53 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[upcoming events]]></category>

		<guid isPermaLink="false">http://webdesign.anmari.com/?p=1509</guid>
		<description><![CDATA[The Ical Upcoming Events List or Ical EventsTable plugin now has its own site. Please use the new site for any comments &#8211; thanks Related posts: Ical events list The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The... Ical events &#8211; moved and html/css [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/1564/ical-events-moved-and-htmlcss-changes/' rel='bookmark' title='Ical events &#8211; moved and html/css changes'>Ical events &#8211; moved and html/css changes</a> <small>For those of you monitoring the RSS feed for ical events, please note two things: All Ical events related work...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/events-plugin/' rel='bookmark' title='Events Plugin'>Events Plugin</a> <small>The paid version The amr-events plugin is available here (my main site).  Please register or if already a member, please...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h1>The <a href="http://icalevents.com/">Ical Upcoming Events List</a> or <a href="http://icalevents.com/">Ical EventsTable plugin</a> now has its own site.</h1>
<p>Please use the new site for any comments &#8211; thanks</p>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/plugins/ical-events-list/' rel='bookmark' title='Ical events list'>Ical events list</a> <small>The free version For further information on the plugin and the free version, please see Icalevents.anmari The paid version The...</small></li>
<li><a href='http://webdesign.anmari.com/1564/ical-events-moved-and-htmlcss-changes/' rel='bookmark' title='Ical events &#8211; moved and html/css changes'>Ical events &#8211; moved and html/css changes</a> <small>For those of you monitoring the RSS feed for ical events, please note two things: All Ical events related work...</small></li>
<li><a href='http://webdesign.anmari.com/plugins/events-plugin/' rel='bookmark' title='Events Plugin'>Events Plugin</a> <small>The paid version The amr-events plugin is available here (my main site).  Please register or if already a member, please...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/1509/ical-events-list-2-3-9/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Comparison of Event Calendar Plug-ins</title>
		<link>http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/</link>
		<comments>http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/#comments</comments>
		<pubDate>Wed, 16 May 2007 19:55:13 +0000</pubDate>
		<dc:creator>anmari</dc:creator>
				<category><![CDATA[AmR Ical Events List]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[upcoming events]]></category>

		<guid isPermaLink="false">http://www.webdesign.anmari.com/2007/05/comparison-of-event-calendar-plug-ins/</guid>
		<description><![CDATA[We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents to collaborate in maintaining the website. We would like to have a event listing feature that is really easy to use. From a usability point of view, it would be nice if there was one [...]
Related posts:<ol>
<li><a href='http://webdesign.anmari.com/353/simplifying-your-events-ticketing/' rel='bookmark' title='Simplifying your event&#8217;s ticketing&#8230;'>Simplifying your event&#8217;s ticketing&#8230;</a> <small>I am always on the lookout for tools to help small businesses. Here is an interesting one for those that...</small></li>
<li><a href='http://webdesign.anmari.com/404/gift-photo-calendar/' rel='bookmark' title='Gift photo calendar using Google ical files'>Gift photo calendar using Google ical files</a> <small>Use your ical feed calendars (google or other (others by importing into google)) and your own photo's to generate a...</small></li>
<li><a href='http://webdesign.anmari.com/336/timezones-wordpress-ical-php/' rel='bookmark' title='Timezones, WordPress, Ical, Php&#8230;.'>Timezones, WordPress, Ical, Php&#8230;.</a> <small>What a lot of fun this can be (not!) Your Ical file may have a timezone specified, the event may...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>We are thinking of converting the school&#8217;s website from typo3 to wordpress to make it easier for staff and parents to collaborate in maintaining the website.</p>
<p>We would like to have a event listing feature that is really easy to use.     From a usability point of view, it would be nice if there was one obvious place to maintain the events and their dates.   In addition the school likes to have a paper newsletter for the community.  That usually has a upcoming events page sorted by months.   It would be nice to print this out from the web.  Days of week should be noted to make it easier for parents to remember.        From a maintenance point of view,  it  should be really simple to install and preferably immune to wordpress version upgrades (ie: minimal fiddling to re-install).   Starting from the <a href="http://codex.wordpress.org/Plugins/Calendar_Event">wordpress list</a> I distilled a sub-list for further evaluation.  Due to the number on the list, and limited time to bedtime (sleep is a wonderful thing),  a bit of judging a book by the cover was applied to the first  cut (IE: quality of the presentation, documentation and support for the plug-in was used as an indicator of the quality of the plug-in.)</p>
<h3>Worth further evaluation:</h3>
<ul>
<li><a href="http://wpcal.firetree.net/about/">FireTree&#8217;s Wpcal Event Calendar 3.1</a> looks interesting and is well presented.  No hack required any more for wordpress 2.0.  Uses posts as events with a separate category. The posts can be kept off the &#8220;blog&#8221; page, but will appear in the recent posts &#8211; this maybe useful to also have a new event posting be treated as &#8220;news&#8221;.   One could also have an events category page where one can list all the events and edit from there. (Maybe add an &#8220;add an event&#8221; link  to the template?).  I have a concern though about the event dates being stuck down below the post edit screen &#8211; not so obvious and easy for a usser who is just thinking about entering a bunch of events.</li>
<li><a href="http://www.sargant.com/blog/wordpress-plugins/rs-event/">Sargant&#8217;s simple RS event tracker</a> could be a go- there is a lot to be said for simplicity!</li>
<li><a href="http://www.fahlstad.se/wp-plugins/wp-cal">FahlstadDesign&#8217;s WP-Cal</a> looks promising. Relatively easy to install and I like the way that one can add the event straight from the calendar page. Events are separate from posts. The plug-in&#8217;s offering page is reasonably well done. But I can see it is easy to accidentally put the wrong date in &#8211; how does one change the date? Delete and re-add? more investigation required.<a href="http://www.fahlstad.se/wp-plugins/wp-cal"></a></li>
<li><a href="http://www.sothq.net/projects/events-plugin/">Sothq&#8217;s wp.2.0 only events plug-in</a> &#8211; if all else fail, then this could be a go.  But not quite as cleanly presented  as the others.</li>
</ul>
<p>So far what I want is a combination of WP-Cal&#8217;s ease of adding an event, combined with firetree&#8217;s integration to sidebar etc&#8230;..</p>
<h3>Not quite right</h3>
<p>Too cute or a specific purpose not that suitable to ours, or they are just &#8220;Post&#8221; Calendars &#8211; ie: they show a box calendar flagging dates for which there are posts.  This is not what we are looking for.</p>
<ul>
<li><a href="http://www.theblog.ca/?p=41">Peter&#8217;s sleeps till date countdown</a></li>
<li><a href="http://garrickvanburen.com/wordpress-plugins/wpical">Wp-ical</a> not what we are looking for either.<br />
<a href="http://www.jonabad.com/livecalendar/">LiveCalendar</a></li>
<li><a href="http://n0id.hexium.net/?page_id=56">Calendar 2.0 from &#8220;paranoid&#8217;s life rambling&#8221;</a>  has limited explanation and support &#8211; not going to explore further.</li>
</ul>
<p>Related posts:</p><ol>
<li><a href='http://webdesign.anmari.com/353/simplifying-your-events-ticketing/' rel='bookmark' title='Simplifying your event&#8217;s ticketing&#8230;'>Simplifying your event&#8217;s ticketing&#8230;</a> <small>I am always on the lookout for tools to help small businesses. Here is an interesting one for those that...</small></li>
<li><a href='http://webdesign.anmari.com/404/gift-photo-calendar/' rel='bookmark' title='Gift photo calendar using Google ical files'>Gift photo calendar using Google ical files</a> <small>Use your ical feed calendars (google or other (others by importing into google)) and your own photo's to generate a...</small></li>
<li><a href='http://webdesign.anmari.com/336/timezones-wordpress-ical-php/' rel='bookmark' title='Timezones, WordPress, Ical, Php&#8230;.'>Timezones, WordPress, Ical, Php&#8230;.</a> <small>What a lot of fun this can be (not!) Your Ical file may have a timezone specified, the event may...</small></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://webdesign.anmari.com/95/comparison-of-event-calendar-plug-ins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

