<?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>Bin-Blog &#187; quotes</title>
	<atom:link href="http://www.bin-co.com/blog/tag/quotes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bin-co.com/blog</link>
	<description>Learn about the latest in Web Development - as soon as I do.</description>
	<lastBuildDate>Tue, 13 Oct 2009 18:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Quartz WordPress Plugin</title>
		<link>http://www.bin-co.com/blog/2008/11/quartz-wordpress-plugin/</link>
		<comments>http://www.bin-co.com/blog/2008/11/quartz-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 18:05:30 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-week]]></category>
		<category><![CDATA[quartz]]></category>
		<category><![CDATA[quotes]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=189</guid>
		<description><![CDATA[<strong class="highlight"><a href="http://www.bin-co.com/tools/wordpress/plugins/quartz/">Quartz Plugin</a> lets you show random quotes/tips/links/pictures/something else to visitors</strong>. These quotes can be added from the admin side. You can add these one by one - or you can bulk import the stuff from a text file.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/10/wordpress_logo.png" alt="WordPress Plugin Week" title="WordPress Logo" width="183" height="145" class="alignnone size-full wp-image-136 intro" align="right" /></p>
<p class="intro"><strong class="highlight"><a href="http://www.bin-co.com/tools/wordpress/plugins/quartz/">Quartz Plugin</a> lets you show random quotes/tips/links/pictures/something else to visitors</strong>. These quotes can be added from the admin side. You can add these one by one &#8211; or you can bulk import the stuff from a text file.</p>
<p>For those of you who are not in the know, this is the Plugin Week. Actually, this is the final day of the plugin week. In Plugin week, I release a new WordPress Plugin each day, every day for one week. This is the fifth plugin in that series. The plugins released so far are&#8230;</p>
<ul>
<li><a href="http://www.bin-co.com/blog/2008/11/eventr-wordpress-plugin/">Eventr WordPress Plugin</a></li>
<li><a href="http://www.bin-co.com/blog/2008/11/autofields-wordpress-plugin/">Autofields WordPress Plugin</a></li>
<li><a href="http://www.bin-co.com/blog/2008/11/pollin-wordpress-plugin/">Pollin WordPress Plugin</a></li>
<li><a href="http://www.bin-co.com/blog/2008/11/surveys-wordpress-plugin/">Surveys WordPress Plugin</a></li>
</ul>
<p><strong class="highlight">Note 1:</strong> Quartz is a beta plugin(as are most of the plugins released in the Plugin Week) &#8211; so watch out for bugs. And trust me, there will be a lot of them.</p>
<p><strong class="highlight">Note 2:</strong> I would recommend that you don&#8217;t install Quartz right now. It has not yet been accepted into the <a href="http://wordpress.org/extend/plugins/quartz/">WordPress Plugin Repository</a>. You can install it using the zip file I provide below &#8211; but then there will be some problems with auto updating of the plugin. Its <strong class="highlight">better to wait until WordPress accepts the plugin before installing it</strong>. I&#8217;ll update this section when that happens. <strong>UPDATE:</strong> WordPress have accepted Quartz &#8211; feel free to install it now.</p>
<h2>Installation</h2>
<ul>
<li>Download the <a href="http://downloads.wordpress.org/plugin/quartz.zip">zipped file</a>.</li>
<li>Extract and upload the contents of the folder to /wp-contents/plugins/ folder</li>
<li>Go to the Plugin management page of WordPress admin section and enable the Quartz plugin</li>
<li>Go to the Quotes Management page(Tools &gt; Manage Quote) to create or edit Quotes</li>
<li>You can add the Quartz widget by going to the widget area and drag-dropping it into your sidebar. Add the code &lt;?php if(function_exists(&#8216;quartz_show&#8217;)) quartz_show() ?&gt; in your template &#8211; this will display the quote at that location.</li>
</ul>
<h2>Usage</h2>
<p>The most apparent use of the plugin is to <strong class="highlight">show random quotes to your visitors</strong>. Something like the famous Hello Dolly plugin &#8211; but for the client side. It also useful for showing small tips &#8211; say you are running a <a href="http://lindesk.com/">linux blog</a>. You can insert useful <a href="http://txt.binnyva.com/">linux commands</a> with a small description into the quotes database &#8211; and the visitors will see random linux commands when they visit a new page. You can even upload image and add that to the database &#8211; users will see the a random image on each visit.</p>
<p>After installing the plugin, go to the Quartz Management page(Manage > Manage Quote). Now you can create new quotes.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quartz_manage.png" alt="Quartz WordPress Plugin - Manage" title="Quartz WordPress Plugin - Manage" width="384" height="226" class="alignnone size-full wp-image-190" /></p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quartz_edit.png" alt="Quartz WordPress Plugin - Edit Quote" title="Quartz WordPress Plugin - Edit Quote" width="412" height="550" class="alignnone size-full wp-image-191" /></p>
<p>A better and easier way to do this is to <strong class="highlight">use the bulk import method</strong>. You can use that to import a text file full of quotes into the database. Each line in the text file must have a quote in it. An example is the <a href="http://binnyva.com/pro/dos/boot_booster/quotes/celebrity.txt">Celebrity Quotes File</a>. You can import that file by entering the value &#8216;http://binnyva.com/pro/dos/boot_booster/quotes/celebrity.txt&#8217; in the &#8216;Remote Text File&#8217; field.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quartz_import.png" alt="Quartz WordPress Plugin - Edit Quote" title="Quartz WordPress Plugin - Import Quote" width="352" height="451" class="alignnone size-full wp-image-192" /></p>
<p>After the quotes are ready, you have to modify the template code a bit. Go to the <strong class="highlight">location in the template where you want to show the quote and add the code</strong>&#8230;</p>
<pre><code class="php">&lt;?php quartz_show() ?&gt;</code></pre>
<p>This function can take two arguments&#8230;</p>
<dl>
<dt>$quotes_count</dt>
<dd>The first argument decides how many quotes must be shown. It is an optional argument and it defaults to 1.</dd>
<dt>$quotes_joiner</dt>
<dd>If you are showing more than 1 quote, use this string to join the quotes. The value defaults to &#8216;&lt;br /&gt;&#8217;.</dd>
</dl>
<h3>Examples</h3>
<pre><code class="php">&lt;?php quartz_show(3, '&lt;br /&gt;') ?&gt;</code></pre>
<p>If you are trying to insert the quotes into the sidebar, this might be the way(might be different depending on your themes code)&#8230;</p>
<pre><code class="php">&lt;li&gt;&lt;h2&gt;Random Quip&lt;/h2&gt;
	&lt;ul&gt;
	&lt;li&gt;&lt;?php if(function_exists('quartz_show')) quartz_show(2, '&lt;/li&gt;&lt;li&gt;') ?&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;
</code></pre>
<h2>See it in Action</h2>
<p>You will see it running in my <a href="http://wordpress.binnyva.com/">WordPress Demo Blog</a> &#8211; look at the sidebar under the heading &#8216;Random Quips&#8217;. It don&#8217;t look all that refined &#8211; but that&#8217;s the themes fault. And I was too lazy to fix the theme <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quartz_result.png" alt="Quartz WordPress Plugin - Final Result" title="Quartz WordPress Plugin - Final Result" width="233" height="240" class="alignnone size-full wp-image-193" /></p>
<h2>Feedback</h2>
<p>If you have any suggestions or notice any problems with the plugin, post it in the <a href="http://projects.binnyva.com/forum/viewforum.php?f=15">Quartz forum</a>.</p>
<h2>Last Words?</h2>
<p>This should be the last plugin of my Plugin Week &#8211; but since you have been such a wonderful audience, <strong class="highlight">I&#8217;ll throw in one more &#8211; as a bonus. It will be released tomorrow</strong>. Until then!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/11/quartz-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

