<?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/"
	>

<channel>
	<title>Shrud Studios</title>
	<atom:link href="http://shrud.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://shrud.com</link>
	<description>Not teachers...but peers</description>
	<pubDate>Mon, 20 Apr 2009 01:12:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Date Function</title>
		<link>http://shrud.com/tutorials/php/php-date-function/</link>
		<comments>http://shrud.com/tutorials/php/php-date-function/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 01:12:57 +0000</pubDate>
		<dc:creator>IamShipon1988</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://shrud.com/?p=271</guid>
		<description><![CDATA[Title: PHP Date Function
Author: Sazzad Hossain
Language: PHP
Summary: Many people began sending me pm&#8217;s on how to do certain things in php. Instead of answering all of them, I thought why not create a thread where people can post the basic functions of php. Here I am talking about a very important php function: php date. [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">Title:</span> PHP Date Function<br />
<span style="font-weight: bold;">Author:</span> <a class="postlink" onclick="window.open(this.href);return false;" href="http://iamshipon1988.com/">Sazzad Hossain</a><br />
<span style="font-weight: bold;">Language:</span> PHP<br />
<span style="font-weight: bold;">Summary: </span>Many people began sending me pm&#8217;s on how to do certain things in php. Instead of answering all of them, I thought why not create a thread where people can post the basic functions of php. Here I am talking about a very important php function: php date. I use this function for many purpose, but here I&#8217;ll just explain the general purpose/use.</p>
<p><span id="more-271"></span></p>
<p><strong>php date()</strong> - the PHP date() function formats a timestamp to a more readable date and time. The first parameter in the date() function specifies how to format the date/time. It uses letters to represent date and time formats. Some of these formats include:</p>
<p><em>Important Full Date and Time:</em></p>
<p><em>* r: Displays the full date, time and timezone offset. It is equivalent to manually entering date(&#8221;D, d M Y H:i:s O&#8221;)</em></p>
<p><em>Time:</em></p>
<p><em>* a: am or pm depending on the time<br />
* A: AM or PM depending on the time<br />
* g: Hour without leading zeroes. Values are 1 through 12.<br />
* G: Hour in 24-hour format without leading zeroes. Values are 0 through 23.<br />
* h: Hour with leading zeroes. Values 01 through 12.<br />
* H: Hour in 24-hour format with leading zeroes. Values 00 through 23.<br />
* i: Minute with leading zeroes. Values 00 through 59.<br />
* s: Seconds with leading zeroes. Values 00 through 59.</em></p>
<p><em>Day:</em></p>
<p><em>* d: Day of the month with leading zeroes. Values are 01 through 31.<br />
* j: Day of the month without leading zeroes. Values 1 through 31<br />
* D: Day of the week abbreviations. Sun through Sat<br />
* l: Day of the week. Values Sunday through Saturday<br />
* w: Day of the week without leading zeroes. Values 0 through 6.<br />
* z: Day of the year without leading zeroes. Values 0 through 365.</em></p>
<p><em>Month:</em></p>
<p><em>* m: Month number with leading zeroes. Values 01 through 12<br />
* n: Month number without leading zeroes. Values 1 through 12<br />
* M: Abbreviation for the month. Values Jan through Dec<br />
* F: Normal month representation. Values January through December.<br />
* t: The number of days in the month. Values 28 through 31.</em></p>
<p><em>Year:</em></p>
<p><em>* L: 1 if it&#8217;s a leap year and 0 if it isn&#8217;t.<br />
* Y: A four digit year format<br />
* y: A two digit year format. Values 00 through 99.</em></p>
<p><em>Other Formatting:</em></p>
<p><em>* U: The number of seconds since the Unix Epoch (January 1, 1970)<br />
* O: This represents the Timezone offset, which is the difference from Greenwich Meridian Time (GMT). 100 = 1 hour, -600 = -6 hours</em></p>
<p><em></em><br />
I got the list of characters from <a href="http://www.tizag.com/" target="_blank">http://www.tizag.com/</a><br />
For the complete list <a href="http://us.php.net/date" target="_blank">click here</a></p>
<p>So basically all you have to do is call the <strong>date()</strong> function. You can accomplish this by simply using the following call-out after your <strong>&lt;body</strong> tag or wherever you wish for it to appear.<br />
<!--c1--><br />
<code><!--ec1-->&lt;?php<br />
echo date(&#8221;ITEMHERE&#8221;);<br />
?&gt;<!--c2--></code><br />
<!--ec2--><br />
Replace ITEMHERE with your designated character from the quote box above. If you want to display a normal date enter the following</p>
<p><code>&lt;?php<br />
echo date("M. d, Y");<br />
?&gt;<!--c2--> </code><br />
Output for this code is the following: <strong>Dec. 15, 2007</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://shrud.com/tutorials/php/php-date-function/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Shrud Releasing Soon!</title>
		<link>http://shrud.com/news/shrud-releasing-soon/</link>
		<comments>http://shrud.com/news/shrud-releasing-soon/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 20:50:54 +0000</pubDate>
		<dc:creator>IamShipon1988</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://shrud.com/?p=265</guid>
		<description><![CDATA[Hello valued members,
This e-mail is being sent on behalf of the Shrud Studios staff team to let you all know that Shrud Studios is nearly complete and will be releasing to the public very soon. We would like those who wish to donate templates, scripts, tutorials, etc. to Shrud to do so now. Please note [...]]]></description>
			<content:encoded><![CDATA[<p>Hello valued members,</p>
<p>This e-mail is being sent on behalf of the Shrud Studios staff team to let you all know that Shrud Studios is nearly complete and will be releasing to the public very soon. We would like those who wish to donate templates, scripts, tutorials, etc. to Shrud to do so now. Please note that we will modify your template content to have some text that meets our criteria. Please read this thread before submitting any work:</p>
<p><span id="more-265"></span></p>
<p><a href="http://www.shrud.com/forum/viewtopic.php?f=6&amp;t=100" target="_blank">http://www.shrud.com/forum/viewtopic.php?f=6&amp;t=100</a></p>
<p>Regards,<br />
Shrud Studios</p>
<p>PS - PureTM will be releasing some cool designs fairly soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://shrud.com/news/shrud-releasing-soon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Text Over Image</title>
		<link>http://shrud.com/tutorials/php/text-over-image/</link>
		<comments>http://shrud.com/tutorials/php/text-over-image/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 20:41:03 +0000</pubDate>
		<dc:creator>IamShipon1988</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://shrud.com/?p=253</guid>
		<description><![CDATA[Title: Text Over Image
Author: Sazzad Hossain &#38; 2-Job.
Language: PHP
Demo: http://2-job.com/email/
Summary: In this tutorial, we will learn how to create a script that will place text on an image (kind of like a watermark). In this tutorial, we will be using a form which we will use to submit our text. This technique is often used [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">Title:</span> Text Over Image<br />
<span style="font-weight: bold;">Author:</span> <a class="postlink" onclick="window.open(this.href);return false;" href="http://iamshipon1988.com/">Sazzad Hossain</a> &amp; <a class="postlink" onclick="window.open(this.href);return false;" href="http://2-job.com/">2-Job</a>.<br />
<span style="font-weight: bold;">Language:</span> PHP<br />
<span style="font-weight: bold;">Demo: </span>http://2-job.com/email/<br />
<span style="font-weight: bold;">Summary:</span> In this tutorial, we will learn how to create a script that will place text on an image (kind of like a watermark). In this tutorial, we will be using a form which we will use to submit our text. This technique is often used for adding copyright to images and or creating cool image based signatures. To make it easier for us to understand, I will be focusing this tutorial on creating a script that will help us generate a e-mail signature.</p>
<p><span id="more-253"></span></p>
<p><span style="font-weight: bold;">Step 1:</span> The Font<br />
First things first, we will need to upload the font we want to use for the script. I use True Type Font Files for the web. It is the most widely used font type so it&#8217;s recognizable on almost all operating systems. In this tutorial (and on the demo) I have used a font called &#8220;Tahoma.&#8221; This is a font found in all windows computers. But since we are uploading an image of it, it will look the same on all operating systems. I have uploaded Tahoma in the zip file below.</p>
<p><span style="font-weight: bold;">Step 2:</span> The Images<br />
In this tutorial I will teach you how to create an e-mail signature. I will be using one form to create 2 images with the same submitted content. For this purpose, I will create 2 e-mail sigs like the ones below. I have included a PSD file for your convenience.<br />
<a class="image-resize" rel="lytebox" href="http://2-job.com/email/aol1.png"><img src="http://2-job.com/email/aol1.png" alt="Image" /></a> &lt;&lt; aol1.png<br />
<a class="image-resize" rel="lytebox" href="http://2-job.com/email/aol2.png"><img src="http://2-job.com/email/aol2.png" alt="Image" /></a> &lt;&lt; aol2.png</p>
<p><span style="font-weight: bold;">Step 3:</span> The Form Page<br />
Let&#8217;s start with the coding the main page of the script. This page will be the user-end page, meaning that the visitors/users will only see this page. I will split this step into sub-categories.</p>
<p>A. Create a new php based document and call it <span style="font-style: italic;">index.php</span> and open it using your favorite text/code editor.</p>
<p>B. Let&#8217;s start off by writing the following codes. Make sure these lines of codes are above all other codes.</p>
<dl class="codebox">
<dt>Code: </dt>
<dd><code>&lt;?php<br />
error_reporting(E_ALL ^ E_NOTICE);<br />
session_start(); // Start Session<br />
$_SESSION["userid"] = $_POST["userid"];<br />
$_SESSION["end"] = $_POST["end"];<br />
?&gt;</code></dd>
</dl>
<p>* <span style="font-style: italic;"><span style="font-weight: bold;">error_reporting(E_ALL ^ E_NOTICE);</span></span> will report all errors discovered except for <a class="postlink" onclick="window.open(this.href);return false;" href="http://www.php.net/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-notice">E_NOTICE</a>.<br />
* <span style="font-style: italic;"><span style="font-weight: bold;">session_start();</span></span> will do exactly as it says. It will start the current session.<br />
* <span style="font-style: italic;"><span style="font-weight: bold;">$_SESSION["userid"] = $_POST["userid"];</span></span> will use the session ID to remember the last typed userid.<br />
* <span style="font-style: italic;"><span style="font-weight: bold;">$_SESSION["end"] = $_POST["end"];</span></span> will be used to remember the last typed end (in this case the extension; i.e. .com, .net, .co.uk, etc.).</p>
<p>C. Now we need to insert the layout we are going to use. In this case, I am going to be using a really simple layout that includes the Dogtype, meta and style callout just to demonstrate that anything could go there. Treat this portion like a regular HTML template code.</p>
<dl class="codebox">
<dt>Code: </dt>
<dd><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;<br />
&lt;meta http-equiv="Content-Language" content="en-us"&gt;<br />
&lt;style&gt;<br />
body, .textbox, .button  { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; }<br />
&lt;/style&gt;<br />
&lt;title&gt;AOL SigGen [Shrud]&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</code></p>
</dd>
</dl>
<p>D. Between the <span style="font-style: italic;"><span style="font-weight: bold;">&lt;body&gt;</span></span> and the <span style="font-style: italic;"><span style="font-weight: bold;">&lt;body&gt;</span></span> tag we will need to include the form. Let&#8217;s insert the following codes:</p>
<dl class="codebox">
<dt>Code: </dt>
<dd><code>&lt;form name="form" method="post"&gt;<br />
Enter email: &lt;input name="userid" type="text" size="30" class="textbox" style="text-align:right;" value="&lt;?php echo $_POST["userid"]; ?&gt;&#8221;&gt;@aol.&lt;input name=&#8221;end&#8221; type=&#8221;text&#8221; size=&#8221;8&#8243; maxlength=&#8221;6&#8243; class=&#8221;textbox&#8221; value=&#8221;&lt;?php echo $_POST["end"]; ?&gt;&#8221;&gt;&lt;input type=&#8221;submit&#8221; class=&#8221;button&#8221; value=&#8221;Create&#8221;&gt;</code></dd>
</dl>
<p>* <span style="font-weight: bold;"><span style="font-style: italic;">&lt;?php echo $_POST["userid"]; ?&gt;</span></span> will help us recall the last typed userid.<br />
* <span style="font-weight: bold;"><span style="font-style: italic;">&lt;?php echo $_POST["end"]; ?&gt;</span></span> will help us recall the last typed end (the extension).</p>
<p>E. Notice how I did not yet close the form tag. This is because we still have to display the image. The next set of codes will help input the filled information on our image. Let&#8217;s add the following:</p>
<dl class="codebox">
<dt>Code: </dt>
<dd><code>&lt;p&gt;&lt;img border="0" width="200" height="20" src="aol1.php?userid=&lt;?php if (!empty($_POST['userid'])) { echo &#8220;&#8221;.$_POST['userid'].&#8221;"; }else { echo &#8220;username&#8221;; } ?&gt;&amp;end=&lt;?php if (!empty($_POST['end'])) { echo &#8220;&#8221;.$_POST['end'].&#8221;"; }else { echo &#8220;com&#8221;; } ?&gt;&#8221;&gt;&lt;/p&gt;</code></p>
<p>&lt;p&gt;&lt;img border=&#8221;0&#8243; width=&#8221;200&#8243; height=&#8221;20&#8243; src=&#8221;aol2.php?userid=&lt;?php if (!empty($_POST['userid'])) { echo &#8220;&#8221;.$_POST['userid'].&#8221;"; }else { echo &#8220;username&#8221;; } ?&gt;&amp;end=&lt;?php if (!empty($_POST['end'])) { echo &#8220;&#8221;.$_POST['end'].&#8221;"; }else { echo &#8220;com&#8221;; } ?&gt;&#8221;&gt;&lt;/p&gt;<br />
&lt;/form&gt;</p>
</dd>
</dl>
<p>* The above code basically states include the entered text and if not information is entered, automatically input the <span style="font-style: italic;">USERID </span>with <span style="font-weight: bold;">username </span>and the <span style="font-style: italic;">END </span>with <span style="font-weight: bold;">.com</span>.<br />
** Remember to end the form with an <span style="font-weight: bold;"><span style="font-style: italic;">&lt;/form&gt;</span></span> tag.</p>
<p><span style="font-weight: bold;">Step 4:</span> The Backend Work<br />
Now we need to create a series of code that will help us carry out these orders/functions. We have to create a page for each image we wish to write on. It is recommended that the names for the files are the same as the images, however the extension for the files must be php. We can achieve this with the following code:</p>
<dl class="codebox">
<dt>Code: </dt>
<dd><code>&lt;?php<br />
error_reporting(E_ALL ^ E_NOTICE);<br />
session_start();<br />
header("Content-type: image/png");<br />
if ($_SESSION["userid"]){<br />
$userid = $_SESSION["userid"];<br />
}else{<br />
$userid = $_GET['userid'];}<br />
if ($_SESSION["end"]){<br />
$end = $_SESSION["end"];<br />
}else{<br />
$end = $_GET['end'];}<br />
$im = imagecreatefrompng(&#8221;aol1.png&#8221;);<br />
$userid_width = imagettfbbox(9, 0, &#8220;tahoma.ttf&#8221;, $userid);<br />
$userid_start = (200 - ($userid_width[2] + 113));<br />
$color = imagecolorallocate($im, 165, 164, 164);<br />
imagettftext($im, 9, 0, $userid_start, 16, $color, &#8220;tahoma.ttf&#8221;, $userid);<br />
imagettftext($im, 9, 0, 151, 16, $color, &#8220;tahoma.ttf&#8221;, $end);<br />
imagepng($im);<br />
imagedestroy($im);<br />
?&gt;</code></dd>
</dl>
<p>* <span style="font-weight: bold;"><span style="font-style: italic;">$im = imagecreatefrompng(&#8221;aol1.png&#8221;);</span></span> is where we input the name of the file. Just replace the aol1.png with the name of your file.<br />
* Wherever you see <span style="font-weight: bold;"><span style="font-style: italic;">tahoma.ttf</span></span>, replace that with your font name.<br />
* <span style="font-weight: bold;"><span style="font-style: italic;">$userid_start = (200 - ($userid_width[2] + 113));</span></span> - The 200 used in this line is the max allowed width we are going to use. It is also the width of the image we are writing on in pixels.</p>
<p><span style="font-weight: bold;">Step 5:</span> Uploading<br />
We will need to upload the files in the root directory of the folder. The file structure is:<br />
+ Main Directory<br />
+- index.php<br />
+- aol1.php<br />
+- aol2.php<br />
+- aol1.png<br />
+- aol2.png<br />
+- tahoma.ttf</p>
<p>Once you have that done, you are done with writing this script. If you are confused on anything, feel free to visit the official <a class="postlink" onclick="window.open(this.href);return false;" href="http://www.php.net/">php website</a> and view <a class="postlink" onclick="window.open(this.href);return false;" href="http://www.php.net/manual/">their manual</a>.</p>
<p>This tutorial follows the <a class="postlink" onclick="window.open(this.href);return false;" href="../creative-commons/">Creative Commons License</a>.</p>
<blockquote><p><img class="alignnone size-full wp-image-261" title="Download Icon" src="http://www.mannafood.org/images/download_icon.gif" alt="Download Icon" /><!--sizeo:5--><span style="font-size: 18pt; line-height: 100%;"><!--/sizeo--><a rel="nofollow" href="../forum/download/file.php?id=6" target="_blank">Download</a><!--sizec--></span><!--/sizec--><br />
<em><a rel="nofollow" href="../forum/download/file.php?id=6" target="_blank">imgtext.zip</a> -     Includes the complete script, font, images and PSD files.    (240.58 KiB)</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://shrud.com/tutorials/php/text-over-image/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Create your own wordpress theme (integrate a template into wordpress)</title>
		<link>http://shrud.com/tutorials/css/create-your-own-wordpress-theme-integrate-a-template-into-wordpress/</link>
		<comments>http://shrud.com/tutorials/css/create-your-own-wordpress-theme-integrate-a-template-into-wordpress/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:31:19 +0000</pubDate>
		<dc:creator>MrTouz</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://shrud.com/?p=250</guid>
		<description><![CDATA[Title: Creating your own wordpress theme (integrating a template / layout into wordpress)
Language: HTML &#38; CSS
Author: Garo Krikorian
Demo: http://www.bluw.net
Time needed: Around 30minutes if your template meets the &#8216;requirement&#8217;

Author&#8217;s Note :
Well, this tutorial will help you integrate one of your layouts / templates into wordpress. Understand that their are zillion ways of doing this. This is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Title:</strong> Creating your own wordpress theme (integrating a template / layout into wordpress)<br />
<strong>Language:</strong> HTML &amp; CSS<br />
<strong>Author:</strong> Garo Krikorian<br />
<strong>Demo:</strong> http://www.bluw.net<br />
<strong>Time needed:</strong> Around 30minutes if your template meets the &#8216;requirement&#8217;</p>
<p><span id="more-250"></span></p>
<p><strong>Author&#8217;s Note :</strong></p>
<p>Well, this tutorial will help you integrate one of your layouts / templates into wordpress. Understand that their are zillion ways of doing this. This is how I personally do it, how I make it work.</p>
<p>To follow this tutorial you will need some basic HTML &amp; CSS skills. They are not a must but they are really suggested. When I say basic, I mean&#8230; knowing div tags, id&#8217;s, class&#8217;s, opening &amp; closing tags, use of CSS.<br />
<strong><br />
1) The rules of integration</strong></p>
<p>When I know the layout I am designing will be used for Wordpress than I make sure my layout follows certain rules.</p>
<p>1 - Your layout must be valid. Now for some people it should not&#8230; for me it should, you can not start a good tutorial without a valid layout ! What type ? I personally suggest HTML 4.1 CSS 2.1 (or higher if you read this tutorial after 2009 :P). Yes wordpress is coded xHTML 1.0 but for my own reasons I find xHTML useless&#8230; at least for me.</p>
<p>2 - Tableless, Tableless, Tabless. I said it 3 times so you understand it. At first tables should <strong>NOT</strong> be used for coding layouts. Its a bad habit, so NO tables&#8230; use CSS with div&#8217;s. Tables are going to mess things up anyways.</p>
<p>3 - At least have one sidebar. It is not a must, it is <strong>my</strong> must&#8230; I use only ONE sidebar&#8230; at least ONE. This is to make things easier for me. Not 2 or 3&#8230; just ONE. Coding wordpress with 2 3 4 5 6 7 8 9 sidebars is not harder at all but the most common way to do it is with 1 sidebar&#8230; so have one.</p>
<p><strong>2) What you need to know</strong></p>
<p>For this tutorial i will be using the theme called CLASSIC as my source, because it is the one that has &#8216;less&#8217; tweaking and is pretty basic. You can find the CLASSIC theme inside the /wp-content/themes folder inside your WP download.<br />
To start you should have installed Wordpress and have it running good. If you have the .zip than open it and get the CLASSIC theme out or download it from your website so we can start modding it.</p>
<p>(you can install wordpress after you integrated your layout into the CLASSIC theme&#8230; but how are you going to test it ? can&#8217;t&#8230; so have it installed !)</p>
<p>CLASSIC theme is pretty simple, it has few files we are going to use. To make things easier in your head, the CLASSIC theme is one layout separated into pieces. Each one of them is a part of our layout !</p>
<p><strong>3) The pieces we are going to use</strong></p>
<p><span style="color: #0000ff;">header.php</span> : Contains the head of your site (usually from the doc type, style links, header, top navigation. (You might not have a top nav ? it&#8217;s ok&#8230; don&#8217;t put it <img title="Razz" src="http://www.shrud.com/forum/images/smilies/icon_razz.gif" alt=":P" />)</p>
<p><span style="color: #ff0000;">index.php</span> : This is where your actual MAIN content will be, the posts, the pages, the comment links. If you have a division (div) around your main content&#8230; well this is where you are going to put it!</p>
<p><span style="color: #2e8b57;">footer.php</span> : This will hold the footer of your site, from the closing division&#8230; if you opened a container (to center things up&#8230;) and also your footer content and the closing &lt;/body&gt; and closing &lt;/html&gt;</p>
<p><span style="color: #ff8c00;">comment.php</span> : This is how your comments are displayed inside your blog. The input fields, but also the comments that are posted&#8230; you should modify these tags so the comment boxes&#8230; quotes look the same as your site.</p>
<p><span style="color: #9932cc;">sidebar.php</span> : This is your sidebar. This file is a must. You can remove it if you do not have a side bar&#8230; but you have to have it&#8230; for search boxes&#8230; ads&#8230; categories&#8230;</p>
<p>Below is a &#8216;fake&#8217; template&#8230; pretty much how mine is when they come out of basic coding. I did highlight with colors the different divisions and codes so you know which piece goes in which .php file</p>
<blockquote class="uncited">
<div><span style="color: #0000ff;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;title&lt;/title&gt;<br />
&lt;some css and js integration here&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id=&#8221;content&#8221;&gt;<br />
&lt;div id=&#8221;header&gt;<br />
&lt;div id=&#8221;navigation&#8221;&gt;&lt;/div&gt;<br />
&lt;/div&gt;</span><br />
<span style="color: #ff0000;">&lt;div id=&#8221;mysitecontent&#8221;&gt;<br />
&lt;/div&gt;</span><br />
<span style="color: #9932cc;">&lt;div id=&#8221;mysitesidbar&#8221;&gt;<br />
&lt;/div&gt;</span><br />
<span style="color: #2e8b57;">&lt;div id=&#8221;footer&#8221;&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></div>
</blockquote>
<p>Now see how the colors are matched ? that&#8217;s how i would of done it, of course you might not have a header, or a navigation&#8230; but you and ONLY you can determine where everything goes!<br />
Each layouts are different&#8230; if your header is a part of your sidebar than put it there&#8230; but be careful with your css&#8230;</p>
<p><span style="font-weight: bold;">4) So how to do it</span></p>
<p>Since you are not going to use the CLASSIC layout at all&#8230; you need to remove ALL div tags &lt;li&gt;&#8217;s and everything else you are not using (i suggest your navigation on the sidebar uses &lt;li&gt;&#8217;s which will make the coding easier because by default&#8230; the side bar inside WP is coded with li&#8217;s&#8230; you would have to remove to source files and that my friend&#8230; is a headache.</p>
<p>Once they are all removed you can start placing your own. This is easy, again, i suggest forgetting about your content right now&#8230; your layout should be coded but not have text&#8230; it gives you a headache after 5 minutes, when i say CONTENT i mean no fake links, fake &#8216;lorem ipsum&#8217; text, fake ads&#8230; forget about all that&#8230; once coded.. put fake stuff if you enjoy it.</p>
<p>So, to make it clear&#8230; decide what your header would be and place it inside the <span style="color: #0000ff;">header.php</span> and do the same with all other files, see if you coded your layout like the one i did above&#8230; (a bit more detailed of course) you just need to know where things are going, copy the footer section of your layout&#8230; paste it into the <span style="color: #2e8b57;">footer.php</span> of your site</p>
<p>It is basically just replacing old code tags by the new ones, to make my personal life easier i try to make my layout pretty much similar to the CLASSIC layout.</p>
<p>Once the replacing is done you can save all. Your layout should be good to go&#8230; upload and check it out !</p>
<p><span style="font-weight: bold;">5) Common mistake / error !</span></p>
<p>Now i will explain an ISSUE that happens&#8230; quite a lot with me&#8230; actually&#8230; ALL THE FREAKING TIME !</p>
<p><span style="font-weight: bold;">- CSS not working<br />
- IMAGES not displayed</span></p>
<p>Yes it happens quite a lot because what usually people do when they try to &#8216;integrate&#8217; their CSS files they never put a direct url but only :</p>
<p><code>&lt;link rel="stylesheet" href="style.css" type="text/css"&gt;</code><br />
But what does that do ? that tells that the CSS file is next to the index.php&#8230; you did not define any folder or anything else so it assumes it&#8217;s in the same directory&#8230; and you did put the <span style="font-weight: bold;">style.css</span> next to the index.php which are both inside the CLASSIC folder.<br />
But we are forgetting something that WP does. When it opens your theme it puts your index.php at the root folder of your host. Meaning when we go to your site the theme is not inside /wp-content/themes/classic its at the root folder of your site, but inside the very first folder there are NO style.css (it&#8217;s inside the /wp-content/themes/classic) so your site is LOST it can NOT find the style.css.</p>
<p>All that meaning that your style.css should NOT be inside the CLASSIC folder but at the root folder of your site !<br />
__</p>
<p>Now for your images, since your style is not inside the CLASSIC folder&#8230; your images should not be ! the /images (or what ever you call your image folder) folder should be next to the style.css. Because what people do is put :</p>
<dl class="codebox">
<dt>Code: <a onclick="selectCode(this); return false;" href="http://www.shrud.com/forum/viewtopic.php?f=9&amp;t=105#">Select all</a></dt>
<dd><code>background-image:url(/images/this.png);</code></dd>
</dl>
<p>Knowing that the CSS will go to the images folder and finding the this.png file, but if you forgot&#8230; your images are inside the /wp-content/themese/classic/ folder !!!</p>
<p>Now for people not wanting to MOVE the CSS and the IMAGE folder&#8230; there is a solution :</p>
<dl class="codebox">
<dt>Code: <a onclick="selectCode(this); return false;" href="http://www.shrud.com/forum/viewtopic.php?f=9&amp;t=105#">Select all</a></dt>
<dd><code>&lt;link rel="stylesheet" href="http://www.mysite.com/wp-content/themes/classic/style.css" type="text/css"&gt;</code></dd>
</dl>
<p>And inside your CSS file, when you add a :</p>
<dl class="codebox">
<dt>Code: <a onclick="selectCode(this); return false;" href="http://www.shrud.com/forum/viewtopic.php?f=9&amp;t=105#">Select all</a></dt>
<dd><code>background-image:url(/images/this.png);</code></dd>
</dl>
<p>You should replace it by :</p>
<dl class="codebox">
<dt>Code: <a onclick="selectCode(this); return false;" href="http://www.shrud.com/forum/viewtopic.php?f=9&amp;t=105#">Select all</a></dt>
<dd><code>background-image:url(http://www.mysite.com/wp-content/themese/classic/images/this.png);</code></dd>
</dl>
<p><span style="font-weight: bold;">6) Final Note</span></p>
<p>What i tried to explain inside this tutorial is how the template is organized inside Wordpress. How your template should be organized for a better integration. I tried to highlight the different parts of codes with the different .php files, and tried to explain why a common mistake happens with Wordpress !</p>
]]></content:encoded>
			<wfw:commentRss>http://shrud.com/tutorials/css/create-your-own-wordpress-theme-integrate-a-template-into-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tutorial Survival Guide</title>
		<link>http://shrud.com/tutorials/tutorial-survival-guide/</link>
		<comments>http://shrud.com/tutorials/tutorial-survival-guide/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 21:20:17 +0000</pubDate>
		<dc:creator>IamShipon1988</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://shrud.com/?p=208</guid>
		<description><![CDATA[Guide to Writing Good Tutorials
By: Sazzad Hossain &#38; Shrud Studios

What is a tutorial?
We all know that the computer presents new concepts and skills through interactive text, illustrations, descriptions, questions and problems. Information is sequenced to build on previously learned concepts, and often provides feedback and guidance. So to keep others upto par and help them [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>Guide to Writing Good Tutorials<br />
</strong>By: Sazzad Hossain &amp; Shrud Studios<strong></strong></p>
<p><span id="more-208"></span></p>
<p><strong>What is a tutorial?</strong><br />
We all know that the computer presents new concepts and skills through interactive text, illustrations, descriptions, questions and problems. Information is sequenced to build on previously learned concepts, and often provides feedback and guidance. So to keep others upto par and help them understand &#8220;how to do&#8221; something is what a tutorial is. In short terms, tutorial is a set of ordered instruction that teaches someone something new. Tutorials can be on almost any subject. It can be on how to create a new solar powered motor, write a research paper, to build a robot, or how to survive your wife. But for the sake of &#8220;keeping the flow,&#8221; on this forum we will keep it relating to the WEB and PROGRAMMING in general.</p>
<p><strong>Know Your Information</strong><br />
I know you have heard this before but this is very important. In order to write a good tutorial, you must know your material. Do you not hate it when you go to class and have to listen to a professor who knows nothing at all about the subject. Why would you want those dedicated members to feel the same way about your writing? Even if you have a bad grammar, no image, or sense of making it appealing, it still makes sense is considered a decent tutorial.</p>
<p><strong>Organization and Steps</strong><br />
A tutorial is used to teach people how to do things &#8220;step-by-step.&#8221; So if you do not organize your content in a nice manner, how will they learn? Will they not make mistakes? A tutorial needs all the information on the subject in the correct order to help the reader recreate the experience and the item talked about. Include steps to make the life of the reader easier to keep track of things. One good method of writing a tutorial is to include details and images so that the users can compare what they have with what they should have. Please do note that a picture is indeed worth a thousand words and people just love pictures.</p>
<p><strong>Protect Your Work</strong><br />
Although tutorials are generally created to teach the public for free, many sites offer premium service where you are required to pay. I am a man of OpenSource and love to release things for free of charge. But that becomes a problem as others can easily steal my work. To prevent such a thing, I like to include a nice header. In addition to it protecting my work, it will also give the reader a brief information on what I will be writing about. In general, the following items are what I would include in any tutorial:</p>
<ul>
<li>-  Name of the tutorial</li>
<li>-  Name of the author</li>
<li>-  Tutorial Type (language, subject)</li>
<li>-  Skill Level Required</li>
<li>-  Authors URL</li>
<li>-  Demo URL</li>
<li>-  Brief Description</li>
</ul>
<p><strong>Make It Fun!!!</strong><br />
Make the tutorial fun and not something people would fall a sleep over. Tutorial is meant to teach something not to put someone to sleep.</p>
<p><strong>Same of a &#8220;Good&#8221; Tutorial</strong><br />
<a href="http://shrud.com/tutorials/php/how-to-use-includes/" target="_blank">Click here</a> to view the tutorial.</p>
<p><strong>Credits</strong><br />
**How To Write A Good Tutorial. King Tuts. <a href="http://kingtuts.blogspot.com/2006/02/how-to-write-good-tutorial.html" target="_blank">King Tuts: How To Write A Good Tutorial</a></p>
]]></content:encoded>
			<wfw:commentRss>http://shrud.com/tutorials/tutorial-survival-guide/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
