<?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>cedmax.net &#187; development</title>
	<atom:link href="http://cedmax.net/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://cedmax.net</link>
	<description>my little journey through Html &#38; User Interface</description>
	<lastBuildDate>Mon, 02 Aug 2010 08:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<div id='fb-root'></div>
				<script>
					window.fbAsyncInit = function()
					{
						FB.init({appId: null, status: true, cookie: true, xfbml: true});
					};
					(function()
					{
						var e = document.createElement('script'); e.async = true;
						e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
						document.getElementById('fb-root').appendChild(e);
					}());
				</script>	
					<item>
		<title>Speed Up Your JavaScript</title>
		<link>http://cedmax.net/development/coding/speed-up-your-javascript.html</link>
		<comments>http://cedmax.net/development/coding/speed-up-your-javascript.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 09:45:36 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[coding]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=278</guid>
		<description><![CDATA[<p></p>
<div class='wpfblike'></div>]]></description>
			<content:encoded><![CDATA[<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/mHtdZgou0qU&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mHtdZgou0qU&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/coding/speed-up-your-javascript.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/coding/speed-up-your-javascript.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add author nicename to post_class()</title>
		<link>http://cedmax.net/development/coding/add-author-nicename-to-post_class.html</link>
		<comments>http://cedmax.net/development/coding/add-author-nicename-to-post_class.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 17:18:22 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=159</guid>
		<description><![CDATA[<p>So you want to style a post depending on its author?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p159code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1591"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p159code1"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&#60;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Add Author</span></pre></td></tr></table></div><p>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>So you want to style a post depending on its author?</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p159code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1592"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p159code2"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Add Author Class
Plugin URI: http://cedmax.net
Description: extends post_class() to add author class
Version: 1
Author: cedmax
Author URI: http://cedmax.net
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> add_author_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$class</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$class</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'author-'</span><span style="color: #339933;">.</span>get_the_author_meta<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_nicename'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$class</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;post_class&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;add_author_class&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>you&#8217;re welcome</p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/coding/add-author-nicename-to-post_class.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/coding/add-author-nicename-to-post_class.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links Roundup: a better Windows experience</title>
		<link>http://cedmax.net/development/resources/links-roundup-a-better-windows-experience.html</link>
		<comments>http://cedmax.net/development/resources/links-roundup-a-better-windows-experience.html#comments</comments>
		<pubDate>Fri, 12 Jun 2009 18:54:40 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[circle dock]]></category>
		<category><![CDATA[fences]]></category>
		<category><![CDATA[polar clock]]></category>
		<category><![CDATA[screen saver]]></category>
		<category><![CDATA[volumouse]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=89</guid>
		<description><![CDATA[Three utilities and a screensaver you are missing (even if you don't know they exist)]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.stardock.com/Fences/">Fences</a><br />
<a href="http://blog.pixelbreaker.com/polarclock/">Polarclock</a><br />
<a href="http://circledock.wikidot.com/">Circle dock</a><br />
<a href="http://www.nirsoft.net/utils/volumouse.html">Volumouse</a></p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/resources/links-roundup-a-better-windows-experience.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/resources/links-roundup-a-better-windows-experience.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove hardcoded text from wordpress themes</title>
		<link>http://cedmax.net/development/coding/how-to-remove-hardcoded-text-from-wordpress-themes.html</link>
		<comments>http://cedmax.net/development/coding/how-to-remove-hardcoded-text-from-wordpress-themes.html#comments</comments>
		<pubDate>Fri, 13 Mar 2009 15:04:45 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=98</guid>
		<description><![CDATA[<p>One of the most awful things I found out in a lot of wordpress themes is the hardcoded text.</p>
<p>I found out that with <a href="http://wordpress.org/extend/plugins/simple-shortcodes/">Simple Shortcodes</a> it is possible to centralize in the admin part text content without editing&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>One of the most awful things I found out in a lot of wordpress themes is the hardcoded text.</p>
<p>I found out that with <a href="http://wordpress.org/extend/plugins/simple-shortcodes/">Simple Shortcodes</a> it is possible to centralize in the admin part text content without editing themes.<br />
download, install and activate it. </p>
<p>Go to the plugin admin page and you can add the content you need to use in your theme <small>(in this case I&#8217;m also using qTranslate, that&#8217;s why I use &lt;!&#8211;:it&#8211;&gt; and &lt;!&#8211;:en&#8211;&gt;)</small></p>
<div class="center"><a href="http://cedmax.net/wp-content/uploads/2009/03/simpleshortcode.jpg"><img src="http://cedmax.net/wp-content/uploads/2009/03/simpleshortcode-300x120.jpg" alt="simpleshortcode" title="simpleshortcode" width="300" height="120" class="alignnone size-medium wp-image-99" /></a></div>
<p>Then in your theme you can write the content of your shortcode simply calling a function named like the shortcode + &#8216;_shortcode&#8217; for example</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p98code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p986"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p98code6"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collaboration_title_shorcode'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	_e<span style="color: #009900;">&#40;</span>collaboration_title_shorcode<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This could be surely useful in order to let someone manage site content without giving him permission on theme editor.</p>
<p><strong>EDIT</strong><br />
a step forward:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p98code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p987"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code" id="p98code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Labelize Simple Shortcodes
Plugin URI: http://cedmax.net
Description: use simple shortcodes plugin to delete hardcoded text in themes
Version: 1
Author: cedmax
Author URI: http://cedmax.net
*/</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> get_label<span style="color: #009900;">&#40;</span><span style="color: #000088;">$shorcode</span><span style="color: #339933;">,</span> <span style="color: #000088;">$echo</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #000088;">$before</span><span style="color: #339933;">,</span> <span style="color: #000088;">$after</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$myfunc</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$shorcode</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'_shortcode'</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$myfunc</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$myfunc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$before</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$before</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$after</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$output</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$after</span><span style="color: #339933;">;</span>		
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$echo</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			_e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> __<span style="color: #009900;">&#40;</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span> 
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>a simple plugin, quick and dirty, to be used like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p98code8'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p988"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p98code8"><pre class="php" style="font-family:monospace;">get_label<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'collaboration_title'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><em>optional parameters</em>:<br />
<strong>$echo</strong>: use it as boolean (true or false) to have the label printed or returned as php string (default = true)<br />
<strong>$before</strong>: if you want something before your label (markup for example)<br />
<strong>$after</strong>: as before, but after the label</p>
<p>hope it could be useful</p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/coding/how-to-remove-hardcoded-text-from-wordpress-themes.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/coding/how-to-remove-hardcoded-text-from-wordpress-themes.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript: The Good Parts</title>
		<link>http://cedmax.net/development/coding/javascript-the-good-parts.html</link>
		<comments>http://cedmax.net/development/coding/javascript-the-good-parts.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 12:19:32 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=96</guid>
		<description><![CDATA[<p></p>
<div class='wpfblike'></div>]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/hQVTIJBZook&#038;hl=it&#038;fs=1&#038;showinfo=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hQVTIJBZook&#038;hl=it&#038;fs=1&#038;showinfo=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/coding/javascript-the-good-parts.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/coding/javascript-the-good-parts.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links Roundup: CSS</title>
		<link>http://cedmax.net/development/resources/links-roundup-css.html</link>
		<comments>http://cedmax.net/development/resources/links-roundup-css.html#comments</comments>
		<pubDate>Mon, 02 Feb 2009 08:23:43 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=77</guid>
		<description><![CDATA[css frameworks &#038; web development tips]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.noupe.com/css/5-popular-css-frameworks-tutorials-tools-for-getting-started.html">5 popular CSS Frameworks</a><br />
<a href="http://csswizardry.com/web-design+/">tips and advice on web standards development</a><br />
<a href="http://www.smashingmagazine.com/2008/11/12/12-principles-for-keeping-your-code-clean/">12 Principles For Keeping Your Code Clean</a><br />
<a href="http://www.cssstickyfooter.com/">Css Sticky Footer</a></p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/resources/links-roundup-css.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/resources/links-roundup-css.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links Roundup: WordPress, IE8 and jQuery</title>
		<link>http://cedmax.net/development/resources/links-roundup-wordpress-ie8-and-jquery.html</link>
		<comments>http://cedmax.net/development/resources/links-roundup-wordpress-ie8-and-jquery.html#comments</comments>
		<pubDate>Thu, 22 Jan 2009 12:35:04 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cedmax.net/?p=67</guid>
		<description><![CDATA[<em>wordpress</em> cheat sheet and sample content, tips for <em>jQuery</em>, <em>ie8</em> filters]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.graphicrating.com/2009/01/18/my-wordpress-cheat-sheet/">wordpress cheat sheet</a><br />
<a href="http://wpcandy.com/articles/easier-theme-development-with-the-sample-post-collection.html">wordpress sample content for theme development</a><br />
<a href="http://acidmartin.wordpress.com/2008/11/28/setting-opacity-and-other-filters-in-internet-explorer-8/">setting opacity to ie8 (and other filters as well)</a><br />
<a href="http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx">25 tips to improve your jQuery</a></p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/resources/links-roundup-wordpress-ie8-and-jquery.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/resources/links-roundup-wordpress-ie8-and-jquery.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress and Sweetcron integration</title>
		<link>http://cedmax.net/development/coding/wordpress-and-sweetcron-integration.html</link>
		<comments>http://cedmax.net/development/coding/wordpress-and-sweetcron-integration.html#comments</comments>
		<pubDate>Mon, 12 Jan 2009 19:31:22 +0000</pubDate>
		<dc:creator>cedmax</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sweetcron]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cedmax.net/blog/?p=10</guid>
		<description><![CDATA[How to successfully <em>integrate sweetcron in wordpress</em> based websites using wp theme and dynamic data]]></description>
			<content:encoded><![CDATA[<p>I was trying to integrate <strong><a href="http://wordpress.org/">wordpress</a></strong> and <strong><a href="http://www.sweetcron.com/">sweetcron</a></strong> to have a &#8220;lifestream&#8221; section on my wordpress based website.</p>
<p>First of all I created a folder named <em>sweet</em> (you can use everything you like)<br />
then I tryed to integrate wordpress dynamic data (header, footer, sidebar and style) in sweetcron template.</p>
<p>that was pretty easy: I added this line of code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code9'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p109"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p10code9"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;../wp-blog-header.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>on the top of index.php in sweetcron root</p>
<p>Now I was able to use every <a href="http://codex.wordpress.org/Template_Tags">template tag</a> I needed (as well as widgets and everything else in use in wordpress) in sweetcron theme pages.. </p>
<p>The problem was that wordpress was returning a 404 error in http headers and page title was &quot;Page not Found&quot;</p>
<p>So i created a wordpress page named <em>Life Stream</em> with <em>sweet</em> as slug.</p>
<p>Sweetcron homepage was safe but every internal sweetcron link (for example <a href="/sweet/items/site/karma.cedmax.net">this</a>) had the same 404 problem.</p>
<p>so I wrote this really tiny plugin</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p10code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1010"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code" id="p10code10"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Plugin Name: Sweetcron integration
Plugin URI: http://cedmax.net
Version: 0.1
Description: Manage Sweetcron wordpress integration 
Author: cedmax
*/</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> sweetcheck<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pagename</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'sweet'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$isStream</span> <span style="color: #339933;">=</span>  <a href="http://www.php.net/substr_count"><span style="color: #990000;">substr_count</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'QUERY_STRING'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$pagename</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$isStream</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pagename='</span><span style="color: #339933;">.</span><span style="color: #000088;">$pagename</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'sweetcheck'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>change <em>sweet</em> with <em>yoursweetcroninstallationfolder</em> and everything should be fine.</p>
<p><strong>edit</strong> I had to remove my sweetcron installation: some problems with some of the feeds I was importing and no time to fix it, but the integration is still working</p>
<div class='wpfblike'><fb:like href='http://cedmax.net/development/coding/wordpress-and-sweetcron-integration.html' layout='default' show_faces='false' width='400' action='like' colorscheme='light' /></div>]]></content:encoded>
			<wfw:commentRss>http://cedmax.net/development/coding/wordpress-and-sweetcron-integration.html/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
