<?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>The Tutorial Blog &#187; Wordpress</title>
	<atom:link href="http://www.thetutorialblog.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thetutorialblog.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Jul 2010 23:30:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.thetutorialblog.com</link>
<url>http://www.thetutorialblog.com/wp-content/plugins/maxblogpress-favicon/icons/favicon-28.ico</url>
<title>The Tutorial Blog</title>
</image>
		<item>
		<title>10 Excellent Free WordPress Themes</title>
		<link>http://www.thetutorialblog.com/wordpress/10-excellent-free-wordpress-themes/</link>
		<comments>http://www.thetutorialblog.com/wordpress/10-excellent-free-wordpress-themes/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 18:13:48 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[lists]]></category>
		<category><![CDATA[free wordpress themes]]></category>
		<category><![CDATA[wordpress layouts]]></category>
		<category><![CDATA[wordpress templates]]></category>
		<category><![CDATA[wordpress theme]]></category>
		<category><![CDATA[wordpress themes]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=297</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	WordPress is one of the most used blogging software on the web. Because of the popularity that is has there are also a lot of themes; some good, some bad. In this short list you will find 10 free attractive WordPress themes. Notepad Chaos The Web News Trifecta FreeStyle One Fine Day SuperMag Irresistible Imprezz [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fwordpress%2F10-excellent-free-wordpress-themes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fwordpress%2F10-excellent-free-wordpress-themes%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="10 Excellent Free WordPress Themes" alt=" 10 Excellent Free WordPress Themes" /><br />
			</a>
		</div>
<p><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/71.jpg" alt="Irresistible" title="Irresistible" width="650" height="365" class="alignleft size-full wp-image-306" /><br />
WordPress is one of the most used blogging software on the web. Because of the popularity that is has there are also a lot of themes; some good, some bad. In this short list you will find 10 free attractive WordPress themes.</p>
<h2><a href="http://wordpressthemesforfree.com/detail/484.html">Notepad Chaos</a></h2>
<p><a href="http://wordpressthemesforfree.com/detail/484.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/110.jpg" alt="110 10 Excellent Free WordPress Themes" title="Notepad Chaos" width="650" height="341" class="alignleft size-full wp-image-298" /></a></p>
<h2><a href="http://wordpressthemesforfree.com/view/664.html">The Web News</a></h2>
<p><a href="http://wordpressthemesforfree.com/view/664.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/21.jpg" alt="The Web News" title="The Web News" width="650" height="352" class="alignleft size-full wp-image-299" /></a></p>
<h2><a href="http://wordpressthemesforfree.com/view/172.html">Trifecta</a></h2>
<p><a href="http://wordpressthemesforfree.com/view/172.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/31.jpg" alt="Trifecta" title="Trifecta" width="650" height="388" class="alignleft size-full wp-image-300" /></a><br />
<span id="more-297"></span></p>
<h2><a href="http://wordpressthemesforfree.com/view/635.html">FreeStyle</a></h2>
<p><a href="http://wordpressthemesforfree.com/view/635.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/41.jpg" alt="FreeStyle" title="FreeStyle" width="650" height="352" class="alignleft size-full wp-image-302" /></a></p>
<h2><a href="http://wordpressthemesforfree.com/view/262.html">One Fine Day</a></h2>
<p><a href="http://wordpressthemesforfree.com/view/262.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/51.jpg" alt="One Fine Day" title="One Fine Day" width="650" height="352" class="alignleft size-full wp-image-303" /></a></p>
<h2><a href="http://wordpressthemesforfree.com/view/262.html">SuperMag</a></h2>
<p><a href="http://wordpressthemesforfree.com/view/262.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/61.jpg" alt="SuperMag" title="SuperMag" width="650" height="352" class="alignleft size-full wp-image-304" /></a></p>
<h2><a href="http://www.woothemes.com/2009/02/irresistible/">Irresistible</a></h2>
<p><a href="http://www.woothemes.com/2009/02/irresistible/"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/71.jpg" alt="Irresistible" title="Irresistible" width="650" height="365" class="alignleft size-full wp-image-306" /></a></p>
<h2><a href="http://www.smashingmagazine.com/2009/03/10/download-imprezz-a-free-wordpress-theme/">Imprezz</a></h2>
<p><a href="http://www.smashingmagazine.com/2009/03/10/download-imprezz-a-free-wordpress-theme/"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/81.jpg" alt="Imprezz" title="Imprezz" width="650" height="384" class="alignleft size-full wp-image-307" /></a></p>
<h2><a href="http://www.themesforblogs.com/theme/elegance-11.html">Elegance</a></h2>
<p><a href="http://www.themesforblogs.com/theme/elegance-11.html"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/91.jpg" alt="Elegance" title="Elegance" width="650" height="385" class="alignleft size-full wp-image-308" /></a></p>
<h2><a href="http://www.smashingmagazine.com/2007/09/07/smashing-freefont-and-wordpress-theme/">Smashing Theme</a></h2>
<p><a href="http://www.smashingmagazine.com/2007/09/07/smashing-freefont-and-wordpress-theme/"><img src="http://www.thetutorialblog.com/wp-content/uploads/2010/02/101.jpg" alt="Smashing Theme" title="Smashing Theme" width="650" height="370" class="alignleft size-full wp-image-309" /></a></p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/wordpress/10-excellent-free-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boosting traffic to your website with submission websites</title>
		<link>http://www.thetutorialblog.com/general/boosting-traffic-to-your-website-with-submission-websites/</link>
		<comments>http://www.thetutorialblog.com/general/boosting-traffic-to-your-website-with-submission-websites/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 17:45:55 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[codebounce]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[learnphp]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[submission]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[tutorial submission]]></category>
		<category><![CDATA[tutorialized]]></category>
		<category><![CDATA[visitors]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=49</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	There are many ways of getting traffic to your website such as with search engines, social network websites and telling friends. The best way that I have found besides search engines of getting traffic to your website is by submitting your tutorials to tutorial submission websites. There are tutorial websites that allow for submission of [...]


Related posts:<ol><li><a href='http://www.thetutorialblog.com/general/where-to-host-your-website/' rel='bookmark' title='Permanent Link: Where to host your website?'>Where to host your website?</a> <small>So you’ve successfully created a design for your website… the...</small></li>
<li><a href='http://www.thetutorialblog.com/general/best-websites-for-ruby-on-rails-examples-and-tutorials/' rel='bookmark' title='Permanent Link: Best Websites For Ruby On Rails Examples and Tutorials'>Best Websites For Ruby On Rails Examples and Tutorials</a> <small>Ruby on Rails is a framework for Ruby that has...</small></li>
<li><a href='http://www.thetutorialblog.com/php/useful-websites-and-resources-for-learning-codeigniter/' rel='bookmark' title='Permanent Link: Useful websites and resources for learning CodeIgniter'>Useful websites and resources for learning CodeIgniter</a> <small>Frameworks are becoming more and more popular because of the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fgeneral%2Fboosting-traffic-to-your-website-with-submission-websites%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fgeneral%2Fboosting-traffic-to-your-website-with-submission-websites%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Boosting traffic to your website with submission websites" alt=" Boosting traffic to your website with submission websites" /><br />
			</a>
		</div>
<p>There are many ways of getting traffic to your website such as with search engines, social network websites and telling friends. The best way that I have found besides search engines of getting traffic to your website is by submitting your tutorials to tutorial submission websites.</p>
<p>There are tutorial websites that allow for submission of specific tutorials such as only PHP or Photoshop tutorials and there are websites that allow you to submit a lot of different types of tutorials to that website.</p>
<p><a href="http://www.codebounce.com" target="_blank"><img class="alignnone size-full wp-image-50" title="codebounce" src="http://www.thetutorialblog.com/wp-content/uploads/2008/11/codebounce.png" alt="codebounce Boosting traffic to your website with submission websites" width="315" height="58" /></a><br />
<a href="http://www.codebounce.com">CodeBounce</a> is one of the tutorial submission websites that allow you to submit a range of different tutorials. Its system is somewhat similar to that of Digg's. CodeBounce is a great website and is easy to get to grips with. They allow for the submission of ASP.NET, PHP, CSS, Photoshop, WordPress, Graphic Design, Web Design and Java.<br />
<a href="http://www.codebounce.com">Developer Links and Tutorials</a>.<br />
<span id="more-49"></span> </p>
<p><a href="http://www.learnphp.org"><img class="alignnone size-full wp-image-52" title="learnphp" src="http://www.thetutorialblog.com/wp-content/uploads/2008/11/learnphp.png" alt="learnphp Boosting traffic to your website with submission websites" width="256" height="83" /></a><br />
LearnPHP is a website that I recommend submitting your PHP tutorials too because I receive a lot of visitors from them and overall the website is easy to navigate and understand. They only allow for the submission of PHP tutorials as you can probably tell from the name.</p>
<p><a href="http://www.tutorialized.com/"></a><a href="http://www.tutorialized.com"><img class="alignnone size-full wp-image-56" title="tutorialized1" src="http://www.thetutorialblog.com/wp-content/uploads/2008/11/tutorialized1.png" alt="tutorialized1 Boosting traffic to your website with submission websites" width="325" height="85" /></a><br />
Tutorialized is a great website that allows for the submission of many different types of tutorials. Tutorialized has been a website that has been around for a long time and if you submit a tutorial to this website and you get accepted then expect quite a lot of hits from here as they have a lot of visitors.</p>
<p> </p>
<p>If there are any other websites that you like submitting tutorials too and have received a good amount of visitors from then share it with everyone and let us know by posting a comment.</p>


<p>Related posts:<ol><li><a href='http://www.thetutorialblog.com/general/where-to-host-your-website/' rel='bookmark' title='Permanent Link: Where to host your website?'>Where to host your website?</a> <small>So you’ve successfully created a design for your website… the...</small></li>
<li><a href='http://www.thetutorialblog.com/general/best-websites-for-ruby-on-rails-examples-and-tutorials/' rel='bookmark' title='Permanent Link: Best Websites For Ruby On Rails Examples and Tutorials'>Best Websites For Ruby On Rails Examples and Tutorials</a> <small>Ruby on Rails is a framework for Ruby that has...</small></li>
<li><a href='http://www.thetutorialblog.com/php/useful-websites-and-resources-for-learning-codeigniter/' rel='bookmark' title='Permanent Link: Useful websites and resources for learning CodeIgniter'>Useful websites and resources for learning CodeIgniter</a> <small>Frameworks are becoming more and more popular because of the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/general/boosting-traffic-to-your-website-with-submission-websites/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Creating a WordPress plugin</title>
		<link>http://www.thetutorialblog.com/php/creating-a-wordpress-plugin/</link>
		<comments>http://www.thetutorialblog.com/php/creating-a-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 17:10:34 +0000</pubDate>
		<dc:creator>Wez Pyke</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Text Tutorials]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[makeuseof]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.thetutorialblog.com/?p=38</guid>
		<description><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	The plugin that I'm going to show you how to create within this post is a plugin that I created for MakeUseOf. Creating plugins for WP is relatively easy and uses actions to call functions that are included in pages within the main WP files. To learn more about creating plugins for WP go here. [...]


Related posts:<ol><li><a href='http://www.thetutorialblog.com/php/twitter-like-pagination-using-codeigniter-and-jquery/' rel='bookmark' title='Permanent Link: Twitter-like pagination using CodeIgniter and jQuery'>Twitter-like pagination using CodeIgniter and jQuery</a> <small>If you use Twitter you'll notice that there is a...</small></li>
<li><a href='http://www.thetutorialblog.com/php/adding-security-to-codeigniter-forms-with-a-custom-library-class/' rel='bookmark' title='Permanent Link: Adding security to CodeIgniter forms with a custom library class'>Adding security to CodeIgniter forms with a custom library class</a> <small>The class that we are going to create within CI...</small></li>
<li><a href='http://www.thetutorialblog.com/cocoa-objective-c/creating-a-basic-ipad-application/' rel='bookmark' title='Permanent Link: Creating a basic iPad application'>Creating a basic iPad application</a> <small>Because of the recent announcement of the iPad more people...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[	<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
		<style>
	#code_div { border: 1px solid #DFF4B5; background-color: #F0FFD2; padding-left: 50px; padding:10px;}
	</style>
	
	<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fcreating-a-wordpress-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.thetutorialblog.com%2Fphp%2Fcreating-a-wordpress-plugin%2F&amp;source=wezpyke&amp;style=normal&amp;service=bit.ly" height="61" width="50" title="Creating a Wordpress plugin" alt=" Creating a Wordpress plugin" /><br />
			</a>
		</div>
<p>The plugin that I'm going to show you how to create within this post is a plugin that I created for <a href="http://www.makeuseof.com" target="_blank">MakeUseOf</a>.</p>
<p>Creating plugins for WP is relatively easy and uses actions to call functions that are included in pages within the main WP files. To learn more about creating plugins for WP go <a href="http://codex.wordpress.org/Main_Page" target="_blank">here</a>.</p>
<p>Ok so lets get started with creating the plugin.</p>
<p>When creating a plugin for WP make sure that you include your own unique word or acronym to your functions so that they don't conflict with any other plugins that may be installed.</p>
<p>Because I created this for MakeUseOf the acronym I use is MUO and then AF because I named the plugin author footer so every function within this plugin begins with MUO_AF.<br />
<span id="more-38"></span><br />
So to start our plugin we add this<br />
<div id="code_div">&lt;?php<br />
/*<br />
Plugin Name: MUO Author Footer<br />
Description: Authors type in the footer that will be attached to the end of their articles with modifications<br />
Author: Wez<br />
Version: 1.0<br />
*/<br />
</div></p>
<p>Here is where we add the name of our plugin, a description, your name and the version number of your plugin.</p>
<p>The next bit of code that we add is the <em>register_activation_hook</em> and <em>register_deactivation_hook</em> so that when the plugin is activated and deactivated the code within functions that we will create in our next step will be executed.<br />
<div id="code_div">register_activation_hook(__FILE__, 'MUO_AF_activate');<br />
register_deactivation_hook(__FILE__, 'MUO_AF_deactivate');</div></p>
<p>We're now going to create two functions called MUO_AF_activate and MUO_AF_deactivate so that the register hooks work correctly.<br />
<div id="code_div">function MUO_AF_activate() {<br />
	$query = mysql_query("CREATE TABLE `muo_author_footer` (<br />
	  `author_id` int(11) NOT NULL,<br />
	  `author_name` varchar(50) NOT NULL,<br />
	  `author_signature` text NOT NULL,<br />
	  PRIMARY KEY  (`author_id`)<br />
	) ENGINE=MyISAM DEFAULT CHARSET=latin1;");<br />
}</p>
<p>function MUO_AF_deactivate(){<br />
	$query = mysql_query("DROP TABLE `muo_author_footer`");<br />
}</div><br />
What this code does is when the plugin is activated it will create a table within the MySQL database that the plugin will use to store and retrieve information. When the plugin is deactivated it will delete the table that was created in the database.</p>
<p>In the next step we will write code that will be called and displayed within the Your Profile page in the admin-cp.<br />
<div id="code_div">function MUO_AF_profile() {<br />
	global $userdata;<br />
	get_currentuserinfo();<br />
	$query = mysql_query("SELECT * FROM muo_author_footer WHERE author_id='$userdata->ID'");<br />
	$row = mysql_fetch_array($query);<br />
	$author_signature = $row['author_signature'];<br />
	echo '&lt;table class="form-table"><br />
	&lt;tr>&lt;th>Author Post Signature</th>
<p>	&lt;td>&lt;p><br />
	&lt;textarea name="MUO_Author_Sig" cols="30" rows="5">'.$author_signature.'&lt;/textarea><br />
	&lt;/p><br />
	&lt;h2>Preview:&lt;/h2>&lt;p>&lt;em>';<br />
	echo $author_signature;<br />
	echo '&lt;/em>&lt;/p><br />
	&lt;/td>&lt;/tr><br />
	&lt;/table>';<br />
}</div></p>
<p>When the Update Profile button is clicked the information from the previous bit of code will be retrieved in the next bit of code and the database will be updated.<br />
<div id="code_div">function MUO_AF_edit(){<br />
	global $userdata, $current_user;<br />
	get_currentuserinfo();</p>
<p>	$MUO_Author_Sig = $_POST['MUO_Author_Sig'];</p>
<p>	$query = mysql_query("SELECT * FROM muo_author_footer WHERE author_id='$userdata->ID'");</p>
<p>	if( mysql_num_rows($query) > 0 ) {<br />
		$query = mysql_query("UPDATE muo_author_footer SET author_signature='$MUO_Author_Sig' WHERE author_id='$userdata->ID'");<br />
	} else {<br />
		$query = mysql_query("INSERT INTO muo_author_footer VALUES ('$userdata->ID','$userdata->user_login','$MUO_Author_Sig')");<br />
	}</p>
<p>}</div></p>
<p>The code we will write now is the code that will grab the contents of the post and then attach the authors signature to the end of that post.<br />
<div id="code_div">function MUO_AF_publish_post( $content ) {<br />
	global $wpdb;<br />
	$num = 0;<br />
	if (get_the_ID() > $num) {<br />
		$the_author_id = get_the_author_id();<br />
		$author_query = mysql_query("SELECT * FROM muo_author_footer WHERE author_id='". $the_author_id ."'");<br />
		$author_row = mysql_fetch_array($author_query);<br />
		$author_signature = $author_row['author_signature'];</p>
<p>		$content .= '&lt;style><br />
					.muo_af_style { background-color: #B4D0E1; border: 2px solid #4275B8; }<br />
					&lt;/style>';</p>
<p>		if(strstr($author_signature, 'by') == false) :</p>
<p>		$content .= '&lt;p class="muo_af_style">&lt;em>(By) '.$author_signature.'&lt;/em>&lt;/p>';</p>
<p>		else :</p>
<p>		$content .= '&lt;p class="muo_af_style">&lt;em>'.$author_signature.'&lt;/em>&lt;/p>';</p>
<p>		endif;</p>
<p>		return $content;<br />
	}<br />
	else {<br />
		return $content;<br />
	}<br />
}</div></p>
<p>We will now add the functions to actions, this is the most important part of the code because without this none of the functions would be called and nothing would happen.<br />
<div id="code_div">add_action('show_user_profile', 'MUO_AF_profile');<br />
add_filter('profile_update', 'MUO_AF_edit');<br />
add_action('the_content', 'MUO_AF_publish_post');<br />
</div></p>
<p>Then at the end of the file close the php tags with<br />
<div id="code_div">?></div></p>
<p>I have not been very descriptive in this tutorial of what the actual code within the plugin is doing because I created this tutorial wanting to show people the basics bit of code that are needed to call functions and make a plugin work.</p>
<p>I hope that you have learnt something by reading this tutorial and feel free to post a comment with your thoughts on this post.</p>


<p>Related posts:<ol><li><a href='http://www.thetutorialblog.com/php/twitter-like-pagination-using-codeigniter-and-jquery/' rel='bookmark' title='Permanent Link: Twitter-like pagination using CodeIgniter and jQuery'>Twitter-like pagination using CodeIgniter and jQuery</a> <small>If you use Twitter you'll notice that there is a...</small></li>
<li><a href='http://www.thetutorialblog.com/php/adding-security-to-codeigniter-forms-with-a-custom-library-class/' rel='bookmark' title='Permanent Link: Adding security to CodeIgniter forms with a custom library class'>Adding security to CodeIgniter forms with a custom library class</a> <small>The class that we are going to create within CI...</small></li>
<li><a href='http://www.thetutorialblog.com/cocoa-objective-c/creating-a-basic-ipad-application/' rel='bookmark' title='Permanent Link: Creating a basic iPad application'>Creating a basic iPad application</a> <small>Because of the recent announcement of the iPad more people...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thetutorialblog.com/php/creating-a-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>
