<?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>Dalank Blog</title>
	<atom:link href="http://dalank.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://dalank.com/blog</link>
	<description>Solutions, Tips &#38; Tricks.</description>
	<lastBuildDate>Thu, 05 Jan 2012 12:09:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MSN Keeps Signing out</title>
		<link>http://dalank.com/blog/?p=332</link>
		<comments>http://dalank.com/blog/?p=332#comments</comments>
		<pubDate>Thu, 05 Jan 2012 12:09:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=332</guid>
		<description><![CDATA[MSN keeps signing out? Shut down Windows Live Messenger. Click Start Click Run Enter: %appdata%\microsoft Click OK. Then right click the MSN Messenger folders, choose Delete, and then confirm the operation.]]></description>
			<content:encoded><![CDATA[<p>MSN keeps signing out?</p>
<p>Shut down Windows Live Messenger.</p>
<p>Click Start<br />
Click Run<br />
Enter: %appdata%\microsoft<br />
Click OK.</p>
<p>Then right click the MSN Messenger folders, choose Delete, and then confirm the operation.</p>]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=332</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ATA linksys SPA-3102 configuring landline access dialplan</title>
		<link>http://dalank.com/blog/?p=328</link>
		<comments>http://dalank.com/blog/?p=328#comments</comments>
		<pubDate>Sun, 06 Nov 2011 12:39:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Voip]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=328</guid>
		<description><![CDATA[To Configure Linksys Spa-3102 to be able to use land line beside the voip line go to Line 1 in advanced mode in dial plan type this code: (&#60;#9,:&#62;xx.&#60;:@gw0&#62;&#124;xx.) thats example to switch between voip line and landline the access here is #9.]]></description>
			<content:encoded><![CDATA[<p>To Configure Linksys Spa-3102 to be able to use land line beside the voip line go to Line 1 in advanced mode in dial plan type this code:</p>
<p>(&lt;#9,:&gt;xx.&lt;:@gw0&gt;|xx.)</p>
<p>thats example to switch between voip line and landline the access here is #9.</p>]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=328</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Language for Windows 7 Premium &amp; Professional</title>
		<link>http://dalank.com/blog/?p=324</link>
		<comments>http://dalank.com/blog/?p=324#comments</comments>
		<pubDate>Thu, 29 Sep 2011 12:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=324</guid>
		<description><![CDATA[Installing new language step by step 1. Run Vistalizator, allow UAC prompt if requested (it is enabled by default). 2. Press Add languages and open language pack(s): MUI (*.exe, *.cab) or LIP (*.mlc). 3. Wait for the language pack to be loaded, its integrity will be verified as well. 4. You may optionally change the<a href="http://dalank.com/blog/?p=324"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<h2>Installing new language step by step</h2>
<p>1. Run Vistalizator, allow <strong>UAC</strong> prompt if requested (it is enabled by default).</p>
<p><img src="http://www.froggie.sk/img/2.30/screen01.png" alt="screenshot1" /></p>
<p>2. Press <strong>Add languages</strong> and open language pack(s): MUI (*.exe, *.cab) or LIP (*.mlc).</p>
<p><img src="http://www.froggie.sk/img/2.30/screen02.png" alt="screenshot2" /></p>
<p>3. Wait for the language pack to be loaded, its integrity will be verified as well.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen03.png" alt="screenshot3" /></p>
<p>4. You may optionally change the installation mode in the table. Then press <strong>Install language(s)</strong>.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen04.png" alt="screenshot4" /></p>
<p>5. Wait for the installation process to complete: <strong>Express</strong> or <strong>Internal</strong> mode.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen05.png" alt="screenshot5" /></p>
<p><img src="http://www.froggie.sk/img/2.30/screen06.png" alt="screenshot6" /></p>
<p>6. Confirm to change the current display language to the new language (can be done later).</p>
<p><img src="http://www.froggie.sk/img/2.30/screen07.png" alt="screenshot7" /></p>
<p>7. <strong>Express languages</strong> usually need to be updated after the very installation (steps 7-10).</p>
<p><img src="http://www.froggie.sk/img/2.30/screen08.png" alt="screenshot8" /></p>
<p>8. Press <strong>Update languages</strong>: the list of necessary updates is shown, see details in Help.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen09.png" alt="screenshot9" /></p>
<p>9. Download and open the required Windows update standalone installer <strong>within Vistalizator</strong>.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen10.png" alt="screenshot10" /></p>
<p><img src="http://www.froggie.sk/img/2.30/screen11.png" alt="screenshot11" /></p>
<p>10. All necessary Express languages will be updated within a few seconds.</p>
<p><img src="http://www.froggie.sk/img/2.30/screen12.png" alt="screenshot12" /></p>
<p>11. Exit program to restart the system for the changes to take effect (new display language).</p>
<p><img src="http://www.froggie.sk/img/2.30/screen13.png" alt="screenshot13" /></p>
<p><strong><a href="http://www.froggie.sk/download.html" target="_blank">Download the Application and Languages</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=324</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Only Numeric entry in Textbox Vb.net</title>
		<link>http://dalank.com/blog/?p=298</link>
		<comments>http://dalank.com/blog/?p=298#comments</comments>
		<pubDate>Fri, 02 Sep 2011 11:51:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=298</guid>
		<description><![CDATA[Here is a fairly straight-forward way to restrict your textbox to allow only numbers, $, and commas: Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim allowedChars As String = "0123456789$," If allowedChars.IndexOf(e.KeyChar) = -1 Then ' Invalid Character e.Handled = True End If End Sub]]></description>
			<content:encoded><![CDATA[<pre>Here is a fairly straight-forward way to restrict your textbox to allow</pre>
<blockquote>
<pre>only numbers, $, and commas:

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As</pre>
<pre> System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

    Dim allowedChars As String = "0123456789$,"

    If allowedChars.IndexOf(e.KeyChar) = -1 Then
        ' Invalid Character
        e.Handled = True
    End If

End Sub</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=298</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent Deleting Cookies in IE</title>
		<link>http://dalank.com/blog/?p=292</link>
		<comments>http://dalank.com/blog/?p=292#comments</comments>
		<pubDate>Wed, 31 Aug 2011 16:39:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=292</guid>
		<description><![CDATA[This policy setting is used to prevent users from deleting cookies. This feature is available in the Delete Browsing History dialog box. If you enable this policy setting, cookies will be preserved when the user clicks Delete. If you disable this policy setting, cookies will be deleted when the user clicks Delete. If you do<a href="http://dalank.com/blog/?p=292"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<pre>This policy setting is used to prevent users from deleting cookies. This feature is available in the Delete Browsing History dialog box.
If you enable this policy setting, cookies will be preserved when the user clicks Delete.
If you disable this policy setting, cookies will be deleted when the user clicks Delete.
If you do not configure this policy setting, the user will be able to choose whether to delete or preserve cookies when the user clicks Delete.
If the “Turn off Delete Browsing History functionality” policy is enabled, this policy is enabled by default.</pre>
<pre>1-Type <strong>gpedit.msc</strong> in the Start menu’s search box and then press <strong>Enter</strong>.</pre>
<blockquote>
<pre><strong>Note:</strong> This guide shows you how to make changes to Windows 7 using Group Policy. Group Policy is not available in Home versions of Windows 7.</pre>
</blockquote>
<pre>2-Navigate to User Configuration, Administrative Templates, Windows Components, Internet Explorer, and then select Delete Browsing History in the left column of the Group Policy editor.</pre>
<pre><a href="http://dalank.com/blog/wp-content/uploads/2011/08/prevent-deleting-ie-cookies-1-468x327.png"><img class="aligncenter size-full wp-image-293" title="prevent-deleting-ie-cookies-1-468x327" src="http://dalank.com/blog/wp-content/uploads/2011/08/prevent-deleting-ie-cookies-1-468x327.png" alt="" width="468" height="327" /></a></pre>
<pre>3-Double-click Prevent Deleting Cookies in the Settings section of the Group Policy editor.
4-Select Enable and then click OK to save the changes.</pre>
<pre><a href="http://dalank.com/blog/wp-content/uploads/2011/08/prevent-deleting-ie-cookies-2-468x429.png"><img class="size-full wp-image-294 alignleft" title="prevent-deleting-ie-cookies-2-468x429" src="http://dalank.com/blog/wp-content/uploads/2011/08/prevent-deleting-ie-cookies-2-468x429.png" alt="" width="468" height="429" /></a></pre>
]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=292</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add a Splash Screen for an Application (Visual Basic)</title>
		<link>http://dalank.com/blog/?p=287</link>
		<comments>http://dalank.com/blog/?p=287#comments</comments>
		<pubDate>Fri, 26 Aug 2011 13:04:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=287</guid>
		<description><![CDATA[Splash screens are often used to display information to a user while an application is loading. Visual Basic provides a preconfigured Splash Screen form template that you can add to your Windows Application project, and a Splash Screen property in the Project Designer that allows you to specify a splash screen for your project. To add a splash screen template Select<a href="http://dalank.com/blog/?p=287"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>Splash screens are often used to display information to a user while an application is loading. Visual Basic provides a preconfigured Splash Screen form template that you can add to your <strong>Windows Application</strong> project, and a <strong>Splash Screen</strong> property in the <strong>Project Designer</strong> that allows you to specify a splash screen for your project.</p>
<p><strong>To add a splash screen template</strong></p>
<div>
<ol>
<li>Select a project in <strong>Solution Explorer</strong>, and then on the <strong>Project </strong>menu, click <strong>Add New Item</strong>.</li>
<li>In the <strong>Add New Item</strong> dialog box, select the <strong>Splash Screen</strong> template, and then click <strong>Add</strong>. The template is added to your project.</li>
</ol>
</div>
<p><strong>To specify a splash screen</strong></p>
<div>
<ol>
<li>Select a project in <strong>Solution Explorer</strong>, and then on the <strong>Project </strong>menu, click <strong>Properties</strong>.</li>
<li>Click the <strong>Application</strong> tab.</li>
<li>Under <strong>Windows application framework properties</strong>, in the <strong>Splash screen:</strong> list, click the form that you want to use as a splash screen.</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=287</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unblock Blocked Live Account</title>
		<link>http://dalank.com/blog/?p=262</link>
		<comments>http://dalank.com/blog/?p=262#comments</comments>
		<pubDate>Wed, 27 Jul 2011 13:18:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=262</guid>
		<description><![CDATA[Sometimes your are enable to sign to live with messenger or live.com so you will receive this messages Sign-in with yourname@hotmail.com is blocked for one of these reasons: Someone entered the wrong password too many times. If you signed up for this ID through an organization, you might not be able to use the account yet. The<a href="http://dalank.com/blog/?p=262"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes your are enable to sign to live with messenger or live.com so you will receive this messages</p>
<p>Sign-in with <strong>yourname@hotmail.com</strong> is blocked for one of these reasons:</p>
<ul>
<li>Someone entered the wrong password too many times.</li>
<li>If you signed up for this ID through an organization, you might not be able to use the account yet.</li>
</ul>
<div><a href="https://security.live.com/acsr.aspx">The Solution is here</a></div>
]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=262</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Point Domain Name to IP address (godaddy)</title>
		<link>http://dalank.com/blog/?p=259</link>
		<comments>http://dalank.com/blog/?p=259#comments</comments>
		<pubDate>Thu, 21 Jul 2011 15:34:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=259</guid>
		<description><![CDATA[In your Godaddy Domain Manager In Zone File Editor Click on the Domain.com you need to do this  Go and click on To add a new host just add the ip you want ,any name of A host TTl maybe 1 houre press ok]]></description>
			<content:encoded><![CDATA[<p>In your Godaddy Domain Manager</p>
<p>In Zone File Editor Click on the Domain.com you need to do this  Go and click on To add a new host just add the ip you want ,any name of A host TTl maybe 1 houre<br />
press ok</p>]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=259</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert a web page to a WordPress Theme in 5 minutes.</title>
		<link>http://dalank.com/blog/?p=242</link>
		<comments>http://dalank.com/blog/?p=242#comments</comments>
		<pubDate>Mon, 18 Jul 2011 11:35:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=242</guid>
		<description><![CDATA[Everything you need is in the roll-your-own-theme.zip file. WordPress blogs are getting to be like Pop Music – same words, same music, same beat, different song. They are variations on a single theme and that theme is the WordPress default. A certain sameness creeps into WordPress sites so that “Yet another WordPress Site” becomes the<a href="http://dalank.com/blog/?p=242"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>Everything you need is in the <a href="http://dalank.com/blog/wp-content/uploads/roll-your-own-theme.zip">roll-your-own-theme.zip</a> file.</p>
<p>WordPress blogs are getting to be like Pop Music – same words, same music, same beat, different song. They are variations on a single theme and that theme is the WordPress default. A certain sameness creeps into WordPress sites so that “Yet another WordPress Site” becomes the norm and not just a default setting on the admin panel.</p>
<p>Most web designers can pull off interesting stuff, but because creating a new theme is usually based on hacking the default theme, they are limited in what they can attempt. I’ve been converting a good number of blogs from static pages or blogger.com templates using the default theme hacks. This is time consuming and means that I spend most of my time fitting style into rigid constraints. I wind up castrating a client’s design to shoehorn things into the limiting container of the default theme.</p>
<h1><strong>The Goal of a Five Minute Theme.</strong></h1>
<p>Web designers need to be able design a page, add a snippet to replace Lorem Ipsum and press a button to create a WordPress Blog. I haven’t written the app that can do that, but I’ve put together a few files that encapsulate WordPress theme parts in a few small files. My goal was to convert a web page into a WordPress theme in five minutes.</p>
<p><strong>No PHP required.</strong></p>
<p>I placed the guts of a WordPress theme into files. The only PHP required is the includes that a designer can cut and paste into their template at the appropriate place. Many web designers only learn enough PHP to know what they should not touch in a theme. They can do simple cut and paste but they hire a PHP coder to convert their designs to themes. This is no longer a requirement.</p>
<p><strong>Now see if you can do it in less than five minutes.</strong></p>
<p><strong><em>Step one. (30 seconds)</em></strong></p>
<p>Download the <a href="http://dalank.com/blog/wp-content/uploads/roll-your-own-theme.zip">roll-your-own-theme.zip</a> file and unzip it into and appropriately named folder.</p>
<p><strong><em>Step two. (30 seconds)</em></strong></p>
<p>Copy your nicely designed web template to the directory and rename it to index.php.</p>
<p><strong><em>Step three (One minute).</em></strong></p>
<p>Edit your new index.php and delete everything above &lt;body&gt; tag. That’s the entire head section, the HTML tag and the doctype directive. Replace this with one line:</p>
<p>&lt;?PHP include(‘top.php’); ?&gt;</p>
<p>Save your work.</p>
<p><strong><em>Step four (30 seconds)</em></strong></p>
<p>Locate your Lorem Ipsum area where the blog posts will go. Delete anything that you don’t need for the blog, such as the filler used to help design the page.</p>
<p>Replace this with one line:</p>
<p>&lt;?PHP include(‘content.php’); ?&gt;</p>
<p>Save your work.</p>
<p><em><strong>Step four (30 seconds)</strong></em></p>
<p>Find your sidebar. Delete the dummy content used for testing out the web page and replace it with:</p>
<p>&lt;?PHP include(‘side.php’); ?&gt;</p>
<p>Save your work.</p>
<p><em><strong>Step five (30 seconds)</strong></em></p>
<p>Go down to your footer (if you have one), and insert this:</p>
<p>&lt;?PHP include(‘bot.php’); ?&gt;</p>
<p>If you don’t have a footer area per se, then just insert the line before the&lt;/body&gt; tag.</p>
<p>Save and exit.</p>
<p><em><strong>Step six (30 seconds)</strong></em></p>
<p>Open the included style sheet style.css, and change the name and author at the top. Open the style sheet that you used to create your template and copy all of the styles into the bottom of new style.css.</p>
<p>Save and close.</p>
<p>Done!</p>
<p>You can now upload the new directory to your WordPress installations themes directory and preview it. It might need tweaking, but it should look pretty much like you’d like it to look.</p>
<p><strong>How it works.</strong></p>
<p>WordPress doesn’t need the dozen or so files that you usually see in a theme. It really only needs three files, index.php, functions.php and style.css. I boiled the essence of the default themes into the three files you included in your index.php. These files do all the work of the other files included in a standard theme. WordPress has built in code for special files such as singletons, pages, archives, and images, but these are essentially the same as the main page in 90% of the themes out there. You can copy the index.php file to page.php if you like and restyle that to do pages differently than posts, but you don’t have to. If WordPress doesn’t find a page.php file, it will happily use index.php.</p>
<p><strong>Tweaking the Style Sheet.</strong></p>
<p>You may need to fix up some of the styles that WordPress uses to show posts, comments and categories. I have included several of these as stubs in the style.css file. If, for instance, the post title is the wrong size, color or font, you can add some style to the .entry-title class and fix it up. Since the fine tuning of any project will go on for years, I did not include it the five minutes that I allocated for converting the template to a theme.</p>
<p>Experienced programmers will want to change things, especially in the top.php and content.php files. Please let me know if you add something absolutely essential or fix any bugs.</p>
<p>I am a WordPress tinkerer and not an expert. This works – I’m running it on several sites. I am sure that the many real Gurus will either reject this method as overly simplistic, but my hope is that I will receive lots of good ideas to improve the method without making it more complicated.</p>
<p>blogseye.com</p>]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=242</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert HTML to WordPress</title>
		<link>http://dalank.com/blog/?p=164</link>
		<comments>http://dalank.com/blog/?p=164#comments</comments>
		<pubDate>Mon, 13 Jun 2011 19:49:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dalank.com/blog/?p=164</guid>
		<description><![CDATA[When I first decided to convert a static HTML design to WordPress I did some searching for a tutorial to help me get started with the basics. Surprisingly, I didn’t find anything that was very complete or easy to follow. For that reason I decided to write a very basic tutorial on how to convert<a href="http://dalank.com/blog/?p=164"> <br /><br /> (More)…</a>]]></description>
			<content:encoded><![CDATA[<p>When I first decided to convert a static HTML design to WordPress I did some searching for a tutorial to help me get started with the basics. Surprisingly, I didn’t find anything that was very complete or easy to follow. For that reason I decided to write a very basic tutorial on how to convert a static HTML template into a <a href="http://codex.wordpress.org/Theme_Development">WordPress Theme</a>. If you are an absolute beginner at developing WordPress themes then this should help you get started. This tutorial assumes you already have a basic understanding of HTML and CSS. It also assumes you have a website built in HTML and CSS and have it ready for conversion.</p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">How WordPress Works</span></p>
<p>WordPress works in a rather straightforward manner but it may seem confusing if you are completely new to the concept. WordPress relies on PHP to <strong>call on</strong> different parts of your content from the <a href="http://en.wikipedia.org/wiki/DBMS">database management system</a> it stands on. For example, look in your <code>/wp-content/themes/twentyten/</code> directory and open the <code>header.php</code> file. As you scroll through the code notice the PHP calls, they start with a <code>&lt;?php</code>and end with a <code>?&gt;</code>. Look at line 37 and notice the call for your stylesheet URL:</p>
<blockquote><p><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; line-height: 18px; white-space: pre;">&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;all&#8221; href=&#8221;&lt;?php bloginfo( &#8216;stylesheet_url&#8217; ); ?&gt;&#8221; /&gt;</span></p>
<p>&nbsp;</p></blockquote>
<p>This line uses PHP to look-up your stylesheet’s location from the database. This basic function of <strong>retrieving</strong>or <strong>calling</strong> some kind of data from your database and using PHP to display it in your XHTML is how WordPress works. Throughout this process you will be <strong>substituting</strong> PHP for different parts of your content and your code. This will make editing easier in the long run, as you will find out. Now that you understand the basics of how WordPress works, lets get started.</p>
<h3>First Things First</h3>
<p>The first step is to create a new folder and name it whatever you want your theme to be called. Next, create two new files, <code>style.css</code> and <code>index.php</code> and place them in the folder. Believe it or not, these are the only two files you actually need for a WordPress theme. Now copy and paste the code from your original CSS file into the <code>style.css</code> file you just created. At the top add the following code:</p>
<blockquote>
<pre><code>/* Theme Name: Replace with your Theme's name. Theme URI: Your Theme's URI Description: A brief description. Version: 1.0 Author: You Author URI: Your website address. */</code></pre>
</blockquote>
<p>These comments simply help WordPress properly identify the theme. Your stylesheet is now ready to go.</p>
<h3>Chop It Up</h3>
<p>Now let’s start chopping up your HTML. Remember how we talked about WordPress using PHP to call data from your database? Well WordPress can also use PHP to call different files from within your template folder. Imagine your current HTML code chopped up into 4 (or more) different sections. For example, take a look at the layout and corresponding HTML of this page. The header comes first, followed by the content, then the sidebar, and finally the footer. Instead of keeping these 4 parts of the HTML together in one file, you are going to put each of them in their own separate file. Then call on them one by one using PHP.</p>
<p>So go ahead and sort through your HTML code and place some markers in the 4 places where you plan on cutting the code into 4 separate sections.</p>
<p><em><strong>Note:</strong> These next steps assume you have your page set up left to right: header, content, sidebar, footer. If your page is ordered differently you will have to switch a couple of these steps around, but I am sure you can figure that out.</em></p>
<p>Now create 3 new files (<code>header.php</code>, <code>sidebar.php</code>, <code>footer.php</code>) and place them in your theme directory. Next take a look at the <code>header.php</code> file from the Twenty Ten theme we looked at earlier. Notice all the PHP that is used in between the <code>&lt;head&gt;</code> tags. Copy that code to your new <code>header.php</code> file. Now open up your original HTML file and copy the code you marked off for your header (1st section) into your new <code>header.php</code>file (underneath the <code>&lt;head&gt;</code> section). Save and close.</p>
<p>Now open up your new <code>index.php</code> file. Copy the second part of your original HTML code, the content (2nd section) into your new <code>index.php</code> file. Save and close.</p>
<p>Getting the hang of it?</p>
<p>Next open up your new <code>sidebar.php</code> file, copy the sidebar (3rd section) of your original code into the<code>sidebar.php</code> file. Finally, copy the original footer (4th section) of code into your new <code>footer.php</code> file.</p>
<h3>Put It Back Together</h3>
<p>Your original code should now be chopped up into 4 different files (<code>header.php, index.php, sidebar.php, footer.php</code>). Let&#8217;s put it back together using a few lines of PHP. Open up your <code>index.php</code> file, it should contain the HTML from the content (2nd section) of your original code. Add this line at the very top of the file:</p>
<blockquote>
<pre><code>&lt;?php get_header(); ?&gt;</code></pre>
</blockquote>
<p>Now go to the absolute bottom of your <code>index.php</code> file and add these two lines:</p>
<blockquote>
<pre><code>&lt;?php get_sidebar(); ?&gt; &lt;?php get_footer(); ?&gt;</code></pre>
</blockquote>
<p>These 3 simple lines of PHP are telling WordPress to fetch and display your <code>header.php</code>, <code>sidebar.php</code>, and<code>footer.php</code> files within your <code>index.php</code> file. <strong>Your code is now officially put back together.</strong> Now, if you want to edit your sidebar you can just edit your <code>sidebar.php</code> file, instead of sorting through your <code>index.php</code>to find it. The same goes for your <code>header.php</code> and your <code>footer.php</code>.</p>
<h3>The Loop</h3>
<p>Your <code>index.php</code> is almost finished. The final step is to insert the actual content into the code. Luckily, WordPress uses PHP for this as well. <a href="http://codex.wordpress.org/The_Loop">The Loop</a> is the PHP function WordPress uses to call and display your posts from the database they are saved in. Grab this code and paste it into your new theme&#8217;s <code>index.php</code> file (inside of whichever <code>div</code> you are using to hold your content).</p>
<blockquote>
<pre><code>&lt;?php if ( have_posts() ) : ?&gt; &lt;?php while ( have_posts() ) : the_post(); ?&gt; &lt;div id="post-&lt;?php the_ID(); ?&gt;" &lt;?php post_class(); ?&gt;&gt; &lt;div&gt; &lt;div&gt;&lt;?php the_time( 'M j y' ); ?&gt;&lt;/div&gt; &lt;h2&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" rel="bookmark" title="Permanent Link to &lt;?php the_title_attribute(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt; &lt;div&gt;&lt;?php the_author(); ?&gt;&lt;/div&gt; &lt;/div&gt;&lt;!--end post header--&gt; &lt;div&gt; &lt;?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?&gt; &lt;?php the_content(); ?&gt; &lt;?php edit_post_link(); ?&gt; &lt;?php wp_link_pages(); ?&gt; &lt;/div&gt;&lt;!--end entry--&gt; &lt;div&gt; &lt;div&gt;&lt;?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' ); ?&gt;&lt;/div&gt; &lt;/div&gt;&lt;!--end post footer--&gt; &lt;/div&gt;&lt;!--end post--&gt; &lt;?php endwhile; /* rewind or continue if all posts have been fetched */ ?&gt; &lt;div&gt; &lt;div&gt;&lt;?php next_posts_link( 'Older Entries' ); ?&gt;&lt;/div&gt; &lt;div&gt;&lt;?php previous_posts_link( 'Newer Entries' ); ?&gt;&lt;/div&gt; &lt;/div&gt;&lt;!--end navigation--&gt; &lt;?php else : ?&gt; &lt;?php endif; ?&gt;</code></pre>
<p>&nbsp;</p></blockquote>
<p>You just inserted a basic version of the loop into your code! WordPress will use the loop to display your posts and comments on your website.</p>
<h3>The End</h3>
<p>Now upload your theme folder to <code>/wp-content/themes/</code>. Then log into WordPress and activate your theme. Wasn&#8217;t that easy?</p>
<p>This tutorial covered the basics for converting your theme to WordPress. To further customize and enhance your theme start looking at the <a href="http://codex.wordpress.org/Main_Page">WordPress Codex</a>, specifically <a href="http://codex.wordpress.org/Template_Tags">Template Tags</a> and <a href="http://codex.wordpress.org/Templates">Template Files</a>. You can use template tags in your sidebar, in your header, or your footer to call menus, categories, posts, etc. As you learn more about template tags and template files you will discover the endless possibilities for customizing your new WordPress blog.</p>
<p>by Drew Strojny</p>]]></content:encoded>
			<wfw:commentRss>http://dalank.com/blog/?feed=rss2&#038;p=164</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: dalank.com @ 2012-05-21 03:17:04 -->
