<?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>CMS tutorial site</title>
	<atom:link href="http://blog.cmstutorials.org/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.cmstutorials.org</link>
	<description>Free tutorials and resources</description>
	<lastBuildDate>Fri, 04 Jun 2010 22:39:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>5 reasons why you should love Wordpress 3.0</title>
		<link>http://blog.cmstutorials.org/posts/general/5-reasons-why-you-should-love-wordpress-3-0</link>
		<comments>http://blog.cmstutorials.org/posts/general/5-reasons-why-you-should-love-wordpress-3-0#comments</comments>
		<pubDate>Fri, 04 Jun 2010 22:36:47 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=779</guid>
		<description><![CDATA[Custom types
One of the major anticipated updates is without a doubt the custom types. Untill now you could only add one type of post and if you wanted to have different post types you could either use custom fields or the plugin fileflutter. But now, thanks to a small peace of code, you can add [...]]]></description>
			<content:encoded><![CDATA[<h2>Custom types</h2>
<p>One of the major anticipated updates is without a doubt the custom types. Untill now you could only add one type of post and if you wanted to have different post types you could either use custom fields or the plugin fileflutter. But now, thanks to a small peace of code, you can add different custom types with their own menu and settings.</p>
<p>Here follows the code to register a new post type, how easy can it be?</p>
<p>
<pre class="brush: php;">register_post_type('podcast', array(
'label' =&gt; __('Podcasts'),
'singular_label' =&gt; __('Podcast'),
'public' =&gt; true,
'show_ui' =&gt; true,
'capability_type' =&gt; 'post',
'hierarchical' =&gt; false,
'rewrite' =&gt; false,
'query_var' =&gt; false,
'supports' =&gt; array('title', 'editor', 'author')
));</pre>
</p>
<h2>New registration process</h2>
<p>Finally we can choose our own username and password instead of creating the default admin profile. This is also a lot safer because most hacker knows the default username of the first profile created on your wordpress site is admin, and will use it to hack into your site.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/custom_registration.png"><img src="http://blog.cmstutorials.org/wp-content/uploads/custom_registration.png" alt="" title="custom_registration" width="785" height="556" class="alignnone size-full wp-image-778" /></a></p>
<h2> New menu management feature</h2>
<p>Instead of updating your theme files online you can now easily manage your menu from your wordpress admin panel. how sweet is that, huh?</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/menu-manager.png"><img src="http://blog.cmstutorials.org/wp-content/uploads/menu-manager.png" alt="" title="menu-manager" width="600" height="419" class="alignnone size-full wp-image-783" /></a></p>
<h2> Custom backgrounds for themes </h2>
<p>Another great update of wordpress 3.0 is the ability to customize your header from your wordpress administration panel. Just click on the image you want to use or upload your own image. It&#8217;s that simple, even a monkey can do it.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/custom_header.png"><img src="http://blog.cmstutorials.org/wp-content/uploads/custom_header.png" alt="" title="custom_header" width="981" height="734" class="alignnone size-full wp-image-784" /></a></p>
<h2> New theme <strong>Twenty Ten</strong></h2>
<p>With all the sublime updates of wordpress 3.0 (custom post types, menu management, edit header&#8230;) it is obvious to release new default template. This template is perfect to get started in wordpress 3.0 as it holds all the new template features.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/new_theme.png"><img src="http://blog.cmstutorials.org/wp-content/uploads/new_theme.png" alt="" title="new_theme" width="994" height="642" class="alignnone size-full wp-image-786" /></a></p>
<h2>Other updates</h2>
<ul>
<li>Bulk theme update ability</li>
<li>Improved custom post types</li>
<li>Improved custom taxonomies</li>
<li>Standalone WordPress and WPMU code merged and is called Multisite</li>
</ul>
<p>Need more reasons? check the <a href="http://codex.wordpress.org/Version_3.0" target="_blank">Codex</a></p>
<h2>Download wordpress 3.0</h2>
<p>The developers of wordpress announced last week that the <a href="http://wordpress.org/development/2010/05/wordpress-3-0-release-candidate/" target="_blank">Wordpress 3.0 RC1</a> was released and could be downloaded at <a href="http://wordpress.org/wordpress-3.0-RC1.zip" target="_blank">http://wordpress.org/wordpress-3.0-RC1.zip</a>.</p>
<p>Like it is mentioned in their post, RC comes right after the beta but just before the final release, wordpress 3.0 should be ready but their might still be some bugs.</p>
<h2>Useful reading</h2>
<ul>
<li>
<p><a href="http://net.tutsplus.com/tutorials/wordpress/introducing-wordpress-3-custom-taxonomies/" target="_blank">Introducing WordPress 3 Custom Taxonomies</a></p>
</li>
<li>
<p><a href="http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/" target="_blank" class="broken_link">Custom Post Types in WordPress 3.0</a></p>
</li>
<li>
<p><a href="http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/" title="Permanent Link to WordPress 3.0: Multisite Domain Mapping Tutorial" target="_blank" rel="bookmark">WordPress 3.0: Multisite Domain Mapping Tutorial</a></p>
</li>
</ul>
<p>Got your own reason to love wordpress? we&#8217;d love to hear about it :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/5-reasons-why-you-should-love-wordpress-3-0/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter free upload helper</title>
		<link>http://blog.cmstutorials.org/posts/general/codeigniter-free-upload-helper</link>
		<comments>http://blog.cmstutorials.org/posts/general/codeigniter-free-upload-helper#comments</comments>
		<pubDate>Tue, 18 May 2010 19:29:08 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=771</guid>
		<description><![CDATA[For one of my projects I had several pages where people could upload images or other files. Now knowing that OOP has as purpose to limit the code and make the same back-end code available for different functionalities. I created an upload helper file for CodeIgniter. This helper file should allow you to create your [...]]]></description>
			<content:encoded><![CDATA[<p>For one of my projects I had several pages where people could upload images or other files. Now knowing that OOP has as purpose to limit the code and make the same back-end code available for different functionalities. I created an upload helper file for CodeIgniter. This helper file should allow you to create your upload forms (well the back-end) much faster.</p>
<h1>The code</h1>
<p>Save this code into a file named <strong>upload_helper.php</strong> in the helpers folder and don&#8217;t forget to load the file when you use the helper.</p>
<p>
<pre class="brush: php;">&lt;?php
if (!defined('BASEPATH')) exit('No direct script access allowed');

/*###################################################################################*/
	function multiple_upload($name = 'userfile', $upload_dir = 'sources/images/', $allowed_types = 'gif|jpg|jpeg|jpe|png', $size)
/*###################################################################################*/
	{
		$CI =&amp; get_instance();

		$config['upload_path']   = realpath($upload_dir);
		$config['allowed_types'] = $allowed_types;
		$config['max_size']      = $size;
		$config['overwrite']     = FALSE;
		$config['encrypt_name']  = TRUE;

			$CI-&gt;upload-&gt;initialize($config);
			$errors = FALSE;

			if(!$CI-&gt;upload-&gt;do_upload($name)):
				$errors = TRUE;
			else:
				// Build a file array from all uploaded files
				$files = $CI-&gt;upload-&gt;data();
			endif;

			// There was errors, we have to delete the uploaded files
			if($errors):
				@unlink($files['full_path']);
				return false;
			else:
				return $files;
			endif;

    }//end of multiple_upload()

/*#################################################*/
	//modified version of jeffrey way's zip extract tutorial
	function upload_batch_images($name = 'userfile', $upload_dir = 'sources/images/', $allowed_types = 'gif|jpg|jpeg|jpe|png', $size)
/*#################################################*/
{
	$CI =&amp; get_instance();
		$realpath = $upload_dir.&quot;images-&quot;.rand(1111111111,9999999999); //let's make it unique
		$config['upload_path']   = $realpath;
		$config['allowed_types'] = $allowed_types;
		$config['max_size']      = $size;
		$config['overwrite']     = FALSE;
		$config['encrypt_name']  = TRUE;

	$CI-&gt;upload-&gt;initialize($config);

	if(mkdir($realpath)):
		if($CI-&gt;upload-&gt;do_upload($name)):
			$files = $CI-&gt;upload-&gt;data();
			if(openZip($realpath.&quot;/&quot;.$files['file_name'], $realpath)):
				@unlink($files['full_path']);
				return $realpath;
			else:
				@unlink($files['full_path']);
				return false;
			endif;
		endif;
	else:
		return false;
	endif;

}

/*#################################################*/
	function openZip($file_to_open, $zip_target)
/*#################################################*/
{
	$zip = new ZipArchive();
	$x = $zip-&gt;open($file_to_open);
	if ($x === true):
		$zip-&gt;extractTo($zip_target);
		$zip-&gt;close();
		return true;
	else:
		return false;
	endif;
}

?&gt;</pre>
</p>
<p>Controller example code</p>
<p>
<pre class="brush: php;">//returns an array and store it into an variable
//requires 4 parameters, the name of the file input, the path where the file should be uploaded too, the allowed extentions, the max. file size
$s_thumb = multiple_upload('small_thumb', 'sources/images/', 'gif|jpg|jpeg|jpe|png', 1024);
echo $s_thumb-&gt;file_name; //display file name
/*
returns the following array, which is the basic array when a file is uploaded in CodeIgniter

Array
(
    [file_name]    =&gt; mypic.jpg
    [file_type]    =&gt; image/jpeg
    [file_path]    =&gt; /path/to/your/upload/
    [full_path]    =&gt; /path/to/your/upload/jpg.jpg
    [raw_name]     =&gt; mypic
    [orig_name]    =&gt; mypic.jpg
    [file_ext]     =&gt; .jpg
    [file_size]    =&gt; 22.2
    [is_image]     =&gt; 1
    [image_width]  =&gt; 800
    [image_height] =&gt; 600
    [image_type]   =&gt; jpeg
    [image_size_str] =&gt; width=&quot;800&quot; height=&quot;200&quot;
)

*/

//the following will upload a zip file and extract all the images or files within it, it returns only the path of the image folder
$batch_images = upload_batch_images('large_thumb', 'sources/images/', 'zip', 30720000);</pre>
</p>
<p>If you like this upload helper share it with other people.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/codeigniter-free-upload-helper/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Top 10 firefox addons you should be using right now</title>
		<link>http://blog.cmstutorials.org/posts/tools/top-10-firefox-addons-you-should-be-using-right-now</link>
		<comments>http://blog.cmstutorials.org/posts/tools/top-10-firefox-addons-you-should-be-using-right-now#comments</comments>
		<pubDate>Sat, 01 May 2010 17:24:01 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[collorzilla]]></category>
		<category><![CDATA[fast dial]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fireftp]]></category>
		<category><![CDATA[fireshot]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[xmarks]]></category>
		<category><![CDATA[yslow]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=758</guid>
		<description><![CDATA[There is no point in denying, when developing websites for clients or personal use you will defenitly need tools to help you achieve your goals more effective and faster. Here follows a list of 10 firefox addons you should be using right now if you haven&#8217;t installed them yet.
Collorzilla &#8211; Collorzilla is obviously one of [...]]]></description>
			<content:encoded><![CDATA[<p>There is no point in denying, when developing websites for clients or personal use you will defenitly need tools to help you achieve your goals more effective and faster. Here follows a list of 10 firefox addons you should be using right now if you haven&#8217;t installed them yet.</p>
<p><a href="http://www.colorzilla.com/firefox" target="_blank">Collorzilla</a> &#8211; Collorzilla is obviously one of the favorite addons of web developers as it allow them to select any color on a page. Try it and you will notice you can&#8217;t work without it anymore.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/colorzilla.gif"><img src="http://blog.cmstutorials.org/wp-content/uploads/colorzilla.gif" alt="" title="colorzilla" width="309" height="103" class="alignnone size-full wp-image-760" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/5721" target="_blank">Fast dial</a> &#8211; If you are tired of going through your bookmarks or browser history to go to your favorite sites then fast dial is the addon you are looking for. When opening a new tab it will display a grid  where you can add your favorite website to browse to your favorites sites much faster.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/fastdial.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/fastdial.jpg" alt="" title="fastdial" width="742" height="379" class="alignnone size-full wp-image-761" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">firebug</a> &#8211; Firebug is unique in the way that it allows you to change anything to your html/css within your browser itself but also to debug your code with ease.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/firebug.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/firebug.jpg" alt="" title="firebug" width="649" height="280" class="alignnone size-full wp-image-762" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/684" target="_blank">fireftp</a> &#8211; This is one of the best ftp programs ever, it&#8217;s simple and opens in a new tab in firefox, the must have addon if you develop mainly in firefox. But the best part is that it&#8217;s completely free and secure.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/fireftp.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/fireftp.jpg" alt="" title="fireftp" width="685" height="518" class="alignnone size-full wp-image-763" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/5648" target="_blank">fireshot</a> &#8211; Fireshot allows you to take quick screenshots from entire or partial web pages, it also has a build in editor which you can use to crop, cut and even add notes to your screenshots.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/fireshot.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/fireshot.jpg" alt="" title="fireshot" width="712" height="493" class="alignnone size-full wp-image-764" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web developer</a> &#8211; This addon will add a toolbar to your firefox browser which will help you develop, test and validate your website. It has also a build in console log that will log any css and javascript error.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/web_developer.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/web_developer.jpg" alt="" title="web_developer" width="334" height="207" class="alignnone size-full wp-image-765" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/2410" target="_blank">Xmarks</a> &#8211; Xmarks is an addon that will backup your bookmarks and even synchronize it with other firefox browser installed on other computers.</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/xmarks.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/xmarks.jpg" alt="" title="xmarks" width="229" height="196" class="alignnone size-full wp-image-766" /></a></p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/5369" target="_blank">Yslow</a> &#8211; YSlow analyzes web pages and why they&#8217;re slow based on Yahoo!&#8217;s rules   for high performance web sites.
</p>
<p><a href="http://blog.cmstutorials.org/wp-content/uploads/yslow.jpg"><img src="http://blog.cmstutorials.org/wp-content/uploads/yslow.jpg" alt="" title="yslow" width="634" height="439" class="alignnone size-full wp-image-767" /></a></p>
<p>What&#8217;s your favorite firefox addon?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/tools/top-10-firefox-addons-you-should-be-using-right-now/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple E-commerce application</title>
		<link>http://blog.cmstutorials.org/posts/general/simple-e-commerce-application</link>
		<comments>http://blog.cmstutorials.org/posts/general/simple-e-commerce-application#comments</comments>
		<pubDate>Wed, 28 Apr 2010 16:55:16 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[testers]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=750</guid>
		<description><![CDATA[Are you tired of those complicated e-commerce applications? Are you looking for a simple e-commerce script to sell your digital resources without to many headaches?
Then we are proud to announce we are developing this e-commerce application you are looking for. The product is half way to be finished and still a beta version but we [...]]]></description>
			<content:encoded><![CDATA[<p>Are you tired of those complicated e-commerce applications? Are you looking for a simple e-commerce script to sell your digital resources without to many headaches?</p>
<p>Then we are proud to announce we are developing this e-commerce application you are looking for. The product is half way to be finished and still a beta version but we are acutally looking for people that would be ready to spend some of their time testing this new and kick-ass application. Of course we will reward all the people who helped us out by giving them a free license for this new e-commerce application.</p>
<h1>Main features of this e-commerce application</h1>
<ul>
<li><strong>User item submission</strong> &#8211; Users will be able to submit their own items.</li>
<li><strong>Affiliation system</strong> &#8211; Let other people promote your products with minimal costs.</li>
<li><strong>Simple admin interface</strong> &#8211; Easily manage your users, items categories with a very simple to use interface.</li>
<li><strong>Simple template system</strong> &#8211; Easily create and manage your custom themes.</li>
</ul>
<p>Do you have a suggestion? something you would like to see in this e-commerce application? let us know by dropping a comment below or send an email to <a href="mailto:idealvisions@live.com">idealvisions@live.com</a>, you can also follow the <a href="http://blog.cmstutorials.org/shopping-script-evolution-status">status of the application</a></p>
<p>We have currently developed the entire user part of this e-commerce application and made <a href="http://demo.cmstutorials.org/shop/">a demo</a> available</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/simple-e-commerce-application/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RSS synchronized feeds</title>
		<link>http://blog.cmstutorials.org/posts/general/rss-synchronized-feeds</link>
		<comments>http://blog.cmstutorials.org/posts/general/rss-synchronized-feeds#comments</comments>
		<pubDate>Thu, 01 Apr 2010 09:01:08 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[synchronized]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/posts/general/rss-synchronized-feeds</guid>
		<description><![CDATA[RSS synchronized feeds
To make it easier for you, the members, we have synchronized our rss feed.
The new synchronized rss feed is available at http://feeds.feedburner.com/Cmstut
But wait of course we didn&#8217;t delete the old rss feeds, you can still subscribe to the old individual rss feeds
The blog feed: http://feeds.feedburner.com/cmstutorials/blog
Main site feed: http://feeds.feedburner.com/CmsTutorialSite 
]]></description>
			<content:encoded><![CDATA[<h1>RSS synchronized feeds</h1>
<p>To make it easier for you, the members, we have synchronized our rss feed.</p>
<p>The new synchronized rss feed is available at <a href="http://feeds.feedburner.com/Cmstut" target="_blank">http://feeds.feedburner.com/Cmstut</a></p>
<p>But wait of course we didn&#8217;t delete the old rss feeds, you can still subscribe to the old individual rss feeds</p>
<p>The blog feed: <a href="http://feeds.feedburner.com/cmstutorials/blog" target="_blank">http://feeds.feedburner.com/cmstutorials/blog</a></p>
<p>Main site feed: <a href="http://feeds.feedburner.com/CmsTutorialSite" target="_blank">http://feeds.feedburner.com/CmsTutorialSite </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/rss-synchronized-feeds/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 minimalist webdesign inspirations</title>
		<link>http://blog.cmstutorials.org/posts/general/10-minimalist-webdesign-inspirations</link>
		<comments>http://blog.cmstutorials.org/posts/general/10-minimalist-webdesign-inspirations#comments</comments>
		<pubDate>Wed, 10 Mar 2010 12:28:22 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[minimalist]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=637</guid>
		<description><![CDATA[

        
        	Typographica
        
    




        
        	Chama Inc
        
  [...]]]></description>
			<content:encoded><![CDATA[<div class="subm_tut">
<h2>
        <a target="_blank" href="http://typographica.org"><br />
        	Typographica<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://typographica.org"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/typographica.jpg" alt="Typographica" title="Typographica" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://www.chamainc.com"><br />
        	Chama Inc<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://www.chamainc.com"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/chama_inc.jpg" alt="Chama Inc" title="Chama Inc" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://jasonsantamaria.com"><br />
        	Jason Santa Maria<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://jasonsantamaria.com"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/jason_santa_maria.jpg" alt="Jason Santa Maria" title="Jason Santa Maria" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://www.blackestate.co.nz"><br />
        	Black Estate Vineyard<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://www.blackestate.co.nz"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/black_estate_vineyard.jpg" alt="Black Estate Vineyard" title="Black Estate Vineyard" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://blog.squarespace.com"><br />
        	Squarespace Blog<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://blog.squarespace.com"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/squarespace_blog.jpg" alt="Squarespace Blog" title="Squarespace Blog" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://themeforest.net/item/business-corp-template/55356?ref=krike"><br />
        	Business Corp Template<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://themeforest.net/item/business-corp-template/55356?ref=krike"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/business_corp.jpg" alt="Business Corp Template" title="Business Corp Template" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://themeforest.net/item/photon/48397?ref=krike"><br />
        	Photon<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://themeforest.net/item/photon/48397?ref=krike"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/photon.jpg" alt="Photon" title="Photon" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://themeforest.net/item/kava-minimalist-html-theme/83114?ref=krike" class="broken_link"><br />
        	Kava<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://themeforest.net/item/kava-minimalist-html-theme/83114?ref=krike" class="broken_link"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/kava.jpg" alt="Kava" title="Kava" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://themeforest.net/item/mygen-minimalist-business-template-2/80485?ref=krike"><br />
        	Mygen<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://themeforest.net/item/mygen-minimalist-business-template-2/80485?ref=krike"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/mygen.jpg" alt="Mygen" title="Mygen" /></a></p>
</div>
<div class="subm_tut">
<h2>
        <a target="_blank" href="http://themeforest.net/item/classic-theme-simple-clean-minimalist-template/79479?ref=krike"><br />
        	Classic Theme<br />
        </a><br />
    </h2>
<p><a target="_blank" href="http://themeforest.net/item/classic-theme-simple-clean-minimalist-template/79479?ref=krike"><img src="http://blog.cmstutorials.org/wp-content/uploads/minimalist/classic_theme.jpg" alt="Classic Theme" title="Classic Theme" /></a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/10-minimalist-webdesign-inspirations/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter</title>
		<link>http://blog.cmstutorials.org/posts/general/codeigniter</link>
		<comments>http://blog.cmstutorials.org/posts/general/codeigniter#comments</comments>
		<pubDate>Sun, 07 Mar 2010 15:53:33 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[View]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=631</guid>
		<description><![CDATA[Unfortunatly our clients always wants us to make the best application possible in a very limited deadline, it is then very hard to meet the deadlines if you need start from zero. Fortunatly some have come up with frameworks to help developers like us to code our applications much faster while guaranteeing the best quality [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunatly our clients always wants us to make the best application possible in a very limited deadline, it is then very hard to meet the deadlines if you need start from zero. Fortunatly some have come up with frameworks to help developers like us to code our applications much faster while guaranteeing the best quality for the application</p>
<h3>What is a framework?</h3>
<p>If you are new to the term framework, it is nothing more or less then a library of code and functionalities that will help speed up the development of your application for your clients. Most php frameworks are also based on the, popular an high demanded, MVC structure. MVC stands for <b>M</b>odel, <b>V</b>iew and <b>C</b>ontroller. The purpose of this structure is to isolate &#8220;domain logic&#8221; (the application logic for the user) from input and presentation (GUI), permitting independent development, testing and maintenance of each.</p>
<h3>CodeIgniter</h3>
<p>While there are a lot of php frameworks like the ZEND (most used in development companies), cakephp,&#8230; I would like to introduce you to one specific called CodeIgniter. Why did I choose for this framework? well for the simple reason that it is very easy to use, very straightforward and comes with an awesome community which will help you should you ever have problems or questions.</p>
<p>Even though CodeIgniter has some basic video tutorials to get you started I really recommend the <b>CodeIgniter from scratch</b> tutorial serie by <strong>Jeffrey Way</strong> and <strong>Burak Guzel</strong>. So obviously here comes the list of the video tutorial serie. A tutorial serie I really recommend to everyone!</p>
<ul>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-1/">Day 1: Getting Started With the Framework</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-2/">Day 2: Database Selecting Methods</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-3/">Day 3: Sending Emails</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-4-newsletter-signup/">Day 4: Newsletter Signup</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-5-crud/">Day 5: CRUD</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-6-login/">Day 6: Login</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-7-pagination/">Day 7: Pagination</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-day-8-ajax/">Day 8: AJAX</a></li>
<li><a href="http://net.tutsplus.com/videos/screencasts/codeigniter-from-scratch-file-uploading-and-image-manipulation/">Day 9: File Uploading and Image Manipulation</a></li>
<li><a href="http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-the-calendar-library/">Day 10: The Calendar Library</a></li>
</ul>
<p>Should you have found other interesting tutorials regarding CodeIgniter be so kind to share it with us in the comments!</p>
<p>enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/codeigniter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a php click counter</title>
		<link>http://blog.cmstutorials.org/posts/tutorials/create-a-php-click-counter</link>
		<comments>http://blog.cmstutorials.org/posts/tutorials/create-a-php-click-counter#comments</comments>
		<pubDate>Sat, 06 Mar 2010 18:13:01 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[counter]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=574</guid>
		<description><![CDATA[Since my deposit/advertising script was approved on the envato network (codecanyon.net) the first request I received was to create a click tracking to see how many times a specific banner was clicked on. In this tutorial I will teach you the basics of creating such a click counter.
Example of the click counter of the deposit [...]]]></description>
			<content:encoded><![CDATA[<p>Since my <a href="http://codecanyon.net/item/deposit-system/discussion/59753?ref=krike" target="_blank">deposit/advertising</a> script was approved on the envato network (<a href="http://codecanyon.net?ref=krike">codecanyon.net</a>) the first request I received was to create a click tracking to see how many times a specific banner was clicked on. In this tutorial I will teach you the basics of creating such a click counter.</p>
<p>Example of the click counter of the deposit script</p>
<p><a href="http://codecanyon.net/item/deposit-system/discussion/59753?ref=krike" target="_blank"><img src="http://s3.envato.com/files/248666/02_advertise.jpg" alt="deposit click counter" width="604" height="809" /></a></p>
<h3>The database</h3>
<p>Let&#8217;s start by creating a new database called <strong>counter</strong> and execute following queries</p>
<p>
<pre class="brush: php;">CREATE  TABLE  `banners` (
 `id` INT NOT  NULL  AUTO_INCREMENT  PRIMARY  KEY ,
  `url` VARCHAR( 150  )  NOT  NULL ,
  `banner` VARCHAR( 150  )  NOT  NULL ,
  `name` VARCHAR( 60  )  NOT  NULL, 'clicks' INT NOT NULL DEFAULT  '0'
) ;
</pre>
</p>
<p>Let&#8217;s insert some data now</p>
<p>
<pre class="brush: php;">INSERT INTO `banners` (`id`, `url`, `banner`, `name`, `clicks`) VALUES
(1, 'http://themeforest.net', 'http://envato.s3.cdn.plus.org/referrer_adverts/tf_260x120_v2.gif', 'themeforest', 0),
(2, 'http//graphicriver.net', 'http://envato.s3.cdn.plus.org/referrer_adverts/gr_260x120_v4.gif', 'graphicriver', 0);</pre>
</p>
<h3>Configuration of the database</h3>
<p>Let&#8217;s start by creating all of the nescessary files for this tutorials. Create 3 new php files, name them <strong>index.php</strong>, <strong>config.php</strong> and  <strong>counter.php</strong></p>
<p>Paste the following code into config.php to make the connection to the database, this you will need to display the banners and to track the clicks</p>
<p>note*: I&#8217;m using <strong>mysqli</strong> and not regular<strong> mysql</strong>, you may need to pay attention to this because the parameters for the sql query and the link to the database is different when using <strong>mysqli</strong>.</p>
<p>
<pre class="brush: php;">&lt;?php $db_host = &quot;localhost&quot;;
$db_username = &quot;root&quot;;
$db_password = &quot;&quot;;
$db_database = &quot;counter&quot;;

$link = mysqli_connect($db_host,$db_username,$db_password) or die(&quot;Cannot connect&quot;);
mysqli_select_db($link, $db_database) or die(&quot;Cannot select the database&quot;); ?&gt;</pre>
</p>
<p>Make sure to fill in the right username, password and database name before you continue</p>
<h3>Display of the banners</h3>
<p>Open <strong>index.php</strong> if haven&#8217;t allready done so. Let&#8217;s add the basic html structure:</p>
<p>
<pre class="brush: php;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
  &lt;title&gt;banners index page&lt;/title&gt;
  &lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</p>
<p>Above the doctype let&#8217;s include the config file and query for the banners</p>
<p>
<pre class="brush: php;">&lt;?php
include(&quot;config.php&quot;);
$sql = mysqli_query($link, &quot;SELECT id, url, banner, name FROM banners&quot;);
  ?&gt;</pre>
</p>
<p>Now we need to fetch the queried data and display each banner from our table, so between the body tag add the following code</p>
<p>
<pre class="brush: php;">&lt;div id=&quot;container&quot;&gt;
&lt;?php
while($result = mysqli_fetch_object($sql)):
    ?&gt;
    &lt;p&gt;
    &lt;a href=&quot;counter.php?id=&lt;?php echo $result-&gt;id; ?&gt;&quot;&gt;
    &lt;img src=&quot;&lt;?php echo $result-&gt;banner; ?&gt;&quot; alt=&quot;&lt;?php echo $result-&gt;name; ?&gt;&quot; /&gt;
    &lt;/a&gt;
    &lt;/p&gt;
    &lt;?php
endwhile;
?&gt;
&lt;/div&gt;&lt;!-- end of container --&gt;</pre>
</p>
<p>Now browse your index.php, If everything works fine you should have something like this:</p>
<p><img src="http://blog.cmstutorials.org/wp-content/uploads/banners_index_page.jpg" width="302" height="308" alt="banners index page" /></p>
<p>Now the trick is in fact to link to the counter.php and pass in the id of the banner as a parameter (eg: counter.php?id=//id of the banner), which we allready did (see previous code). We then run a query to increase the click with 1 and then we redirect the user to the correct url.</p>
<h3>Track click and redirect</h3>
<p>Open <strong>counter.php</strong> and add the following code</p>
<p>
<pre class="brush: php;">&lt;?php

//1. include the configuration file
  include(&quot;config.php&quot;);

//2. Get the id from the url and store it into a variable
  $id = mysqli_real_escape_string($link, $_GET['id']);

//3. fetch the url and clicks from this banner
  $clicks = mysqli_fetch_object(mysqli_query($link, &quot;SELECT url, clicks FROM banners WHERE id=&quot;.$id.&quot;&quot;));

//4. increase clicks with 1
  $new_click = $clicks-&gt;clicks+1;

//5. update this into the database, check if it was succesfull
  if(mysqli_query($link, &quot;UPDATE banners SET clicks=&quot;.$new_click.&quot; WHERE id=&quot;.$id.&quot;&quot;)):
  //6. redirect to the url
  header(&quot;Location: &quot;.$clicks-&gt;url);
  else:
  //6. else write to error log
  endif;
?&gt;
</pre>
</p>
<p>so let&#8217;s go over each line</p>
<ol>
<li>1. Include the configuration file</li>
<li>2. Get the id from the url and store it into a variable</li>
<li>3. Fetch the url and clicks from this banner</li>
<li>4. Increase clicks with 1</li>
<li>5. Update this into the database, check if it was succesfull</li>
<li>6. Redirect to the url else write to error log</li>
</ol>
<h3>Conclussion</h3>
<p>There you go in only a few steps you were able to create a click tracker to keep track of how many times your banners were clicked on your site. If you don&#8217;t want to spend to much time coding the click tracker yourself you might be interested into the deposit/avertisement script at <a href="http://codecanyon.net/item/deposit-system/59753">http://codecanyon.net/item/deposit-system/59753</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/tutorials/create-a-php-click-counter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new author in our midst</title>
		<link>http://blog.cmstutorials.org/posts/general/a-new-author-in-our-midst</link>
		<comments>http://blog.cmstutorials.org/posts/general/a-new-author-in-our-midst#comments</comments>
		<pubDate>Sat, 06 Mar 2010 16:26:53 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[author]]></category>
		<category><![CDATA[manager]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=619</guid>
		<description><![CDATA[We have a new author in our midst and we are proud to present you to him.
Details

Name: Roel
Interests: Webdesign, Graphic Design, Information Architecture, SEO
Position: author, tutorial writer, cms tutorial manager

]]></description>
			<content:encoded><![CDATA[<p>We have a new author in our midst and we are proud to present you to him.</p>
<h3>Details</h3>
<ul>
<li><b>Name:</b> Roel</li>
<li><b>Interests:</b> Webdesign, Graphic Design, Information Architecture, SEO</li>
<li><b>Position:</b> author, tutorial writer, cms tutorial manager</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/a-new-author-in-our-midst/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top submitted tutorials on our site</title>
		<link>http://blog.cmstutorials.org/posts/general/top-submitted-tutorials-on-our-site-2</link>
		<comments>http://blog.cmstutorials.org/posts/general/top-submitted-tutorials-on-our-site-2#comments</comments>
		<pubDate>Fri, 05 Mar 2010 11:41:13 +0000</pubDate>
		<dc:creator>krike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[@font-face]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[top tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.cmstutorials.org/?p=610</guid>
		<description><![CDATA[

@font-face and 15 Free Fonts You Can Use Today 
 Description:Fonts are a huge part of design (as we all know). Text on the web needs to be much more dynamic than in any other media. We have solutions like Cufon, sIFR, etc. but perhaps one of the better options is using @font-face in CSS.



How [...]]]></description>
			<content:encoded><![CDATA[<div class="subm_tut">
<img src="http://themeforest.s3.amazonaws.com/113_fontFace/images/200x200.png" alt="@font-face and 15 Free Fonts You Can Use Today " title="@font-face and 15 Free Fonts You Can Use Today " /></p>
<h2><a href="http://cmstutorials.org/tutorial/218">@font-face and 15 Free Fonts You Can Use Today </a></h2>
<p> <strong>Description:</strong>Fonts are a huge part of design (as we all know). Text on the web needs to be much more dynamic than in any other media. We have solutions like Cufon, sIFR, etc. but perhaps one of the better options is using @font-face in CSS.</p>
</div>
<div class="subm_tut">
<img src="http://www.wprecipes.com/wp-content/uploads/2009/10/resize-pictures-wp.jpg" alt="How to automatically use resized images instead of originals " title="How to automatically use resized images instead of originals " /></p>
<h2><a href="http://cmstutorials.org/tutorial/217">How to automatically use resized images instead of originals </a></h2>
<p> <strong>Description:</strong> This script will replace the uploaded image (if bigger than the larger size defined in your settings) by the large image generated by WordPress to save space in your server, and save bandwidth if you link a thumbnail to the original image, like when a lightbox plugin is used.</p>
</div>
<div class="subm_tut">
<img src="http://nettuts.s3.amazonaws.com/590_menu/200x200.jpg" alt="How to Build and Enhance a 3-Level Navigation Menu " title="How to Build and Enhance a 3-Level Navigation Menu " /></p>
<h2><a href="http://cmstutorials.org/tutorial/205">How to Build and Enhance a 3-Level Navigation Menu </a></h2>
<p> <strong>Description:</strong> Perhaps more than any other topic, I\&#8217;m most often contacted about how to build cross-browser navigation menus. Understandably, the reason is because every web designer has built one at some point, if not during every project! Nonetheless, it can absolutely be a tricky task. In this video tutorial, I&#8217;ll teach you how to build an attractive cross-browser navigation menu; notable features include CSS3 gradients, multiple sub-menus, and jQuery animations.</p>
</div>
<div class="subm_tut">
<img src="http://nettuts.s3.amazonaws.com/571_jsWrong/200x200.jpg" alt="Top 10 Things that JavaScript Got Wrong" title="Top 10 Things that JavaScript Got Wrong" /></p>
<h2><a href="http://cmstutorials.org/tutorial/199">Top 10 Things that JavaScript Got Wrong</a></h2>
<p> <strong>Description:</strong> JavaScript, if only by default, is one of the most popular programming languages available. Over the years, it\&#8217;s been labeled as a nightmare to work with, and, to some extent, this is true! However, more often than not, what people mean to say is that the DOM API is a nightmare. Nevertheless, there are a handful of flat-out errors in the language.</p>
</div>
<div class="subm_tut">
<img src="http://www.wprecipes.com/wp-content/uploads/2009/06/php-curl-wordpress.jpg" alt="How to display custom post types on your WordPress blog homepage" title="How to display custom post types on your WordPress blog homepage" /></p>
<h2><a href="http://cmstutorials.org/tutorial/198">How to display custom post types on your WordPress blog homepage</a></h2>
<p> <strong>Description:</strong> WordPress 3.0 will allow you to create custom post types, so what about being able to list those custom types on your blog homepage? This very useful piece of code will show you how you can do it.</p>
</div>
<div class="subm_tut">
<img src="http://nettuts.s3.amazonaws.com/567_ajaxImplementation/images/200x200.jpg" alt="24 Best Practices for AJAX Implementations " title="24 Best Practices for AJAX Implementations " /></p>
<h2><a href="http://cmstutorials.org/tutorial/196">24 Best Practices for AJAX Implementations </a></h2>
<p> <strong>Description:</strong> Implementing AJAX technology can be a hit or miss thing. Do it well and you\&#8217;ll have users raving over the slickness it provides to the general user experience while if you mess it up, you\&#8217;ll be at the receiving end of their wrath. Here are 24 tips to guide you with implementing AJAX technology within your web application.</p>
</div>
<div class="subm_tut">
<img src="http://nettuts.s3.amazonaws.com/540_mootools/200x200.jpg" alt="Sexy Animated Tabs Using MooTools " title="Sexy Animated Tabs Using MooTools " /></p>
<h2><a href="http://cmstutorials.org/tutorial/176">Sexy Animated Tabs Using MooTools </a></h2>
<p> <strong>Description:</strong> One modern, attractive way of placing a lot of content into a little space is by using a tab system. This tutorial will show you how to create a sexy, animated tab system complete with CSS sprites, cookies, and animated tab swapping.</p>
</div>
<div class="subm_tut">
<img src="http://cmstutorials.org/images/category/4.png" alt="Create an album based image gallery in Drupal 6 using CCK and views " title="Create an album based image gallery in Drupal 6 using CCK and views " /></p>
<h2><a href="http://cmstutorials.org/tutorial/163">Create an album based image gallery in Drupal 6 using CCK and views </a></h2>
<p> <strong>Description:</strong> This tutorial is an addition to the previous tutorial on creating a simple gallery in Drupal 6 using CCK and views.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmstutorials.org/posts/general/top-submitted-tutorials-on-our-site-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
