<?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>PHP Magic Book - Free PHP Scripts, Tutorials and Downloads &#187; CMS</title>
	<atom:link href="http://www.phpmagicbook.com/category/cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmagicbook.com</link>
	<description>PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips</description>
	<lastBuildDate>Tue, 15 Jun 2010 13:22:30 +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>Free Social CMS like Digg, Mixx, Reddit</title>
		<link>http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/</link>
		<comments>http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 13:22:30 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[Content Management]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[social community]]></category>
		<category><![CDATA[social networking software]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=531</guid>
		<description><![CDATA[After using a lot of social networking websites and communities have you ever wanted to have your own social website? Here is a solution for you. You do not need any kind of PHP or HTML skills to start with this one. Pligg is an open source social CMS (Content Management System) that you can [...]<p><a href="http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/">Free Social CMS like Digg, Mixx, Reddit</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.phpmagicbook.com/wp-content/uploads/2010/06/pligg-642x432.jpg" alt="http://digitalnature.ro/projects/mystique/" title="pligg" width="642" height="432" class="aligncenter size-thumbnail wp-image-577" /></p>
<p>After using a lot of social networking websites and communities have you ever wanted to have your own social website? Here is a solution for you. You do not need any kind of PHP or HTML skills to start with this one. Pligg is an open source social CMS (Content Management System) that you can download and use for free. Pligg CMS provides social networking software that encourages visitors to register on your website so that they can submit content and connect with other users. Pligg creates websites where stories are created and voted on by members, not website editors. Use Pligg content management system to start your own social networking community in minutes.</p>
<p><span id="more-531"></span></p>
<p>Pligg was created as a social networking CMS. While most content management systems are designed for only a handful of authors, Pligg CMS was designed to manage a site with an unlimited number of authors. All of these registered users are in control of the website&#8217;s content. It is a user driven CMS that relies on independent authors&#8217; content and participation to manage news articles.</p>
<p>Pligg started as a simple CMS to let users submit and vote on news articles. Vote on stories that interest you and articles that receive enough votes will appear on the homepage of your Pligg site. Pligg offers a 5 star method for voting or the more traditional numbered voting as seen on sites like Digg, Mixx, or Reddit.</p>
<p>Features include groups, private messaging, advanced comment system, user profiles, modules system, smarty templates, easy upgrades, rss feeds, seo enhanced, multiple languages</p>
<p><a rel="nofollow" target="_blank" href="http://www.pligg.com/">Download Pligg</a><br />
<a rel="nofollow" target="_blank" href="http://digitalnature.ro/projects/mystique/">Free Pligg Premium Quality Template [ mystique ]</a></p>
<p><a href="http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/">Free Social CMS like Digg, Mixx, Reddit</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/smarty-for-smart-developers/" title="Smarty For Smart Developers">Smarty For Smart Developers</a></li><li><a href="http://www.phpmagicbook.com/open-source-small-forum/" title="Open Source PHP Based Great Forum &#8211; PHPBB Alternative">Open Source PHP Based Great Forum &#8211; PHPBB Alternative</a></li><li><a href="http://www.phpmagicbook.com/quick-edit-little-file-based-php-cms/" title="Quick Edit &#8211; Little File Based PHP CMS">Quick Edit &#8211; Little File Based PHP CMS</a></li><li><a href="http://www.phpmagicbook.com/add-view-delete-record/" title="Add, View, Delete Record Using PHP">Add, View, Delete Record Using PHP</a></li><li><a href="http://www.phpmagicbook.com/greeting-cards-system/" title="Download Greeting Cards System in PHP">Download Greeting Cards System in PHP</a></li><li><a href="http://www.phpmagicbook.com/hello-world/" title="Hello world!">Hello world!</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smarty For Smart Developers</title>
		<link>http://www.phpmagicbook.com/smarty-for-smart-developers/</link>
		<comments>http://www.phpmagicbook.com/smarty-for-smart-developers/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 20:10:23 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[smarty]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=298</guid>
		<description><![CDATA[SMARTY &#8211; What &#038; Why SMARTY is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person. [...]<p><a href="http://www.phpmagicbook.com/smarty-for-smart-developers/">Smarty For Smart Developers</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.webstylepress.com/wp-content/uploads/2008/10/smarty-logo.jpg" alt="" title="smarty-logo" width="250" height="66" class="alignnone size-full wp-image-318" /></p>
<h4>SMARTY &#8211; What &#038; Why</h4>
<p><a rel="nofollow" target="_blank" href="http://www.smarty.net/" terget="_blank">SMARTY</a> is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.</p>
<p><span id="more-298"></span></p>
<h4>Some of Smarty&#8217;s features</h4>
<ul>
<li>Smarty is extremely fast.</li>
<li>It is efficient since the PHP parser does the dirty work.</li>
<li>No template parsing overhead, only compiles once.</li>
<li>It is smart about recompiling only the template files that have changed.</li>
<li>You can easily create your own custom functions and variable modifiers, so the template language is extremely extensible.</li>
<li>Configurable tag syntax.</li>
<li>The if elseif constructs are passed to the PHP parser, so the if expression syntax can be as simple or as complex an evaluation as you like.</li>
<li>Allows unlimited nesting of sections, if&#8217;s etc.</li>
<li>It is possible to embed PHP code right in your template files, although this may not be needed (nor recommended) since the engine is so customizable.</li>
<li>Built-in caching support. (wow. No more low resources server burden).</li>
<li>Arbitrary template sources.</li>
<li>Custom cache handling functions.</li>
<li>Plugin architecture.</li>
<li>Re usability of code.</li>
</ul>
<p>Smarty requires a web server running PHP 4.0.6 or greater. </p>
<h4>Required Smarty library files (all in lib folder)</h4>
<p><strong>libs/</strong><br />
Smarty.class.php<br />
Smarty_Compiler.class.php<br />
Config_File.class.php<br />
debug.tpl<br />
internals/*.php (all of them)<br />
plugins/*.php (all of them)</p>
<h4>Smarty Website Structure</h4>
<p>Following folders are essential in a smarty based website. templates has tpl files and templates_c stores cached pages (It is website cache). Smarty contains lib folder containing smarty software. Name of these default folders can be changed and it is recommended to change these and tell script accordingly templates directory and cache directory and location of Smarty.class.php.</p>
<p><strong>templates_c<br />
templates<br />
Smarty<br />
</strong></p>
<p>Images and css folders you will have to create, as every website has these. With these you can create a configs folder to store configuration files.</p>
<p><strong>images<br />
css<br />
configs<br />
</strong></p>
<p>Here&#8217;s how you create an instance of Smarty in your PHP scripts:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Smarty.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Smarty<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h4>How Smarty Works</h4>
<p>After you have created above mentioned structure, the concept is to create PHP pages and place those in root and in templates folder create tpl files for these pages. There will be index.php file containing PHP code and variables at root directory of website and there will be index.tpl file in templates folder containing html code, design part of website and smarty code. We send PHP variables from index.php to index.tpl smarty code and then it mix things together in simple words and compile the page for you and build its cache too.</p>
<h4>Sample index.php Code</h4>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'Smarty/libs/Smarty.class.php'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// $smarty-&gt;caching = false;</span>
<span style="color: #000088;">$smarty</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Smarty<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index.tpl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>OR</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// error_reporting(E_ALL ^ E_NOTICE);</span>
<span style="color: #666666; font-style: italic;">// display errors</span>
<span style="color: #666666; font-style: italic;">// @ini_set(&quot;display_errors&quot;, &quot;1&quot;);</span>
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'Smarty/libs/Smarty.class.php'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// $smarty-&gt;caching = false;</span>
<span style="color: #000088;">$smarty</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Smarty<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HOME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;class='selected'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'index.tpl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Above we are sending variable from PHP to smarty for navigational element HOME. In tpl file we will write some smarty code which will apply class selected to that element.</p>
<h4>Sample index.tpl Code</h4>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">{include file=&quot;header.tpl&quot; title=&quot;header&quot;}
{include file=&quot;body.tpl&quot; title=&quot;body&quot;}
{include file=&quot;footer.tpl&quot; title=&quot;footer&quot;}</pre></div></div>

<p>Above we included header, body and footer code in single index page.</p>
<p>Download smarty based website. Just upload it at your PHP enabled server or copy files to WAMP local server and browse index.php to see smarty in action.</p>
<p><a rel="nofollow" target="_blank" href='http://www.webstylepress.com/wp-content/uploads/2008/10/smarty-example.rar'>Download Smarty Example</a></p>
<p><a href="http://www.phpmagicbook.com/smarty-for-smart-developers/">Smarty For Smart Developers</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/" title="Free Social CMS like Digg, Mixx, Reddit">Free Social CMS like Digg, Mixx, Reddit</a></li><li><a href="http://www.phpmagicbook.com/quick-edit-little-file-based-php-cms/" title="Quick Edit &#8211; Little File Based PHP CMS">Quick Edit &#8211; Little File Based PHP CMS</a></li><li><a href="http://www.phpmagicbook.com/add-view-delete-record/" title="Add, View, Delete Record Using PHP">Add, View, Delete Record Using PHP</a></li><li><a href="http://www.phpmagicbook.com/greeting-cards-system/" title="Download Greeting Cards System in PHP">Download Greeting Cards System in PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/smarty-for-smart-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download Greeting Cards System in PHP</title>
		<link>http://www.phpmagicbook.com/greeting-cards-system/</link>
		<comments>http://www.phpmagicbook.com/greeting-cards-system/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 15:37:00 +0000</pubDate>
		<dc:creator>Hiroshi</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Content Management]]></category>
		<category><![CDATA[Greeting Cards II]]></category>
		<category><![CDATA[No Database]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[greeting cards]]></category>

		<guid isPermaLink="false">http://www.phpmagicbook.com/?p=90</guid>
		<description><![CDATA[Here is a simple Greeting cards System. No database required. PHPECard is very smooth and easy yet powerful PHP based Greeting Cards System. You just have to upload images and thumbnails and rest it does by itself. Select image from gallery and send it as an ECard in a fly. PHP ECard CMS Download Download [...]<p><a href="http://www.phpmagicbook.com/greeting-cards-system/">Download Greeting Cards System in PHP</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Here is a simple Greeting cards System. No database required. PHPECard is very smooth and easy yet powerful PHP based Greeting Cards System. You just have to upload images and thumbnails and rest it does by itself. Select image from gallery and send it as an ECard in a fly.</p>
<p><span id="more-187"></span></p>
<p><a href='http://www.phpmagicbook.com/wp-content/uploads/2008/06/phpecard.rar' class="download">PHP ECard CMS Download</a></p>
<p><a href="http://www.phpmagicbook.com/greeting-cards-system/">Download Greeting Cards System in PHP</a> is a post from: <a href="http://www.phpmagicbook.com">PHP Magic Book - Free PHP Scripts, Tutorials and Downloads</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://www.phpmagicbook.com/social-cms-digg-mixx-reddit/" title="Free Social CMS like Digg, Mixx, Reddit">Free Social CMS like Digg, Mixx, Reddit</a></li><li><a href="http://www.phpmagicbook.com/smarty-for-smart-developers/" title="Smarty For Smart Developers">Smarty For Smart Developers</a></li><li><a href="http://www.phpmagicbook.com/quick-edit-little-file-based-php-cms/" title="Quick Edit &#8211; Little File Based PHP CMS">Quick Edit &#8211; Little File Based PHP CMS</a></li><li><a href="http://www.phpmagicbook.com/add-view-delete-record/" title="Add, View, Delete Record Using PHP">Add, View, Delete Record Using PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.phpmagicbook.com/greeting-cards-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.836 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-30 16:30:43 -->
