<?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>/home/shakir &#187; html</title>
	<atom:link href="http://www.mohdshakir.net/tag/html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mohdshakir.net</link>
	<description>My Piece Of The Web</description>
	<lastBuildDate>Fri, 16 Jul 2010 15:45:34 +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>CSS for code block</title>
		<link>http://www.mohdshakir.net/2007/12/26/css-for-code-block</link>
		<comments>http://www.mohdshakir.net/2007/12/26/css-for-code-block#comments</comments>
		<pubDate>Wed, 26 Dec 2007 13:04:36 +0000</pubDate>
		<dc:creator>shakir</dc:creator>
				<category><![CDATA[Information Insemination]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.mohdshakir.net/2007/12/26/css-for-code-block</guid>
		<description><![CDATA[If you&#39;re wondering how do I actually get the nicely boxed code block in my blog as this; &#160; then the answer to it is just to have this in my CSS: pre { padding: 10px 15px; margin: 5px 0 15px; border-left: 5px solid #666666; background: #222222; font: 1em/1.5 "Courier News", monospace; color: #bbbbbb; overflow [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#39;re wondering how do I actually get the nicely boxed code block in my blog as this;</p>
<pre>&nbsp;</pre>
<p>then the answer to it is just to have this in my CSS:</p>
<pre>pre {
        padding: 10px 15px;
        margin: 5px 0 15px;
        border-left: 5px solid #666666;
        background: #222222;
        font: 1em/1.5 "Courier News", monospace;
        color: #bbbbbb;
        overflow : auto;
}
</pre>
<p>and later I would just wrap whatever text I want to be in the box with the <em>pre</em> tag in my HTML codes, like this;</p>
<pre>&lt;pre&gt;
This is a code example
&lt;/pre&gt;
</pre>
<p>and should get this output (including the dashed-box):</p>
<pre>This is a code example
</pre>
<p>and that&#39;s all. It&#39;s just so easy..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohdshakir.net/2007/12/26/css-for-code-block/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Smiletag Shoutbox in WordPress</title>
		<link>http://www.mohdshakir.net/2007/12/10/installing-smiletag-shoutbox-in-wordpress</link>
		<comments>http://www.mohdshakir.net/2007/12/10/installing-smiletag-shoutbox-in-wordpress#comments</comments>
		<pubDate>Mon, 10 Dec 2007 00:20:53 +0000</pubDate>
		<dc:creator>shakir</dc:creator>
				<category><![CDATA[Information Insemination]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.mohdshakir.net/2007/12/10/installing-smiletag-shoutbox-in-wordpress</guid>
		<description><![CDATA[Smiletag Shoutbox is the shoutbox that I have on my website&#8217;s sidebar. I&#8217;ve been using it since I was using Joomla for my website, and now that I moved to WordPress, Smiletag is still my shoutbox of choice. Installing it in Joomla is very straightforward, while it&#8217;s not really the case with WordPress, as it [...]]]></description>
			<content:encoded><![CDATA[<p>Smiletag Shoutbox is the shoutbox that I have on my website&#8217;s sidebar. I&#8217;ve been using it since I was using <a href="http://www.joomla.org">Joomla</a> for my website, and now that I moved to <a href="http://www.wordpress.org">WordPress</a>, Smiletag is still my shoutbox of choice.</p>
<p>Installing it in Joomla is very straightforward, while it&#8217;s not really the case with WordPress, as it requires a little bit of coding.</p>
<p>The application can be downloaded from <a href="http://www.hiveminds.co.uk/node/3203">Hivemind&#8217;s website</a> (requires free registration)&nbsp; and it can then be installed as any other WordPress plugin. The shoutbox however doesn&#8217;t immediately show up in the page, and there&#8217;s no option in the admin console for that.</p>
<p>To add it to the page we must add some codes, and in our case, to the sidebar&#8217;s code. Edit it from the admin panel;</p>
<pre>Presentation -> Theme Editor -> sidebar.php</pre>
<p>or can be edited with any editor;</p>
<pre>/path/to/current/template/sidebar.php</pre>
<p>This is an example of a very simple WordPress template with widget support;</p>
<pre lang="php" line="1">
<ul id="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<?php endif; ?>
</ul>
</pre>
<p>The sidebar uses <font face="Courier New">&lt;ul&gt;</font> for its items, and so we need to add <font face="Courier New">&lt;li&gt;</font> element to add our shoutbox (and probably any other static stuff) to it. We also need to add a header (<font face="Courier New">&lt;h2&gt;</font> probably) for the item&#8217;s title, and add the shoutbox&#8217;s code to it. The final sidebar should look something like this;</p>
<pre lang="php" line="1">
<ul id="sidebar">
<li>
<h2>Shoutbox</h2>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" >
        <iframe name="iframetag" marginwidth="0" marginheight="0" src="<?php smiletag_getview(); ?>" width="190" height="300">
                        Your Browser must support IFRAME to view
                        this page correctly
                </iframe>
                </td>
</tr>
<tr>
<td>
        <?php smiletag_getscript(); ?>
<form name="smiletagform" method="post" action="<?php smiletag_getpost(); ?>" target="iframetag">
              Name
<input type="text" name="name"/>
              URL or Email
<input type="text" name="mail_or_url" value="http://" />
              Message<textarea name="message_box" rows="3" cols="20"></textarea>
<input type="hidden" name="message" value="" />
<input type="submit" name="submit" value="Tag!" onclick="clearMessage()" />
<input type="reset"  name="reset" value="Reset" />
            </form>
</td>
</tr>
</table>
</li>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<?php endif; ?>
</ul>
</pre>
<p>This might not exactly be the case with every template, but the idea is about the same. Happy blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohdshakir.net/2007/12/10/installing-smiletag-shoutbox-in-wordpress/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
