<?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; quizzin</title>
	<atom:link href="http://www.bin-co.com/blog/tag/quizzin/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>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress Plugin Week</title>
		<link>http://www.bin-co.com/blog/2008/12/wordpress-plugin-week/</link>
		<comments>http://www.bin-co.com/blog/2008/12/wordpress-plugin-week/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 18:24:05 +0000</pubDate>
		<dc:creator>Binny V A</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugin-week]]></category>
		<category><![CDATA[quartz]]></category>
		<category><![CDATA[quizzin]]></category>
		<category><![CDATA[surveys]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=208</guid>
		<description><![CDATA[As my subscribers already know, the week before last was <strong class="highlight">Plugin Week - that's when I publish one WordPress plugin per day for one week</strong>. And I managed to pull it off too - there is a list of all the plugins released on that week...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/10/wordpress_logo.png" alt="" title="WordPress Logo" width="183" height="145" class="alignnone size-full wp-image-136 intro" align="right" /></p>
<p class="intro">As my subscribers already know, the week before last was <strong class="highlight">Plugin Week &#8211; that&#8217;s when I publish one WordPress plugin per day for one week</strong>. And I managed to pull it off too &#8211; there is a list of all the plugins released on that week&#8230;</p>
<dl>
<dt><a href='http://www.bin-co.com/blog/2008/11/eventr-wordpress-plugin/'>Eventr Wordpress Plugin</a></dt>
<dd>
<p><a href="http://www.bin-co.com/tools/wordpress/plugins/eventr/">Eventr plugin</a> lets you use your blog as an event management tool. You can create an event &#8211; the plugin will let people sign up for the event &#8211; it can also show a list of all the attendees. Once the event is done, you can deactivate the event and no more signups will be allowed.</p>
</dd>
<dt><a href='http://www.bin-co.com/blog/2008/11/autofields-wordpress-plugin/'>Autofields WordPress Plugin</a></dt>
<dd>
<p><a href="http://www.bin-co.com/tools/wordpress/plugins/autofields/">AutoFields Plugin</a> will <strong class="highlight">auto fill the Excerpt and add an Image custom field based on the data you entered</strong> into the contents editor. This plugin will set the <strong class="highlight">first paragraph of the content as the excerpt</strong> and take the <strong class="highlight">first image(if there are any) and set it as the &#8216;Image&#8217; custom field</strong>(needed for some themes &#8211; like <a href="http://www.bin-co.com/blog/2008/10/new-design-mimbo-theme/">Mimbo &#8211; my theme</a>). When you hit the publish button, it will check to make sure that excerpt and Image custom fields are filled. If not, it will ask you to confirm before publishing the post.</p>
</dd>
<dt><a href='http://www.bin-co.com/blog/2008/11/pollin-wordpress-plugin/'>Pollin WordPress Plugin</a></dt>
<dd>
<p><strong class="highlight"><a href="http://www.bin-co.com/tools/wordpress/plugins/pollin/">Pollin wordpress plugin</a> will let you add polls</strong> to your blog. It can be shown to your <strong class="highlight">visitors who will be able to vote</strong> in the poll. You can add the poll in a post by including the HTML comment &#60;!&#8211; POLLIN 1 &#8211;&#62; in the post. Here 1 is the ID of the poll to be shown.</p>
</dd>
<dt><a href='http://www.bin-co.com/blog/2008/11/surveys-wordpress-plugin/'>Surveys WordPress Plugin</a></dt>
<dd>
<p>The <strong class="highlight"><a href="http://www.bin-co.com/tools/wordpress/plugins/surveys/">Surveys WordPress plugin</a> lets you add surveys to your blog</strong>. You can let the visitors take surveys and <strong class="highlight">see the result from the admin side</strong>. The user who take the survey can enter their details at the end of the survey &#8211; or leave it as an anonymous result.</p>
</dd>
<dt><a href='http://www.bin-co.com/blog/2008/11/quartz-wordpress-plugin/'>Quartz WordPress Plugin</a></dt>
<dd>
<p><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>
</dd>
<dt><a href='http://www.bin-co.com/blog/2008/11/quizzin-wordpress-plugin/'>Quizzin WordPress Plugin</a></dt>
<dd>
<p><strong class="highlight"><a href="http://www.bin-co.com/tools/wordpress/plugins/quizzin/">Quizzin WordPress Plugin</a> lets you add quizzes to your blog</strong>. This plugin is designed to be as easy to use as possible. Quizzes, questions and answers can be added from the admin side. This will appear in your post if you add a small HTML comment in your post.</p>
</dd>
</dl>
<h2>What I Learned</h2>
<h3>I am helpless without my frameworks</h3>
<p>After I releasing a beta version of my plugin, I got some feedback about those. To my great surprise, I found that I was making a lot of novice PHP mistakes &#8211; stuff like&#8230;</p>
<ul>
<li>not using escaping/validating user input</li>
<li>not using stripslashes</li>
<li>and more&#8230;</li>
</ul>
<p>Needless to say, it was very embarrassing. <strong class="highlight">In all my other applications, <a href="http://www.bin-co.com/php/scripts/iframe/" title="PHP Framework: iFrame">my framework</a> takes care of it</strong> automatically. When I am developing outside <a href="http://www.openjs.com/scripts/jslibrary/" title="My JavaScript Framework - JSL">my framework</a>, I feel like a fish out of water. Now I am slowly adapting to coding without the framework. But it will take more time to get fully used to it.</p>
<h3>I still have a lot to learn about WordPress plugin development</h3>
<p>I only found out about the <code>deltaSql()</code> function after the plugin week. This is a very useful function if you create a distributable web app(like <a href="http://nexty.org/">Nexty</a>). Only problem is that its GPL code &#8211; I am not sure if I can use it in my BSD application. Anyway, I found that function when I was trying to release an update to one of the plugins &#8211; after the plugin week. There is a lot of stuff I still have to learn about WP plugin development.</p>
<h3>Putting strict deadline to write code is not(always) a good thing.</h3>
<p>As I said earlier I made a lot of blunders when creating the plugins. One of the main reason was I was too used to my framework. The other reason was the deadline. It forced me to write some code that was not all that great. But then again, the deadline had its advantages too &#8211; I would not have written the plugins had I not been forced to do that due to the plugin week. In conclusion, <strong class="highlight">you get quantity &#8211; but not quality with deadlines</strong>.</p>
<h3>Learn a bit of Marketing &#8211; even if you are a programmer</h3>
<p>I used to scoff at articles like &#8216;<a href="http://www.codinghorror.com/blog/archives/001177.html">The One Thing Every Software Engineer Should Know [How to market]</a>&#8216; &#8211; but now I understand the rational behind that.</p>
<h3>Don&#8217;t release plugins just before a new WordPress version is going to be made</h3>
<p>I am sure <strong class="highlight">the next wordpress(2.7) will break a few of my plugins</strong>. In hindsight, I should have waited until that release was over before doing the plugin week. Because I did the plugin week before the release of WordPress 2.7, I&#8217;ll <strong class="highlight">have to do a Plugin Fix Week later &#8211; a week when I fix all my plugins for WordPress 2.7</strong> compactability <img src='http://www.bin-co.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3>WordPress suppresses errors by default.</h3>
<p>Something to keep in mind if you are developing a plugin &#8211; SQL errors are suppressed by default. I sent a lot of time trying to figure out the cause of an error before realizing it was an error in the SQL query. You can turn on SQL errors using the code <code>$wpdb->show_errors();</code>.</p>
<h2>Thanks for all your support&#8230;</h2>
<p>Quite a few people supported my effort by linking to me. This is my way of saying &#8216;Thank You&#8217;&#8230;</p>
<ul>
<li><a href="http://www.bloggingtips.com/2008/11/22/6-wordpress-plugins-week/">Binny Releases 6 WordPress Plugins In A Week</a></li>
<li><a href="http://www.offlineblog.net/2008/11/plugin-week-from-binny/">Plugin Week, from Binny</a></li>
<li><a href="http://www.theanand.com/blog/index.php/just-ripples/a-plugin-a-day/">A Plugin A Day!</a></li>
<li><a href="http://www.techzilo.com/wordpress-plugin-week-daily-launch/">Plugin Week promises a daily WordPress plugin for a week</a></li>
<li><a href="http://www.sajithmr.com/plugin-age/">Plugin Age</a></li>
<li><a href="http://aravindjose.com/blog/2008/11/19/five-insanely-useful-wordpress-plugins-released-in-5-days-by-binny/">A Wordpress Plugin A Day</a></li>
<li><a href="http://www.techzilo.com/blogging/plugin-week-wordpress-challenge/">Plugin Week &#8211; one WordPress plugin a day for a week</a></li>
<li><a href="http://blogdesignstudio.com/mini-blog/plugin-week-binny-is-on-plugin-development-rampage/">Plugin Week! Binny is on plugin development rampage</a></li>
</ul>
<p>If I have missed anyone, please add a comment with the link to the post where you talked about plugin week and I&#8217;ll add you to the list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/12/wordpress-plugin-week/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Quizzin WordPress Plugin for Quiz Creation</title>
		<link>http://www.bin-co.com/blog/2008/11/quizzin-wordpress-plugin/</link>
		<comments>http://www.bin-co.com/blog/2008/11/quizzin-wordpress-plugin/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 16:37:29 +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[quiz]]></category>
		<category><![CDATA[quizzin]]></category>
		<category><![CDATA[scirpt]]></category>

		<guid isPermaLink="false">http://www.bin-co.com/blog/?p=197</guid>
		<description><![CDATA[<strong><a href="http://www.bin-co.com/tools/wordpress/plugins/quizzin/">Quizzin WordPress Plugin</a> lets you add quizzes to your blog</strong>. This plugin is designed to be as easy to use as possible. Quizzes, questions and answers can be added from the admin side. This will appear in your post if you add a small HTML comment in your post.]]></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/quizzin/">Quizzin WordPress Plugin</a> lets you add quizzes to your blog</strong>. This plugin is designed to be as easy to use as possible. Quizzes, questions and answers can be added from the admin side. This will appear in your post if you add a small HTML comment in your post.</p>
<p><strong class="highlight">Welcome to Plugin week</strong> &#8211; in Plugin week, I release a new WordPress Plugin each day, every day for one week. This is the sixth (and final) 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>
<li><a href="http://www.bin-co.com/blog/2008/11/quartz-wordpress-plugin/">Quartz WordPress Plugin</a></li>
</ul>
<p><strong class="highlight">Note 1:</strong> Quzzin 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 quite a few.</p>
<h2>Installation</h2>
<ul>
<li>Download the <a href="http://downloads.wordpress.org/plugin/quizzin.zip">zipped file</a>.</li>
<li>Extract and upload the folder to /wp-contents/plugins/ folder</li>
<li>Go to the Plugin management page of WordPress admin section and <strong class="highlight">enable the Quizzin plugin</strong></li>
<li>Go to the Quizzin Management page(<strong class="highlight">Tools &gt; Manage Quiz</strong>) to create or edit Quizzes</li>
<li>After creating the quiz, create a <strong class="highlight">new post and add the HTML comment [QUIZZIN 1]</strong> in it. Here the &#8216;1&#8242; should be the ID of the quiz to be inserted.</li>
</ul>
<h2>Usin&#8217; Quizzin Plugin</h2>
<p>This plugin is pretty straight forward &#8211; after enabling the plugin, go to the Manage Quiz page(Manage &gt; Manage Quiz). All the existing quizzes will be show here. You also have the option of creating a new quiz &#8211; or editing an existing one.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quizzin_manage.png" alt="Quizzin WordPress Plugin - Manage" title="Quizzin WordPress Plugin - Manage" width="409" height="214" class="alignnone size-full wp-image-198" /></p>
<p>Click on the &#8216;Create new Quiz&#8217; link to create a new quiz &#8211; you have to fill in three fields &#8211; the quiz name, the description and the Final Screen.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quizzin_create.png" alt="Quizzin WordPress Plugin - Create" title="Quizzin WordPress Plugin - Create" width="360" height="424" class="alignnone size-full wp-image-199" /></p>
<p>The &#8216;Final screen&#8217; field is very important &#8211; you can customize the result of the quiz using this. Basically, what you fill in here will be shown when a user completes the quiz. You can use several variables here. For example, if you put in the text &#8216;%%SCORE%%&#8217;, it will be replaced by the score the user got in the quiz.</p>
<p>The other possible variables are&#8230;</p>
<table>
<tr>
<th style="text-align: left;">Variable</th>
<th style="text-align: left;">Value</th>
</tr>
<tr>
<td>%%SCORE%%</td>
<td>The number of correct answers</td>
</tr>
<tr>
<td>%%TOTAL%%</td>
<td>Total number of questions</td>
</tr>
<tr>
<td>%%PERCENTAGE%%</td>
<td>Correct answer percentage</td>
</tr>
<tr>
<td>%%GRADE%%</td>
<td>1-10 value. 1 is 10% or less, 2 is 20% or less, and so on.</td>
</tr>
<tr>
<td>%%WRONG_ANSWERS%%</td>
<td>Number of answers you got wrong</td>
</tr>
<tr>
<td>%%RATING%%</td>
<td>A rating of your performance &#8211; it could be &#8216;Failed&#8217;(0-39%), &#8216;Just Passed&#8217;(40%-50%), &#8216;Satisfactory&#8217;, &#8216;Competent&#8217;, &#8216;Good&#8217;, &#8216;Excellent&#8217; and &#8216;Unbeatable&#8217;(100%)</td>
</tr>
<tr>
<td>%%QUIZ_NAME%%</td>
<td>The name of the quiz</td>
</tr>
<tr>
<td>%%DESCRIPTION%%</td>
<td>The text entered in the description field.</td>
</tr>
</table>
<p>Once you have filled out this form, you will be taken to the next page where you can manage your questions. Click on the &#8216;Create new Question&#8217; to add your questions and answers. You have to select one of the answers as the correct one.</p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quizzin_question.png" alt="Quizzin WordPress Plugin - New Question" title="Quizzin WordPress Plugin - New Question" width="376" height="428" class="alignnone size-full wp-image-200" /></p>
<p><img src="http://www.bin-co.com/blog/wp-content/uploads/2008/11/quizzin_mange_questions-300x245.png" alt="Quizzin WordPress Plugin - Mange Questions in Quiz" title="Quizzin WordPress Plugin - Mange Questions in Quiz" width="300" height="245" class="size-medium wp-image-201" /></p>
<p>After you have added all the question, create a new post and add the HTML comment [QUIZZIN 1] &#8211; here the 1 should be the ID of the quiz to be inserted. That&#8217;s it &#8211; you should have a working quiz on your blog now.</p>
<h2>See it in Action</h2>
<p>I have created a <a href="http://wordpress.binnyva.com/plugin/wordpress-quiz-quizzin-plugin-demo/">WordPress Quiz using the Quizzin plugin</a>. Lets see how well you know wordpress. If you take the quiz, post your results in the comments field.</p>
<h2>Credits</h2>
<p>Thanks to <a href="http://www.theanand.com/blog/">&#8216;The&#8217; Anand</a> for suggesting the idea of a Quiz plugin. Also, <a href="http://www.dailyseoblog.com/">Mani Karthik</a> provided a lot of encouragement to create the plugin.</p>
<p>As a matter of fact, Quizzin is the first plugin in the plugin week series. When those two suggested the Quiz plugin, my lazy brain immediately saw the benefits &#8211; I get 3 plugins for the price of one. Once the quiz plugin is created, just remove the correct answer option, limit the question to just one and record the answers &#8211; and you have a Poll plugin. To create a survey plugin, just remove the correct answer option and record the user&#8217;s input. You also need to create a interface to show the results. Voila &#8211; you have a survey plugin. That&#8217;s right &#8211; the <a href="http://www.bin-co.com/blog/2008/11/surveys-wordpress-plugin/">Pollin Plugin</a> and <a href="http://www.bin-co.com/blog/2008/11/surveys-wordpress-plugin/">Surveys plugin</a> are based on the Quizzin Plugin.</p>
<p>The <a href="http://www.bin-co.com/blog/2008/11/eventr-wordpress-plugin/">eventr plugin</a> was created for the <a href="http://www.barcampkerala.org/">Barcamp Kerala</a>. Again, the credit for its suggestion goes to Anand. After that plugin was ready, I am sitting on four unreleased plugins(that is, two plugins and an idea for two more) &#8211; that&#8217;s when the thought of doing a plugin week hit me. The rest, as they say, is history.</p>
<h2>Feedback</h2>
<p>If you have any suggestions or notice any problems with the Quizzin WordPress plugin, post it in the <a href="http://projects.binnyva.com/forum/viewforum.php?f=10">Quizzin forum</a>.</p>
<p>That&#8217;s it! Plugin week is over. 6 days, 6 plugins. Now, I have to go catch up on some much needed sleep. Happy Blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bin-co.com/blog/2008/11/quizzin-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>74</slash:comments>
		</item>
	</channel>
</rss>
