<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WP-Cat2Calendar</title>
	<atom:link href="http://www.codeispoetry.ru/wp-cat2calendar/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codeispoetry.ru</link>
	<description>Developer blog</description>
	<lastBuildDate>Sun, 15 Aug 2010 16:50:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: and</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-570</link>
		<dc:creator>and</dc:creator>
		<pubDate>Tue, 09 Feb 2010 17:54:46 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-570</guid>
		<description>Thanks for experience sharing. I think it will be better just open someone&#039;s plugin and look how it&#039;s implemented there. I&#039;m sure that someone already forced WP_Rewrite to work.</description>
		<content:encoded><![CDATA[<p>Thanks for experience sharing. I think it will be better just open someone&#8217;s plugin and look how it&#8217;s implemented there. I&#8217;m sure that someone already forced WP_Rewrite to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-568</link>
		<dc:creator>Camilo</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-568</guid>
		<description>Hey!
I&#039;ve also played with permalinks a few times, they can be quite a pain! I don&#039;t think there is a plugin conflict here. Like you, I don&#039;t fully understand how to play with the permalinks, but my (wild) guess is that you&#039;re not making use of the filter &quot;generate_rewrite_rules&quot;. Here&#039;s an example code I&#039;ve used in a function:
&lt;code&gt;
global $wp_rewrite;

		$wp_rewrite-&gt;rules = array_merge(
			array( $this-&gt;slugUsergroup . &#039;/(.+)/&#039; . $this-&gt;slugHighlights . &#039;/(.+)/?$&#039; =&gt; &#039;index.php?&#039; . $this-&gt;slugUsergroup . &#039;=$matches[1]&amp;&#039; . $this-&gt;slugMethod . &#039;=$matches[2]&#039; )
			, $wp_rewrite-&gt;rules
		);

		$wp_rewrite-&gt;rules = array_merge(
			array( $this-&gt;slugUsergroup . &#039;/(.+)/&#039; . $this-&gt;slugHighlights . &#039;/?$&#039; =&gt; &#039;index.php?&#039; . $this-&gt;slugUsergroup . &#039;=$matches[1]&amp;&#039; . $this-&gt;slugMethod . &#039;=0&#039; )
			, $wp_rewrite-&gt;rules
		);
&lt;/code&gt;
Oddly, I just noticed I never returned any value from this function (even though it&#039;s a filter) and, believe me, I worked hard to get this one to work. Just look at the end of this page: http://codex.wordpress.org/Custom_Queries . Just be sure to add the rules to the beggining of the array, or you may have trouble when another rule matches before yours.
I guess the rules always have to be added, like everything else WP has to load before it spits something out. But, then again, maybe you should just flush when you save the options in your page or when WP calls it.
If you&#039;d like a suggestion on a feature you could implement, you should consider looking at the hCalendar microformat ( http://microformats.org/wiki/hcalendar ). It&#039;s ridiculously easy to implement, it&#039;s an open standard and it&#039;s a move towards semantic web!
Well, thank you for your time!</description>
		<content:encoded><![CDATA[<p>Hey!<br />
I&#8217;ve also played with permalinks a few times, they can be quite a pain! I don&#8217;t think there is a plugin conflict here. Like you, I don&#8217;t fully understand how to play with the permalinks, but my (wild) guess is that you&#8217;re not making use of the filter &#8220;generate_rewrite_rules&#8221;. Here&#8217;s an example code I&#8217;ve used in a function:<br />
<code><br />
global $wp_rewrite;</p>
<p>		$wp_rewrite-&gt;rules = array_merge(<br />
			array( $this-&gt;slugUsergroup . '/(.+)/' . $this-&gt;slugHighlights . '/(.+)/?$' =&gt; 'index.php?' . $this-&gt;slugUsergroup . '=$matches[1]&amp;' . $this-&gt;slugMethod . '=$matches[2]' )<br />
			, $wp_rewrite-&gt;rules<br />
		);</p>
<p>		$wp_rewrite-&gt;rules = array_merge(<br />
			array( $this-&gt;slugUsergroup . '/(.+)/' . $this-&gt;slugHighlights . '/?$' =&gt; 'index.php?' . $this-&gt;slugUsergroup . '=$matches[1]&amp;' . $this-&gt;slugMethod . '=0' )<br />
			, $wp_rewrite-&gt;rules<br />
		);<br />
</code><br />
Oddly, I just noticed I never returned any value from this function (even though it&#8217;s a filter) and, believe me, I worked hard to get this one to work. Just look at the end of this page: <a href="http://codex.wordpress.org/Custom_Queries" rel="nofollow">http://codex.wordpress.org/Custom_Queries</a> . Just be sure to add the rules to the beggining of the array, or you may have trouble when another rule matches before yours.<br />
I guess the rules always have to be added, like everything else WP has to load before it spits something out. But, then again, maybe you should just flush when you save the options in your page or when WP calls it.<br />
If you&#8217;d like a suggestion on a feature you could implement, you should consider looking at the hCalendar microformat ( <a href="http://microformats.org/wiki/hcalendar" rel="nofollow">http://microformats.org/wiki/hcalendar</a> ). It&#8217;s ridiculously easy to implement, it&#8217;s an open standard and it&#8217;s a move towards semantic web!<br />
Well, thank you for your time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-542</link>
		<dc:creator>and</dc:creator>
		<pubDate>Fri, 05 Feb 2010 22:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-542</guid>
		<description>LOL, nice story about a bot :D

About a permalinks, I think you should update the plugin to latest version (if it&#039;s not updated to 1.0.4 yet) and re-activate it (deactivate + activate). There was a problem with WP_Rewrite in an early versions. I&#039;m using it on one of my websites along with other of my plugins which are uses permalinks too and there are no problems.

And also there can be any other plugins on your WordPress which uses permalinks not properly and just flushes the rules of cat2cal. Btw, I&#039;m not sure that I&#039;m using it properly but it works at least for two of my plugins which works on one WordPress installation. Documentation about a WP_Rewrite is not so clear and some of samples didn&#039;t work properly for me when I tried to use it in a few of my plugins, there was just a conflict between them, one plugin flushed the rules of each other.  

I&#039;m not sure that it&#039;s a good idea add a rules on every &lt;tt&gt;init&lt;/tt&gt; but it works and if I&#039;m adding it only on plugin activation then another plugin can be activated and just flush my rules so I&#039;m not sure that everything so clear there.

I&#039;ve rewritten wp_trim_excerpt function and future posts filter that you gave me, it&#039;s already committed to &lt;a href=&quot;http://plugins.trac.wordpress.org/browser/wp-cat2calendar/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;plugin&#039;s SVN&lt;/a&gt;. In addition, it won&#039;t generate an excerpt for a password protected posts anymore.

I think this plugin will be better in the future. That&#039;s great that you writing a responses, it&#039;s very important for me. Thank you!</description>
		<content:encoded><![CDATA[<p>LOL, nice story about a bot <img src='http://www.codeispoetry.ru/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>About a permalinks, I think you should update the plugin to latest version (if it&#8217;s not updated to 1.0.4 yet) and re-activate it (deactivate + activate). There was a problem with WP_Rewrite in an early versions. I&#8217;m using it on one of my websites along with other of my plugins which are uses permalinks too and there are no problems.</p>
<p>And also there can be any other plugins on your WordPress which uses permalinks not properly and just flushes the rules of cat2cal. Btw, I&#8217;m not sure that I&#8217;m using it properly but it works at least for two of my plugins which works on one WordPress installation. Documentation about a WP_Rewrite is not so clear and some of samples didn&#8217;t work properly for me when I tried to use it in a few of my plugins, there was just a conflict between them, one plugin flushed the rules of each other.  </p>
<p>I&#8217;m not sure that it&#8217;s a good idea add a rules on every <tt>init</tt> but it works and if I&#8217;m adding it only on plugin activation then another plugin can be activated and just flush my rules so I&#8217;m not sure that everything so clear there.</p>
<p>I&#8217;ve rewritten wp_trim_excerpt function and future posts filter that you gave me, it&#8217;s already committed to <a href="http://plugins.trac.wordpress.org/browser/wp-cat2calendar/" target="_blank" rel="nofollow">plugin&#8217;s SVN</a>. In addition, it won&#8217;t generate an excerpt for a password protected posts anymore.</p>
<p>I think this plugin will be better in the future. That&#8217;s great that you writing a responses, it&#8217;s very important for me. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-540</link>
		<dc:creator>Camilo</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-540</guid>
		<description>Hey, turns out I could work around “wp_cat2calendar_future_posts”. Just remove your filter and add another one with the hack (basic WP!). Anyway, here is a fix:
&lt;code&gt;
function wp_cat2calendar_future_posts($posts)
{
   global $wp_query, $wpdb;
   
   if(is_single() &amp;&amp; count($posts) == 0)
   {
      $_posts = $wpdb-&gt;get_results($wp_query-&gt;request);
      foreach ($_posts as $_p) {
      	  if ($_p-&gt;post_status == &#039;future&#039;) {
      	  	  $posts[] = $_p;
      	  }
      }
   }

   return $posts;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hey, turns out I could work around “wp_cat2calendar_future_posts”. Just remove your filter and add another one with the hack (basic WP!). Anyway, here is a fix:<br />
<code><br />
function wp_cat2calendar_future_posts($posts)<br />
{<br />
   global $wp_query, $wpdb;</p>
<p>   if(is_single() &amp;&amp; count($posts) == 0)<br />
   {<br />
      $_posts = $wpdb-&gt;get_results($wp_query-&gt;request);<br />
      foreach ($_posts as $_p) {<br />
      	  if ($_p-&gt;post_status == 'future') {<br />
      	  	  $posts[] = $_p;<br />
      	  }<br />
      }<br />
   }</p>
<p>   return $posts;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-539</link>
		<dc:creator>Camilo</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-539</guid>
		<description>OK, thanks for everything!
It turns out my client preferred when titles were being shown, so I just worked the code to get it back the way it was before, but now showing a tooltip for the description when hovering over the post title.
Anyway, the only issue I can&#039;t work around without changing your code is in &quot;wp_cat2calendar_future_posts&quot;, which (like I said earlier) exposes my drafts and pending review posts, so anyone who tries a bit of guessing (and is not logged in) can access them. I actually discovered this when a spam bot left a comment in one of those!
Thanks for the patience!</description>
		<content:encoded><![CDATA[<p>OK, thanks for everything!<br />
It turns out my client preferred when titles were being shown, so I just worked the code to get it back the way it was before, but now showing a tooltip for the description when hovering over the post title.<br />
Anyway, the only issue I can&#8217;t work around without changing your code is in &#8220;wp_cat2calendar_future_posts&#8221;, which (like I said earlier) exposes my drafts and pending review posts, so anyone who tries a bit of guessing (and is not logged in) can access them. I actually discovered this when a spam bot left a comment in one of those!<br />
Thanks for the patience!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-538</link>
		<dc:creator>and</dc:creator>
		<pubDate>Fri, 05 Feb 2010 16:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-538</guid>
		<description>Thanks for explanation, it was obvious about wp_trim_excerpt, but anyway thank you. I just have not so much free time lately so when I&#039;ll find a minute I fix this stuff. Actually I still can use wp_trim_excerpt because my plugin temporary overrides global variable $post when displaying posts, so I just should rewrite condition in my plugin to make it works like it should be.</description>
		<content:encoded><![CDATA[<p>Thanks for explanation, it was obvious about wp_trim_excerpt, but anyway thank you. I just have not so much free time lately so when I&#8217;ll find a minute I fix this stuff. Actually I still can use wp_trim_excerpt because my plugin temporary overrides global variable $post when displaying posts, so I just should rewrite condition in my plugin to make it works like it should be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-526</link>
		<dc:creator>Camilo</dc:creator>
		<pubDate>Thu, 04 Feb 2010 14:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-526</guid>
		<description>Hello!
Actually, the images are displayed inside the calendar because these posts don&#039;t have an explicit excerpt, so wp_trim_excerpt is called with the post content as a parameter. But wp_trim_excerpt doesn&#039;t create a decent excerpt unless you pass an empty string to it and simulate being in the loop - it just applies a filter that nothing&#039;s hooked to. That&#039;s why I had to create a similar function without the &quot;if ( &#039;&#039; == $text )&quot; statement!
If you go to that website&#039;s front page, you can see that everything in the &quot;highlights&quot; area has a &quot;...&quot; (post titles and their excerpts). I&#039;ve used that modified wp_trim_excerpt to achieve this, works great!
I&#039;m also not very fond of posts inside the table cells, I&#039;m looking for a good tooltip jQuery plugin, but I still haven&#039;t found a decent one! I&#039;ll try to avoid making my own so I don&#039;t have to mantain it just for this project (it&#039;s not something I use a lot).</description>
		<content:encoded><![CDATA[<p>Hello!<br />
Actually, the images are displayed inside the calendar because these posts don&#8217;t have an explicit excerpt, so wp_trim_excerpt is called with the post content as a parameter. But wp_trim_excerpt doesn&#8217;t create a decent excerpt unless you pass an empty string to it and simulate being in the loop &#8211; it just applies a filter that nothing&#8217;s hooked to. That&#8217;s why I had to create a similar function without the &#8220;if ( &#8221; == $text )&#8221; statement!<br />
If you go to that website&#8217;s front page, you can see that everything in the &#8220;highlights&#8221; area has a &#8220;&#8230;&#8221; (post titles and their excerpts). I&#8217;ve used that modified wp_trim_excerpt to achieve this, works great!<br />
I&#8217;m also not very fond of posts inside the table cells, I&#8217;m looking for a good tooltip jQuery plugin, but I still haven&#8217;t found a decent one! I&#8217;ll try to avoid making my own so I don&#8217;t have to mantain it just for this project (it&#8217;s not something I use a lot).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-522</link>
		<dc:creator>and</dc:creator>
		<pubDate>Thu, 04 Feb 2010 05:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-522</guid>
		<description>Hey Camilo! Yeah, I&#039;ve seen that popup is cutted off when it&#039;s too close to the sidebar on your website. (I just linked default.css to your page using firebug ;)) 

Also I&#039;ve noticed that you&#039;ve got an images in your calendar, looks like you&#039;ve rewritten something because trim_excerpt should strip tags.

Well, I think so I can make a two options: 

1. output only post titles like it was before.
2. output titles + post excerpts in popup. (I think I should also rework javascript)
3. &lt;strong&gt;any idea how to display it better?&lt;/strong&gt;

But I really don&#039;t like the old output method when the list of posts was inside a table cell, it looks ugly if u have a long titles or too much posts in a one day.</description>
		<content:encoded><![CDATA[<p>Hey Camilo! Yeah, I&#8217;ve seen that popup is cutted off when it&#8217;s too close to the sidebar on your website. (I just linked default.css to your page using firebug <img src='http://www.codeispoetry.ru/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) </p>
<p>Also I&#8217;ve noticed that you&#8217;ve got an images in your calendar, looks like you&#8217;ve rewritten something because trim_excerpt should strip tags.</p>
<p>Well, I think so I can make a two options: </p>
<p>1. output only post titles like it was before.<br />
2. output titles + post excerpts in popup. (I think I should also rework javascript)<br />
3. <strong>any idea how to display it better?</strong></p>
<p>But I really don&#8217;t like the old output method when the list of posts was inside a table cell, it looks ugly if u have a long titles or too much posts in a one day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camilo</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-520</link>
		<dc:creator>Camilo</dc:creator>
		<pubDate>Thu, 04 Feb 2010 00:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-520</guid>
		<description>Hey Andrew! Glad to help, your plugin helps me!
Just to explain another thing about that modified function in my earlier comment: it&#039;s the same function as wp_trim_excerpt, without the &#039;if&#039; statement. If you pass a length of 20 to it, instead of making the 21st word be a &#039;...&#039;, it checks if the 21st is the last word and if it is, just use it instead of cutting it off (in case you were wandering).
Anyway, I removed my css to use the default bundled one and it was almost right, except that the &quot;tooltip&quot; was getting cut off (z-index wise) when too close to some elements with relative position (if I hover a day close to the top of the table, the top of the tooltip gets cut off; if I hover a day on the left, the left of the tooltip gets cut off). The website I implemented cat2cal is full of CSS positioning.
So I decided to re-adapt my old code instead, but the javascript implemented gets in my way, I can achieve something similar using CSS or implement my own javascript. Can you make it optional? I worked around it by using wp_deregister_script.</description>
		<content:encoded><![CDATA[<p>Hey Andrew! Glad to help, your plugin helps me!<br />
Just to explain another thing about that modified function in my earlier comment: it&#8217;s the same function as wp_trim_excerpt, without the &#8216;if&#8217; statement. If you pass a length of 20 to it, instead of making the 21st word be a &#8216;&#8230;&#8217;, it checks if the 21st is the last word and if it is, just use it instead of cutting it off (in case you were wandering).<br />
Anyway, I removed my css to use the default bundled one and it was almost right, except that the &#8220;tooltip&#8221; was getting cut off (z-index wise) when too close to some elements with relative position (if I hover a day close to the top of the table, the top of the tooltip gets cut off; if I hover a day on the left, the left of the tooltip gets cut off). The website I implemented cat2cal is full of CSS positioning.<br />
So I decided to re-adapt my old code instead, but the javascript implemented gets in my way, I can achieve something similar using CSS or implement my own javascript. Can you make it optional? I worked around it by using wp_deregister_script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and</title>
		<link>http://www.codeispoetry.ru/wp-cat2calendar/comment-page-2#comment-515</link>
		<dc:creator>and</dc:creator>
		<pubDate>Wed, 03 Feb 2010 12:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://codeispoetry.ru/?page_id=52#comment-515</guid>
		<description>Camilo, thanks for your feedback!

I&#039;ll check wp_trim_excerpt, I thought it&#039;s old and stable function, shit happens :)
Looks like permalinks of future posts working only for admins or for post owner, I&#039;m checking it now.

You should look to default.css to solve a problem of huge cells on your website because there should be a popups with events &lt;strong&gt;over&lt;/strong&gt; the calendar, not a resizing cells. (see screenshot #1 on this page).</description>
		<content:encoded><![CDATA[<p>Camilo, thanks for your feedback!</p>
<p>I&#8217;ll check wp_trim_excerpt, I thought it&#8217;s old and stable function, shit happens <img src='http://www.codeispoetry.ru/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Looks like permalinks of future posts working only for admins or for post owner, I&#8217;m checking it now.</p>
<p>You should look to default.css to solve a problem of huge cells on your website because there should be a popups with events <strong>over</strong> the calendar, not a resizing cells. (see screenshot #1 on this page).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
