<?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>Frank Verhoeven &#187; WordPress</title>
	<atom:link href="http://www.frank-verhoeven.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frank-verhoeven.com</link>
	<description>Webdevelopment Blog</description>
	<lastBuildDate>Wed, 21 Jul 2010 00:37:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>New JavaScript Used</title>
		<link>http://www.frank-verhoeven.com/new-javascript-used/</link>
		<comments>http://www.frank-verhoeven.com/new-javascript-used/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 15:40:07 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Community News]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=339</guid>
		<description><![CDATA[Hey everyone. After adding version 1.3, I received a few notifications about the javascript. It gave errors, wasn&#8217;t compatible with most plugins and/or themes and just sucked My decision was to update the complete javascript used with version 2.0, since that one is going to have a complete makeover. However, more and more emails came, [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone.</p>
<p>After adding version 1.3, I received a few notifications about the javascript. It gave errors, wasn&#8217;t compatible with most plugins and/or themes and just sucked <img src='http://www.frank-verhoeven.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>My decision was to update the complete javascript used with version 2.0, since that one is going to have a complete makeover. However, more and more emails came, telling about the JavaScript. The problem seems to be worse then I was thinking, so an early patch for the javascript is already available.<br />
<span id="more-339"></span><br />
I removed the Prototype framework for compatibility, since most themes and plugins are using jQuery. Now the Community News plugin does too. It uses the jQuery lib that comes with WordPress itself. I hope this will improve the compatibility. Also errors which occurred in the old javascript are fixed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-verhoeven.com/new-javascript-used/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fv Community News Version 1.3</title>
		<link>http://www.frank-verhoeven.com/fv-community-news-version-13/</link>
		<comments>http://www.frank-verhoeven.com/fv-community-news-version-13/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 13:54:56 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Community News]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=330</guid>
		<description><![CDATA[After more then 1000 downloads, and a few weeks since the last update, it is time for the next level of this plugin. Improved Akismet, Translatable, and more. Template Tags A lot of people were asking for it, template tags for use in posts/pages. Well, here they are: &#60;!--fvCommunityNews:Form--&#62; &#60;!--fvCommunityNews:Submissions--&#62; The first one will display [...]]]></description>
			<content:encoded><![CDATA[<p>After more then 1000 downloads, and a few weeks since the last update, it is time for the next level of this plugin. Improved Akismet, Translatable, and more.</p>
<h3>Template Tags</h3>
<p>A lot of people were asking for it, template tags for use in posts/pages. Well, here they are:</p>
<pre class="html">
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--fvCommunityNews:Form--&gt;</span></span>
<span class="htmlComment"><span class="htmlOtherTag">&lt;!--fvCommunityNews:Submissions--&gt;</span></span>
</pre>
<p>The first one will display the form, just as the widget does, but then within a page or post. The next one will display a list of submissions, as defined in the admin panel (under: Settings &#8211; Template). You can simply put these tags in your post or page, and thats all.<br />
<span id="more-330"></span></p>
<h3>Uninstall Feature</h3>
<p>While I was thinking what this plugin needs, I decided that it should have an uninstall function. Before, you could only deactivate the plugin through the wp-admin panel under plugins, but when that was done, all the data/settings still remain in your database and on your server. With this new Uninstall function you can remove all settings, and/or all data before you deactivate the plugin and remove all the plugin files.</p>
<h3>Translatable</h3>
<p>Before version 1.3, all text displayed on the screen, produced by this plugin was static data, you couldn&#8217;t change it. From now on the plugin uses the WordPress functions for displaying text, wich makes it possible for you to translate it and run the plugin in your own language. There are no languages included yet, but don&#8217;t hesitate to <a href="http://www.frank-verhoeven.com/contact/">submit your own translation</a>. I will include it in the plugin and would be very thankfull.</p>
<h3>Custom Response Messages</h3>
<p>Didn&#8217;t like the standard responses? You are now able to customize them so they fit for you. Go to Settings &#8211; Appearance, and modify all possible responses. Also a simple stylesheet is included to give the form a little style.</p>
<h3>Improved Akismet</h3>
<p>As of the previous (1.2 series) version, I included an Akismet class to fight spam. Unfortunately, this class was causing some serious problems at random servers. Because of this I searched for another solution, and found the <a href="http://freshmeat.net/projects/microakismet/">MicroAkismet</a> functions. These do work on blogs where the old class failed. I want to thank my friend <a href="http://www.alltuts.com/">Ivan</a>, who made his blog availible for some tests.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-verhoeven.com/fv-community-news-version-13/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Create an RSS Feed with WordPress</title>
		<link>http://www.frank-verhoeven.com/create-an-rss-feed-with-wordpress/</link>
		<comments>http://www.frank-verhoeven.com/create-an-rss-feed-with-wordpress/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 16:41:00 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=238</guid>
		<description><![CDATA[When you are busy creating a wonderful plugin for your WordPress blog, it might be possible that you need to create a RSS feed. For example, when creating a guestbook people could ask for a RSS feed to view the recent added posts and stay updated, or take a look at my own Community News [...]]]></description>
			<content:encoded><![CDATA[<p>When you are busy creating a wonderful plugin for your WordPress blog, it might be possible that you need to create a RSS feed. For example, when creating a guestbook people could ask for a RSS feed to view the recent added posts and stay updated, or take a look at my own <a href="http://www.frank-verhoeven.com/wordpress-plugin-fv-community-news/">Community News Plugin</a>, isn&#8217;t it great if it had a build-in RSS feed as well?</p>
<p>Well don&#8217;t worry I am busy to create that and it is almost finished. In the mean while, I wanted to share some stuff I learned while creating this RSS feed.</p>
<h3>The Beginning</h3>
<p>The first thing we need is a function that actually creates the RSS feed. This function doesn&#8217;t need any parameters and it also shouldn&#8217;t return anything.<br />
<span id="more-238"></span></p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> myGreatPluginRSSFeed</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
    <span class="phpComment">// Function content goes here.
</span><span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>This function must create the whole feed form the beginning to the end. So, you also have to include the xml/rss header. I ripped something from the default WordPress feed that should work for any blog.</p>
<pre class="php">
<span class="htmlOtherTag">&lt;rss version=<span class="htmlAttributeValue">&quot;2.0&quot;</span>
	xmlns:content=<span class="htmlAttributeValue">&quot;http://purl.org/rss/1.0/modules/content/&quot;</span>
	xmlns:dc=<span class="htmlAttributeValue">&quot;http://purl.org/dc/elements/1.1/&quot;</span>
	xmlns:atom=<span class="htmlAttributeValue">&quot;http://www.w3.org/2005/Atom&quot;</span>
	xmlns:sy=<span class="htmlAttributeValue">&quot;http://purl.org/rss/1.0/modules/syndication/&quot;</span>&gt;</span>
	<span class="htmlOtherTag">&lt;channel&gt;</span>
		<span class="htmlOtherTag">&lt;title&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bloginfo_rss</span><span class="phpOperator">(</span><span class="phpString">'name'</span><span class="phpOperator">)</span><span class="phpText">;</span><span class="htmlText"> wp_title_rss</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/title&gt;</span>
		<span class="htmlOtherTag">&lt;link&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bloginfo_rss</span><span class="phpOperator">(</span><span class="phpString">'url'</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/link&gt;</span>
		<span class="htmlOtherTag">&lt;atom:link href=<span class="htmlAttributeValue">&quot;<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> self_link</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>&quot;</span> rel=<span class="htmlAttributeValue">&quot;self&quot;</span> type=<span class="htmlAttributeValue">&quot;application/rss+xml&quot;</span> /&gt;</span>
		<span class="htmlOtherTag">&lt;description&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="htmlText"> bloginfo_rss</span><span class="phpOperator">(</span><span class="phpString">"description"</span><span class="phpOperator">)</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/description&gt;</span>
		<span class="htmlOtherTag">&lt;language&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> get_option</span><span class="phpOperator">(</span><span class="phpString">'rss_language'</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/language&gt;</span>
		<span class="htmlOtherTag">&lt;sy:updatePeriod&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> apply_filters</span><span class="phpOperator">(</span> <span class="phpString">'rss_update_period'</span><span class="phpText">,</span> <span class="phpString">'hourly'</span> <span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/sy:updatePeriod&gt;</span>
		<span class="htmlOtherTag">&lt;sy:updateFrequency&gt;</span><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span> <span class="phpFunction">echo</span><span class="htmlText"> apply_filters</span><span class="phpOperator">(</span> <span class="phpString">'rss_update_frequency'</span><span class="phpText">,</span> <span class="phpString">'<span class="phpNumber">1</span>'</span> <span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span><span class="htmlOtherTag">&lt;/sy:updateFrequency&gt;</span>
		<span class="htmlOtherTag">&lt;item&gt;</span>
		<span class="htmlOtherTag">&lt;/item&gt;</span>
	<span class="htmlOtherTag">&lt;/channel&gt;</span>
<span class="htmlOtherTag">&lt;/rss&gt;</span>
</pre>
<p>Now, you could see the &lt;item&gt; and &lt;/item&gt; tags, that is where we are going to add our feed items. From this moment I assume that all our RSS data is located in an array like this one.</p>
<pre class="php">
<span class="phpIdentifier">$rssItems</span> <span class="phpOperator">=</span> <span class="phpFunction">array</span><span class="phpOperator">(</span>
	<span class="phpString">'item_1'</span><span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span><span class="phpFunction">array</span><span class="phpOperator">(</span>
		<span class="phpString">'Title'</span><span class="phpText">,</span>
		<span class="phpString">'Link'</span><span class="phpText">,</span>
		<span class="phpString">'Author'</span><span class="phpText">,</span>
		<span class="phpString">'Date'</span><span class="phpText">,</span>
		<span class="phpString">'Description'</span><span class="phpText">,</span>
		<span class="phpString">'Content'</span>
		<span class="phpOperator">)</span><span class="phpText">,</span>
	<span class="phpString">'item_2'</span><span class="phpOperator"><span class="phpOperator">=</span><span class="phpOperator">&gt;</span></span><span class="phpFunction">array</span><span class="phpOperator">(</span>
		<span class="phpString">'Title'</span><span class="phpText">,</span>
		<span class="phpString">'Link'</span><span class="phpText">,</span>
		<span class="phpString">'Author'</span><span class="phpText">,</span>
		<span class="phpString">'Date'</span><span class="phpText">,</span>
		<span class="phpString">'Description'</span><span class="phpText">,</span>
		<span class="phpString">'Content'</span>
		<span class="phpOperator">)</span>
	<span class="phpOperator">)</span><span class="phpText">;</span>
</pre>
<p>And so on. For adding the items to our feed, we simply use a foreach loop.</p>
<pre class="php">
<span class="phpKeyword">
foreach </span><span class="phpOperator">(</span><span class="phpIdentifier">$rssItems</span><span class="phpKeyword"> as </span><span class="phpIdentifier">$item</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>item<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>title<span class="phpOperator">&gt;</span>'</span> <span class="phpOperator">.</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Title'</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/title<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>link<span class="phpOperator">&gt;</span>'</span> <span class="phpOperator">.</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Link'</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/link<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>dc<span class="phpOperator">:</span>creator<span class="phpOperator">&gt;</span>'</span> <span class="phpOperator">.</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Author'</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/dc<span class="phpOperator">:</span>creator<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>pubDate<span class="phpOperator">&gt;</span>'</span> <span class="phpOperator">.</span> mysql2date<span class="phpOperator">(</span><span class="phpString">'D<span class="phpText">,</span> d M Y H<span class="phpOperator">:</span>i<span class="phpOperator">:</span>s <span class="phpOperator">+</span>0000'</span><span class="phpText">,</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Date'</span><span class="phpOperator">]</span><span class="phpOperator">)</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/pubDate<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>description<span class="phpOperator">&gt;</span>'</span> <span class="phpOperator">.</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Description'</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/description<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>content<span class="phpOperator">:</span>encoded<span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span><span class="phpOperator">!</span><span class="phpOperator">[</span>CDATA<span class="phpOperator">[</span>'</span> <span class="phpOperator">.</span> <span class="phpIdentifier">$item</span><span class="phpOperator">[</span><span class="phpString">'Content'</span><span class="phpOperator">]</span> <span class="phpOperator">.</span> <span class="phpString">'<span class="phpOperator">]</span><span class="phpOperator">]</span><span class="phpOperator">&gt;</span><span class="phpOperator">&lt;</span>/content<span class="phpOperator">:</span>encoded<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
	<span class="phpFunction">echo</span> <span class="phpString">'<span class="phpOperator">&lt;</span>/item<span class="phpOperator">&gt;</span>'</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
</pre>
<p>The mysql2date function is a WordPress function that converts our date to the format we want for our feed. The input should be the date in the following format: <code>d-m-Y H:i:s</code>. See <a href="http://php.net/date">php.net</a> for more information about the date formatting.</p>
<p>Now we have finished our function, we have only one thing to do.</p>
<h3>Adding the RSS Feed to WordPress</h3>
<p>To add the feed, we could use one simple function, build-in in WordPress since version <code>2.1.0</code>. This is the <code>add_feed</code> function. This function has two parameters.</p>
<ul>
<li>$feedname; The name of your feed.</li>
<li>$function; The function that creates the feed. (The one we created above)</li>
</ul>
<p>So lets say we name our feed: &#8216;guestbook&#8217;, then we should call the <code>add_feed</code> function this way:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">// Add our<span class="phpKeyword"> new </span><span class="htmlText">RSS feed</span><span class="phpOperator">.</span>
</span><span class="htmlText">add_feed</span><span class="phpOperator">(</span><span class="phpString">'guestbook'</span><span class="phpText">,</span> <span class="phpString">'myGreatPluginRSSFeed'</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Now our feed is added and working! One thing you might be asking yourself is: Where could I find my feed? Well, that&#8217;s simple.<br />
If you are using permalinks on your blog (could be checked this way: <code>$wp_rewrite->using_permalinks()</code>), then your feed is located at: http://your.website.com/[feedname].<br />
If you don&#8217;t use permalinks, your feed is located at: http://your.website.com/?feed=[feedname].</p>
<h3>Done!</h3>
<p>After all our hard work, we have created one beautiful RSS 2.0 feed, working with WordPress. Any questions? Please <a href="http://www.frank-verhoeven.com/create-an-rss-feed-with-wordpress/#respond">leave a comment</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-verhoeven.com/create-an-rss-feed-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin &#8211; FV Community News</title>
		<link>http://www.frank-verhoeven.com/wordpress-plugin-fv-community-news/</link>
		<comments>http://www.frank-verhoeven.com/wordpress-plugin-fv-community-news/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 16:02:23 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Community News]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=200</guid>
		<description><![CDATA[Many blogs out there can only produce a couple articles a week while their visitors ask for loads more. It&#8217;s sometimes a good idea to add related articles from other blogs to your sidebar. Adding them manually takes lots of time we don&#8217;t have. With this new Community News plugin you allow your visitors to [...]]]></description>
			<content:encoded><![CDATA[<p>Many blogs out there can only produce a couple articles a week while their visitors ask for loads more. It&#8217;s sometimes a good idea to add related articles from other blogs to your sidebar. Adding them manually takes lots of time we don&#8217;t have.  With this new <strong>Community News </strong>plugin you allow your visitors to add articles to the sidebar. Complete with moderation panel and a settings page, you can sit back while you have full control about the look and articles that being posted.<br />
<span id="more-200"></span></p>
<h3><a href="http://www.frank-verhoeven.com/beta-testers-wanted/">Join the 2.0 beta now!</a></h3>
<h3>Features</h3>
<p>Currently, the Community News plugin has the following features:</p>
<ul>
<li>Widget Ready (Different form/results widget)</li>
<li>Tags for use in posts/pages</li>
<li>AJAX Form Handling</li>
<li>Multi-Language Support</li>
<li>Moderation panel (with email option) &#8211; Make sure you approve the right articles</li>
<li>Edit Submissions</li>
<li>`My Submissions` Page</li>
<li>Customizable templates</li>
<li>Captcha Spam protection (on/off)</li>
<li>Akismet Spam protection (API key required)</li>
<li>Build-in RSS 2.0 Feed</li>
<li>Image Uploading</li>
<li>Settings</li>
<li>Uninstall Page</li>
<li>Configurable Responses</li>
</ul>
<h3>How To Install &amp; Use</h3>
<ol>
<li><a href="/wordpress-plugin-fv-community-news/#download">Download the files</a></li>
<li>Upload the files to <em>/wp-content/plugins</em></li>
<li>Activate the plugin (<em>WP-admin &gt; Plugins &gt; FV Community News</em>)</li>
<li>Browse<strong> Community News &gt; Settings</strong> to select the settings you prefer.</li>
<li>Go to <strong>Design &gt; Widgets</strong> to add the Community News widgets to your sidebar.</li>
</ol>
<p>You can also show your Community News plugin on a static page. You can do that by placing the following codes on a page that does support <em>PHP</em>:</p>
<p><strong>Add Form</strong></p>
<pre class="php"><span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="phpFunction"><span class="phpFunctionKeyword">function</span>_exists</span><span class="phpOperator">(</span><span class="phpString">'fvCommunityNewsForm'</span><span class="phpOperator">)</span><span class="phpOperator">)</span>
<span class="htmlText">
    fvCommunityNewsForm</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span></pre>
<p><strong>Latest Submissions</strong></p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span><span class="phpKeyword"> if </span><span class="phpOperator">(</span><span class="phpFunction"><span class="phpFunctionKeyword">function</span>_exists</span><span class="phpOperator">(</span><span class="phpString">'fvCommunityNewsGetSubmissions'</span><span class="phpOperator">)</span><span class="phpOperator">)</span>
    <span class="phpFunction">echo</span><span class="htmlText"> fvCommunityNewsGetSubmissions</span><span class="phpOperator">(</span><span class="htmlText">Number</span><span class="phpText">,</span><span class="htmlText"> Template</span><span class="phpOperator">)</span><span class="phpText">;</span> <span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<ul>
<li>Number &#8211; Insert number of items you would like to show here</li>
<li>Template &#8211; Structure per item. You can use these tags:<br />
<em>
<ul>
<li>%submission_author%</li>
<li>%submission_author_email%</li>
<li>%submission_title%</li>
<li>%submission_url%</li>
<li>%submission_description%</li>
<li>%submission_date%</li>
<li>%submission_image%</li>
</ul>
<p></em>
</li>
</ul>
<p>By default the Template is: &#8216;<code>&lt;li&gt;&lt;h3&gt;&lt;a href="%submission_url%" title="%submission_title%"&gt;%submission_title%&lt;/a&gt;&lt;/h3&gt;&lt;p&gt;%submission_description%&lt;/p&gt;&lt;small&gt;%submission_date%&lt;/small&gt;&lt;/li&gt;</code>&#8216;. &lt;ul&gt; &lt;/ul&gt; tags are automatically added.</p>
<h3>Example</h3>
<p>Take a look at the sidebar, you could see the plugin in action right there. Also my friend uses Community News on his blog, so you can see a working example on <a href="http://www.divitodesign.com/">DivitoDesign</a>.</p>
<p><a href="http://www.frank-verhoeven.com/wp-content/uploads/2008/09/fvcommunitynewssettings.png"><img class="size-medium wp-image-208" title="fvCommunityNewsSettings" src="http://www.frank-verhoeven.com/wp-content/uploads/2008/09/fvcommunitynewssettings-500x246.png" alt="fvCommunityNewsSettings" width="500" height="246" /></a></p>
<p><small>The FV Community News settings page.</small></p>
<h3>Bugs &amp; Questions</h3>
<p>If you find any bug in the latest version of this plugin, I hope you&#8217;d be so kind to tell me about it. This will only improve the plugin, which is better for the users!  When you have anything else to say (<em>appreciated!</em>), please <a href="/wordpress-plugin-fv-community-news#respond">comment</a>!</p>
<h3>Plugin Info</h3>
<p>AUTHOR: <strong>Frank Verhoeven</strong><br />
AUTHOR URL: <strong><a href="http://www.frank-verhoeven.com/">http://www.frank-verhoeven.com/</a></strong><br />
WORDPRESS VERSION: <strong>2.5+</strong><br />
TESTED UP TO: <strong>2.7</strong><br />
CURRENT VERSION: <strong>1.3.1</strong></p>
<h3>Change log</h3>
<p><a href="http://www.frank-verhoeven.com/fv-community-news-version-11/">Version 1.1</a><br />
<a href="http://www.frank-verhoeven.com/fv-community-news-v12/">Version 1.2</a><br />
<a href="http://www.frank-verhoeven.com/fv-community-news-version-13/">Version 1.3</a></p>
<h3 id="download">Download</h3>
<p>DOWNLOAD: <a href="http://wordpress.org/extend/plugins/fv-community-news/">FV Community News</a></p>
<h3>Donate</h3>
<p>Like this plugin? Please consider making a small donation.</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="donate-form">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="" />
</form>
<p>Or help promoting it by adding a link to this page, definitely appreciated <img src='http://www.frank-verhoeven.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-verhoeven.com/wordpress-plugin-fv-community-news/feed/</wfw:commentRss>
		<slash:comments>238</slash:comments>
		</item>
		<item>
		<title>Using Sessions in WordPress</title>
		<link>http://www.frank-verhoeven.com/using-session-in-wordpress/</link>
		<comments>http://www.frank-verhoeven.com/using-session-in-wordpress/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 13:03:54 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.frank-verhoeven.com/?p=158</guid>
		<description><![CDATA[Yesterday, when I was creating a new plugin for my friend Stefan Vervoort, I needed sessions to work. Unfortunately, WordPress doesn&#8217;t support them!?? I searched the whole source code of this great piece of blogging software, and not on one single line I found even one session. Also the session_start() function is not called, but [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, when I was creating a new plugin for my friend <a href="http://www.divitodesign.com/">Stefan Vervoort</a>, I needed sessions to work. Unfortunately, WordPress doesn&#8217;t support them!??</p>
<p>I searched the whole source code of this great piece of blogging software, and not on one single line I found even one session. Also the <a href="http://www.php.net/session_start">session_start()</a> function is not called, but I still needed my sessions to work <img src='http://www.frank-verhoeven.com/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' />  .</p>
<p>So I started searching Google for a fix of my problem. I found a lot of people asking the same question: &#8220;Why don&#8217;t sessions work in WordPress?&#8221; Finally I found a solution to fix this little issue and guess what, it is a simple one.<br />
<span id="more-158"></span></p>
<h3>The Solution</h3>
<p>The only thing you have to do is call session_start(); before any output is send to the client. Now you might think: Nice, but what happens when I upgrade my WordPress installation to the latest version? Well, yes, your changes will be lost. That is the reason why we first should think of where to add these changes..</p>
<p>Normally upgrading your installation will replace all files, except one. Yes, it is the wp-config.php file. And even better, there isn&#8217;t send any output to a client yet, when this file is loaded.</p>
<p>So, we add the next lines of code to our wp-config.php file:</p>
<pre class="php">
<span class="phpComment">// Make the<span class="phpKeyword"> use </span>of sessions possible.
</span>>if <span class="phpOperator">(</span><span class="phpOperator">!</span><span class="phpFunction">session_id</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpOperator">)</span>
<span class="phpFunction">session_start</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
</pre>
<p>And sessions are enabled on your blog!<br />
I think the best place to add these lines is at the top of the config file, so immediately after the php starting tag (&lt;?php).</p>
<p>I hope this will help you out when facing the same problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.frank-verhoeven.com/using-session-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
	</channel>
</rss>
