<?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>Saheltech Blog &#187; Wordpress plugins</title>
	<atom:link href="http://www.saheltech.com/blog/category/wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.saheltech.com/blog</link>
	<description>Web Programming - Online Marketing - Multimedia Training</description>
	<lastBuildDate>Fri, 29 Jan 2010 03:15:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Popularity Contest Plugin Fatal Error in WordPress 2.5, 2.6+</title>
		<link>http://www.saheltech.com/blog/20080829/popularity-contest-plugin-fatal-error-in-wordpress-25-26/</link>
		<comments>http://www.saheltech.com/blog/20080829/popularity-contest-plugin-fatal-error-in-wordpress-25-26/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 18:12:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress Blog]]></category>
		<category><![CDATA[Wordpress plugins]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[popularity]]></category>
		<category><![CDATA[require_once]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.saheltech.com/blog/?p=24</guid>
		<description><![CDATA[The Popularity Constest Plugin written by Alex King adds functionality to your Wordpress blog: it displays a list the most popular posts in your blog&#8217; sidebar based on the post / category / archive views, comments made by visitors, trackbacks,&#8230;

At the time of the writting of this blog, the Popularity Contest Plugin in only compatible with [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>The <a rel="nofollow" href="http://wordpress.org/extend/plugins/popularity-contest/">Popularity Constest Plugin</a> written by Alex King adds functionality to your Wordpress blog: it displays a list the most popular posts in your blog&#8217; sidebar based on the post / category / archive views, comments made by visitors, trackbacks,&#8230;</p>
<p><span id="more-24"></span></p>
<p>At the time of the writting of this blog, the <strong>Popularity Contest Plugin</strong> in only compatible with Wordpress releases up to up to wordpress 2.3.1. That means, if you are using the newer versions of wordpress say 2.5 or or the latest release wordpress 2.6 for that matter, you should brace yourself for one or a few surprises when trying to use that plugin in your blog.</p>
<p>That is exactly what happened last night when I tried to activate in the admin panel of my client&#8217;s blog. I have been slapped with a PHP error message:</p>
<pre><strong><em>Plugin could not be activated because it triggered a fatal error.</em></strong></pre>
<p>That should not deter you from using this wonderful plugin. Here are the steps I took to solve the issue at hands:</p>
<p><strong>Step 1</strong><br />
The first thing I did was to check on my local server for parsing error since my client&#8217;s web server does not display those errors for security reasons. The only error revealed to me was the include path of the wp-blog-header.php which should be</p>
<pre>../../../wp-blog-header.php</pre>
<p>instead of</p>
<pre>../../wp-blog-header.php</pre>
<p>because  the calling file pouplarity-contest.php is 3 folder levels down from the blog root folder where the wp-blog-header.php is.</p>
<p><strong>Step 2</strong><br />
I made that correction then run the file (pouplarity-contest.php) again in my localhost server.<br />
This time I only receive a database connection error. Good! No PHP parsing error.<br />
I then uploaded the &#8220;pouplarity-contest.php&#8221; file to the remote server, went to the plugins section of the blog admin panel and tried once more to activate that plugin.</p>
<p>Not a chance, same fatal error message on my face. Grrrrr!!!.</p>
<p>Mind you, I have the utmost respect for the PHP developers (I am a member of that tribe) devoting their time to develop various applications and widgets they freely give to the online community.</p>
<p><strong>Step 3</strong><br />
I commented out any <em><strong>add_action call</strong></em> and tried again to activate that <strong>Popularity Contest Plugin</strong>. No luck again, same fatal error message.</p>
<p><strong>Step 4</strong><br />
I stopped for a few seconds, looked again then told myself: &#8220;the wp-blog-header.php file is already called somewhere by the admin header section with the require_once() PHP function!&#8221;</p>
<p><strong>Solution:</strong><br />
* Remove or comment out (// or /* &#8230;..  */) the line 59 or whatever line contains the code:</p>
<pre>require('../../wp-blog-header.php');</pre>
<p>Tried again to activate the <strong>Popularity Contest Plugin</strong>.<br />
This time it works!!</p>
<p>I can now use the akpc_most_popular() function in my blog sidebar to display the most popular posts.</p>
<p>I just save you  time and frustration.<br />
Now go ahead and<br />
- make that change in the PHP code<br />
- upload the file<br />
- activate the plugin</p>
<p>.. and happy blogging!</p>
<!-- sphereit end -->]]></content:encoded>
			<wfw:commentRss>http://www.saheltech.com/blog/20080829/popularity-contest-plugin-fatal-error-in-wordpress-25-26/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Featured Video Plugin For WordPress</title>
		<link>http://www.saheltech.com/blog/20080726/featured-video-plugin-for-wordpress/</link>
		<comments>http://www.saheltech.com/blog/20080726/featured-video-plugin-for-wordpress/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 19:33:39 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS Tips & Tricks]]></category>
		<category><![CDATA[WordPress Blog]]></category>
		<category><![CDATA[Wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.saheltech.com/blog/?p=22</guid>
		<description><![CDATA[The WordPress Featured Video Plugin is a very useful and powerful feature to add in your wordpress blog.
* It  reads and displays a video in your wordpress blog post.
* All you need is tag the video HTML code as follows:
[youtube:url to your video] (e.g. [youtube:http://www.youtube.com/watch?v=7o84PE871BE]) or taggged [googlevideo:url] (e.g. [googlevideo:http://video.google.com/googleplayer.swf?docid=8577255250907450469])

* It would display a video in a [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>The WordPress <a rel="nofollow" href="http://pressography.com/plugins/featured-video/"><strong>Featured Video Plugin</strong></a> is a very useful and powerful feature to add in your wordpress blog.<br />
* It  reads and displays a video in your wordpress blog post.<br />
* All you need is tag the video HTML code as follows:<br />
[youtube:url to your video] (e.g. [youtube:http://www.youtube.com/watch?v=7o84PE871BE]) or taggged [googlevideo:url] (e.g. [googlevideo:http://video.google.com/googleplayer.swf?docid=8577255250907450469])</p>
<p><span id="more-22"></span></p>
<p>* It would display a video in a &#8220;Featured Video&#8221; section or the sidebar of your blog.<br />
I have used it quite a few times during the cutsomization process of some of my clients&#8217; blog using themes from Revolution News/Magazine<br />
However when using it in the &#8220;Revolution News&#8221; theme, the Featued Video seems to be displaying the same video on the featured video section despite the fact that my customer has</p>
<p>Solution:<br />
* open the &#8220;featuredvideo.php&#8221; file in your wordpress plugins folder /wp-content/plugins/FeaturedVideo<br />
* add <strong>ORDER BY post_date DESC</strong> to the $sql varible which becomes:</p>
<pre> $sql = "SELECT distinct ID, post_title, post_date, post_content                         
            FROM {$prefix}posts, {$prefix}term_relationships, {$prefix}term_taxonomy
            WHERE {$prefix}posts.ID = {$prefix}term_relationships.object_id
            AND {$prefix}term_relationships.term_taxonomy_id = {$prefix}term_taxonomy.term_taxonomy_id
            AND {$prefix}term_taxonomy.taxonomy = 'category'
            {$catsql}
            AND post_status = 'publish'
            AND post_type != 'page'
   ORDER BY post_date DESC";</pre>
<p> * save and upload that file to your blog at the same location (/wp-content/plugins/FeaturedVideo/featuredvideo.php)</p>
<p>Just as with any other plugin, you need to activate it in your blog admin panel and set the options offered.<br />
Then &#8220;Featured Video Plugin&#8221; will now located the latest youtube or googlevideo file used in your posts and display it in the Featured Video section of your choice. Just be sure to have to call <strong>vsf_show_video()</strong> in order to get the job done</p>
<!-- sphereit end -->]]></content:encoded>
			<wfw:commentRss>http://www.saheltech.com/blog/20080726/featured-video-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
