<?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>Webmaster Index</title>
	<atom:link href="http://www.webmasterindex.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmasterindex.net</link>
	<description>Directory &#38; Blog for Webmasters</description>
	<lastBuildDate>Mon, 12 Jul 2010 20:52:30 +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>Suggest Your Posts and Get FREE Exposure</title>
		<link>http://www.webmasterindex.net/suggest-your-posts-and-get-free-exposure/</link>
		<comments>http://www.webmasterindex.net/suggest-your-posts-and-get-free-exposure/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:52:30 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Internet Marketing]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=781</guid>
		<description><![CDATA[Get absolutely free exposure by suggesting your post here on Webmaster Index. Simply click here, copy &#038; paste your article, leave your credentials and click submit!
If you just want to send a tip (eg. cool new web design, awesome PHP script, etc), click here and send it off! We&#8217;ll review it quickly and if we [...]]]></description>
			<content:encoded><![CDATA[<p>Get absolutely free exposure by suggesting your post here on Webmaster Index. Simply <a href="http://www.webmasterindex.net/suggest-post/">click here</a>, copy &#038; paste your article, leave your credentials and click submit!</p>
<p>If you just want to send a tip (eg. cool new web design, awesome PHP script, etc),<a href="http://www.webmasterindex.net/tip/"> click here</a> and send it off! We&#8217;ll review it quickly and if we like it, we&#8217;ll post it here (we tend to like a LOT of things).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/suggest-your-posts-and-get-free-exposure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Form Example with Server Side Validation</title>
		<link>http://www.webmasterindex.net/php-form-example-with-server-side-validation/</link>
		<comments>http://www.webmasterindex.net/php-form-example-with-server-side-validation/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 14:59:17 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Guest Posts]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=753</guid>
		<description><![CDATA[Chris Roane, from <a href="http://www.montanaprogrammer.com/">Montana Programmer</a>, shows you a simple and quick method for creating a form page that handles errors and pre-populates fields if there is an error, and a method for processing the form and validating the information.]]></description>
			<content:encoded><![CDATA[<p>If you program custom PHP applications, you will often times need to work with a form and require certain form fields. A few real world examples would be a contact form, registration form or signup form. This tutorial shows you a simple and quick method for creating a form page that handles errors and pre-populates fields if there is an error, and a method for processing the form and validating the information.</p>
<p>This is not meant to be the ultimate example. I would consider this a beginner/intermediate level tutorial that will teach you how to work with forms and arrays. There are more specific and advanced form validation techniques that we could implement into this script, but that is not the purpose of this article.</p>
<p>Make sure to put all of the files for this tutorial in the same directory on your server. You can download all of the files for this example by <a href="http://www.montanaprogrammer.com/wp-content/uploads/2010/02/form-sample.zip">clicking here</a>.</p>
<p>The first thing we will need to create is the html form with some PHP variables. This handles displaying the form and any errors that come up when processing the form, along with pre-populating the form with values they have entered if there is an error.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;?php
// index.php
?&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;PHP Form Processing Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&nbsp;
&lt;?=$errorString?&gt;
&nbsp;
&lt;form action=&quot;process.php&quot; method=&quot;POST&quot;&gt;
Name:*&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;Name&quot; value=&quot;&lt;?=$Name?&gt;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
Email:*&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;Email&quot; value=&quot;&lt;?=$Email?&gt;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
URL:*&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;URL&quot; value=&quot;&lt;?=$URL?&gt;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
Company:&lt;br /&gt;&lt;input type=&quot;text&quot; name=&quot;Company&quot; value=&quot;&lt;?=$Company?&gt;&quot; /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit Form&quot; /&gt;
&lt;/form&gt;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>I like to keep the processing and the html form as separate as possible so that it is easier to update.</p>
<p>The next file is where the majority of the PHP code is located. This would be an excellent file to go through if you want to get more familiar with arrays. The comments in the PHP code should help explain what each piece of the code does. The first two arrays at the top of the file are configuration arrays.</p>
<p>Below is the PHP processing page for the above form. You will want to make sure the form action value points to this file.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// process.php</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/*
 *  Specify the field names that are in the form. This is meant
 *  for security so that someone can't send whatever they want
 *  to the form.
 */</span>
<span style="color: #000088;">$allowedFields</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'Name'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'Email'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'URL'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'Company'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Specify the field names that you want to require...</span>
<span style="color: #000088;">$requiredFields</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'Name'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'Email'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'URL'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Loop through the $_POST array, which comes from the form...</span>
<span style="color: #000088;">$errors</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">AS</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// first need to make sure this is an allowed field</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #339933;">,</span> <span style="color: #000088;">$allowedFields</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$$key</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// is this a required field?</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #339933;">,</span> <span style="color: #000088;">$requiredFields</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$value</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;The field <span style="color: #006699; font-weight: bold;">$key</span> is required.&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// were there any errors?</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$errorString</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;p&gt;There was an error processing the form.&lt;/p&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$errorString</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;ul&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$errors</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$error</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$errorString</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;li&gt;<span style="color: #006699; font-weight: bold;">$error</span>&lt;/li&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$errorString</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// display the previous form</span>
    <span style="color: #b1b100;">include</span> <span style="color: #0000ff;">'index.php'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// At this point you can send out an email or do whatever you want</span>
    <span style="color: #666666; font-style: italic;">// with the data...</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// each allowed form field name is now a php variable that you can access</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// display the thank you page</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Location: thanks.html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>And finally, you need the thank you page. In this example, I just use a basic html file.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;
&quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;title&gt;Thanks!&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Thank you for sending the form!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Click on the <a href="http://www.montanaprogrammer.com/wp-content/uploads/2010/02/form-sample.zip">PHP Form Sample</a> link to download a zip file of all of the files.</p>
<p>If you have any code you want to add to improve what I’ve done, please share it with us in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/php-form-example-with-server-side-validation/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Make Your Wordpress Blog SEO Friendly Without Any Plugins</title>
		<link>http://www.webmasterindex.net/make-your-wordpress-blog-seo-friendly-without-any-plugins/</link>
		<comments>http://www.webmasterindex.net/make-your-wordpress-blog-seo-friendly-without-any-plugins/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 15:15:37 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hack]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=688</guid>
		<description><![CDATA[If for some reason you can't use any SEO plugins (All-In-One SEO, SEO Title Tags) due to some complications with the way your blog is set up (eg. Webmaster Index), you can still make your blog SEO friendly with some manual loop hacks. In this guide, I'll cover ways to easily include the title tags, keywords meta tags and description meta tags based on the type of page that's being displayed.]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Too much caffeine can make you think too fast and make plenty of errors. All errors have been fixed for this guide &#8211; thanks to those who pointed it out!</strong><br />
If for some reason you can&#8217;t use any SEO plugins (All-In-One SEO, SEO Title Tags) due to some complications with the way your blog is set up (eg. Webmaster Index), you can still make your blog SEO friendly with some manual loop hacks. In this guide, I&#8217;ll cover ways to easily include the title tags, keywords meta tags and description meta tags based on the type of page that&#8217;s being displayed. (I know the keywords tag isn&#8217;t all that necessary, so that step is optional)</p>
<h3>It&#8217;s All In Your Head&#8230;.er</h3>
<p>Open up your template&#8217;s <strong>header.php</strong> and get ready to get your hands dirty (as a precaution, I recommend you make a quick backup before you proceed).</p>
<p>Let&#8217;s get started with modding the title tags. Look for this fairly near the top:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;</pre></div></div>

<p>Now you&#8217;ll probably want to first change your blog&#8217;s homepage title tag. Use the following code as an example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
<span style="color: #666666; font-style: italic;">// This can instead be is_front_page(); if you're using a static page </span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
My Front Page Keyword <span style="color: #339933;">|</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #339933;">|</span> Other Keyword
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'4'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Example: If the page ID = 4 then use this title: ?&gt;</span>
Another Keyword<span style="color: #339933;">,</span> Keyword <span style="color: #339933;">|</span> About <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'5'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Example: If the page ID = 5 then use this title: ?&gt;</span>
Another Keyword<span style="color: #339933;">,</span> Keyword <span style="color: #339933;">|</span> Contact <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Web Design'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Example: If category is titled Web Design: ?&gt;</span>
Web Design Posts <span style="color: #339933;">&amp;</span> Articles <span style="color: #339933;">|</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>  <span style="color: #666666; font-style: italic;">// For everything else, including posts:</span>
wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">' | '</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'true'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/title&gt;</pre></div></div>

<p>You will want to change that around and edit it to match your needs. BUT, if the is_home() or is_front_page() don&#8217;t work because maybe your static front page creates multiple pages that makes Wordpress think it&#8217;s just one page (like our <a href="http://www.webmasterindex.net/">webmaster directory</a>) &#8211; you can get really picky and change the first line above to:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
My Front Page Keyword | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | Second Keyword
// That basically displays the title tag if the server shoots back &quot;www.yourdomain.com/&quot; URI.
// rest of the code
&lt;/title&gt;</pre></div></div>

<h3>Custom Fields For Meta Descriptions / Keywords</h3>
<p>For your posts / pages, we will be calling to check if you&#8217;ve set up a custom field for meta data. So as you create posts and pages, create new custom fields and name them something like: <em>meta_description</em> and <em>meta_keywords</em>. As for your home page, you can use the similar title tag example above but with meta tags instead, use the example below. Go back to editing your <strong>header.php</strong> and find the area where meta tags are created, if they aren&#8217;t there just insert the code below the title tags:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;/title&gt;
&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
get_post_meta <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'meta_description'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
Mydomain.com provides useful tutorials and the likes, and blah keyword here blah.. Blah Blah.
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
&nbsp;
&lt;meta name=&quot;keyword&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
get_post_meta <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'meta_keywords'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
keyword1, keyword2, keyword3, keyword 4
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;</pre></div></div>

<p>Now you&#8217;re all set to enjoy plugin-free SEO friendly title tags and meta data. Even though SEO plugins are much easier and convenient to use, not all blogs (like Webmaster Index) can run smoothly with them. Be sure to read up on <a href="http://www.webmasterindex.net/seo-how-to-write-a-robots-txt-file/">how to write a robots.txt file</a> and <a href="http://www.webmasterindex.net/seo-tips-for-building-backlinks/">link building tips</a> to get more SEO friendliness on your blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/make-your-wordpress-blog-seo-friendly-without-any-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fresh, Beautiful &amp; Free Wordpress Themes for 2010</title>
		<link>http://www.webmasterindex.net/fresh-beautiful-free-wordpress-themes-for-2010/</link>
		<comments>http://www.webmasterindex.net/fresh-beautiful-free-wordpress-themes-for-2010/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 16:29:34 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Ideas & Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=647</guid>
		<description><![CDATA[Is it too early to start collecting and displaying new Wordpress themes for 2010? Maybe.. or maybe not. I've already found a handful of some fresh and beautiful Wordpress themes made in 2010 so I might as well. I've also decided to constantly update this post throughout the year and hope that it will end up being a great resource. My goal is to have to huge list of quality and beautiful free Wordpress themes, so be sure to bookmark this post and check back often.]]></description>
			<content:encoded><![CDATA[<p>Is it too early to start collecting and displaying new Wordpress themes for 2010? Maybe.. or maybe not. I&#8217;ve already found a handful of some fresh and beautiful Wordpress themes made in 2010 so I might as well. I&#8217;ve also decided to constantly update this post throughout the year and hope that it will end up being a great resource. My goal is to have to huge list of quality and beautiful free Wordpress themes, so be sure to bookmark this post and check back often.</p>
<p><strong>If you have a new, high-quality Wordpress theme, please <a href="http://www.webmasterindex.net/tip/">send us a tip</a> and we may feature it in this post.</strong></p>
<h3>1. Cloude Wordpress Theme</h3>
<p><em>Added: January 14th, 2010</em><br />
[<a href="http://zenverse.net/cloude-wordpress-theme/" target="_blank">download</a>] [<a href="http://zenverse.net/?themedemo=cloude" target="_blank">demo</a>]<br />
<img class="aligncenter size-large wp-image-653" title="cloude-demo" src="http://www.webmasterindex.net/wp-content/uploads/2010/01/cloude-demo-1024x594.png" alt="cloude-demo" width="614" height="356" /></p>
<h3>2. Cubenatic Wordpress Theme</h3>
<p><em>Added: January 14th, 2010</em><br />
[<a href="http://camelgraph.com/cubenatic-theme/" target="_blank">download</a>] [<a href="http://demo.camelgraph.com/cubenatic/" target="_blank">demo</a>]<br />
<img class="aligncenter size-large wp-image-663" title="cubenatic-demo" src="http://www.webmasterindex.net/wp-content/uploads/2010/01/cubenatic-demo-1024x594.png" alt="cubenatic-demo" width="614" height="356" /></p>
<h3>3. Wazzirator Wordpress Theme</h3>
<p><em>Added: January 14th, 2010</em><br />
A reskin of the one above.<br />
[<a href="http://camelgraph.com/wazzirator-theme/" target="_blank">download</a>] [<a href="http://demo.camelgraph.com/wazzirator" target="_blank">demo</a>]<br />
<img class="aligncenter size-large wp-image-665" title="wazzirator-demo" src="http://www.webmasterindex.net/wp-content/uploads/2010/01/wazzirator-demo-1024x593.png" alt="wazzirator-demo" width="614" height="356" /></p>
<h3>4. iRecipes Wordpress Theme</h3>
<p><em>Added: January 14th, 2010</em><br />
[<a href="http://newwpthemes.com/wordpress-theme/irecipes/" target="_blank">download</a>] [<a href="http://newwpthemes.com/livedemo/?wptheme=iRecipes" target="_blank">demo</a>]<br />
<img class="aligncenter size-large wp-image-666" title="irecipes-demo" src="http://www.webmasterindex.net/wp-content/uploads/2010/01/irecipes-demo-1024x594.png" alt="irecipes-demo" width="614" height="356" /></p>
<h3>5. Daily Note Wordpress Theme</h3>
<p><em>Added: January 14th, 2010</em><br />
[<a href="http://designdisease.com/blog/dailynote-theme-released/" target="_blank">download</a>] [<a href="http://designdisease.com/preview/dailynotes" target="_blank">demo</a>]<br />
<img class="aligncenter size-large wp-image-667" title="dailynote-demo" src="http://www.webmasterindex.net/wp-content/uploads/2010/01/dailynote-demo-1024x594.png" alt="dailynote-demo" width="614" height="356" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/fresh-beautiful-free-wordpress-themes-for-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SEO Tips for Building Backlinks</title>
		<link>http://www.webmasterindex.net/seo-tips-for-building-backlinks/</link>
		<comments>http://www.webmasterindex.net/seo-tips-for-building-backlinks/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 22:32:42 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Ideas & Tips]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Link Building]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=550</guid>
		<description><![CDATA[It's undeniable that building backlinks is one of the most important factors in SEO. But you really shouldn't be pulling your hair over the <strong>number of websites</strong> because <strong>quality</strong> will mean more than <strong>quantity</strong> in the long run. In this article, I'm going to point out several helpful and solid tips that you should keep in mind when building backlinks.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s undeniable that building backlinks is one of the most important factors in SEO. But you really shouldn&#8217;t be pulling your hair over the <strong>number of websites</strong> because <strong>quality</strong> will mean more than <strong>quantity</strong> in the long run. In this article, I&#8217;m going to point out several helpful and solid tips that you should keep in mind when building backlinks.</p>
<h3>1. Relevancy</h3>
<p><em><strong>Tip:</strong> Be sure the link you&#8217;re trying to get is relevant to your website.</em><br />
The relevancy of a backlink has been preached countless times, but that&#8217;s because it really is that important. Before you even begin to consider obtaining a backlink from somewhere, you should always make sure it&#8217;s relevant to your website. Look at it from Google&#8217;s eyes. Their goal is to provide users with the best search results. But if your electronics blog is linked and featured on a gardening website, gardening users will not find yours useful at all &#8211; making Google appreciate the link even less.</p>
<h3>2. Directories</h3>
<p><em><strong>Tip:</strong> Only submit your website to quality directories.</em><br />
The worthiness of directories is slowly fading away but it still remains a useful way to get backlinks and (sometimes) traffic. Remember, don&#8217;t waste your time on crappy directories that are:</p>
<ul>
<li>Made just for money</li>
<li>Advertise SEO friendliness or PageRank</li>
<li>Banned from Google already</li>
</ul>
<p>Google appreciates directories that provide a useful resource for the users. A directory that promotes themselves like: &#8220;<em>Hey. My directory is PR 4 and SEO friendly so pay up and submit your website here!</em>&#8221; is not deemed as a quality directory. Make sure any directory you submit to has these qualities:</p>
<ul>
<li>All submissions are human-edited, NOT auto-approved</li>
<li>Has plenty of qualifications and requirements for websites</li>
<li>Preferably focuses on one or a few niches related to your field</li>
<li>Definitely focuses on the user experience</li>
<li>Doesn&#8217;t contain website listings that look like:</li>
</ul>
<blockquote><p><strong>online casinos, gambling, online poker, make money</strong><br />
http://www.online-casino-gambling.com/<br />
gamble online, poker, make money, virtual chips, virtual casinos<br />
<strong>order diet pills that will make you skinny in 2 days</strong><br />
http://www.order-diet-pills-Online.com/<br />
physician certified diet pills online that will guaranteee to make U skinnie in just 2 days guaranteed!!!!!!!!</p></blockquote>
<h3>3. Paid Links</h3>
<p><em><strong>Tip:</strong> Don&#8217;t buy links specifically for SEO</em><br />
Ever since Google announced their hatred for paid links, this has been a touchy and confusing subject for a lot of online marketers out there. I want to address this topic to make it clear to some of the newer webmasters. <strong>Google will only penalize you if you buy or sell links specifically to boost Search rankings.</strong> That means advertisements and paid listings are fine (Yahoo! Directory, BOTW, etc), as long as they don&#8217;t advertise something like: &#8220;<em>Boost your PR and Search Engine rankings! Buy links today starting at $49.95</em>.&#8221;</p>
<h3>4. Outsourcing</h3>
<p><em><strong>Tip: </strong>Stay clear of services that offer &#8220;mass submissions&#8221; or the likes.</em><br />
If you&#8217;re going to outsource links, you might as well go the full mile and sign-up with an established and trusted SEO company (look to <a href="http://www.seomoz.org/marketplace/companies">SEOmoz&#8217;s marketplace</a> for some trustworthy companies). Many link development services out there are really just one or two guys using an auto-submitter program. Your eyes should automatically ignore advertisements that promise: &#8220;<em>For just $99, submit your website to over 10,000 directories!</em>&#8221;</p>
<h3>5. Blogs</h3>
<p><em><strong>Tip:</strong>: Don&#8217;t spam blogs with useless comments, reach out instead</em><br />
Building relationships with bloggers in your niche will yield much better results than randomly commenting on blogs with irrelevant and pointless remarks. Don&#8217;t be afraid to send an e-mail to a blogger and politely and professionally inquire about a link partnership or an opportunity to write a guest post on their blog. It never hurts to ask.</p>
<h3>6. Competitors</h3>
<p><em><strong>Tip: </strong>Look at your competitors&#8217; backlinks and you will surely find some useful opportunities</em><br />
This won&#8217;t gain you the edge you need over your competitors, but it will help in getting you caught up &#8211; especially if your website is newer. Look at the top 5 or top 10 results for your most important keyword. Pick out two or three authority websites in your niche, then see if you can also get any of their backlinks. Then repeat these steps with other important keywords. My favorite tool for this kind of research is <a href="http://www.linkdiagnosis.com/" target="_blank"> Link Diagnosis</a>. I encourage you all to check it out as it is the most comprehensive free link analysis tool I&#8217;ve toyed with so far.</p>
<p><strong>Questions? Comments? Disagreements? Let me know your opinions.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/seo-tips-for-building-backlinks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Show Ads After First Post in Wordpress</title>
		<link>http://www.webmasterindex.net/show-ads-after-first-post-wordpress/</link>
		<comments>http://www.webmasterindex.net/show-ads-after-first-post-wordpress/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:00:09 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Guides & Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=418</guid>
		<description><![CDATA[Regardless of your knowledge of PHP, the greatest thing about Wordpress is the ability to insert a small snippet of code and have drastic changes to your blog. And don't get me started on the great community. Anyhow, I am going to list 5 good to know Wordpress loop hacks that could potentially enhance your blog. All of these loop hacks will be made in your theme's Main Index Template (index.php). Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Regardless of your knowledge of PHP, one of the greatest thing about Wordpress is having the ability to insert a small snippet of code and have drastic changes to your blog. Anyhow, if you goto our <a href="http://www.webmasterindex.net/blog/">blog&#8217;s homepage</a>, you will see a small Google Adsense ad running underneath the latest post. This is a great way to increase CTR and ad exposure by effectively using the little space your users will most likely see.</p>
<p><strong>Steps to Show Ads</strong><br />
Look for the following code in your <strong>Main Index Template</strong> (index.php):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Insert the following code right above it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$show_ads</span><span style="color: #339933;">++;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$show_ads</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
// YOUR AD CODE RIGHT HERE
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$show_ads</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><strong>Explanation</strong><br />
This small piece of code simply says to add 1 to the $show_ads variable and if the variable equals 1, then post the ad code. Then it goes on to redefine the $show_ads variable again as 1 so it will always be 2 after the first time around. Be sure you style your ad code to match your theme!</p>
<p><strong>Tips</strong><br />
In an article posted last month, I listed out the <a href="http://www.webmasterindex.net/top-10-most-useful-wordpress-plugins-for-webmasters/">top 10 most useful plugins for Wordpress</a> and one of them was an ad rotation plugin. I highly recommend you use <a href="http://www.datafeedr.com/random-ads-plugin/" target="_blank">Datafeedr Rotating Ads</a> not only for this small hack, but other ad spots in your blog as well.</p>
<p>Learn how to <a href="http://www.webmasterindex.net/separate-trackbacks-comments-wordpress/">separate trackbacks and comments in Wordpress</a> to further enhance your blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/show-ads-after-first-post-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5 Awesome Firefox Plugins Every Webmaster Should Use</title>
		<link>http://www.webmasterindex.net/5-awesome-firefox-plugins-every-webmaster-should-use/</link>
		<comments>http://www.webmasterindex.net/5-awesome-firefox-plugins-every-webmaster-should-use/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 20:34:32 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Ideas & Tips]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=501</guid>
		<description><![CDATA[Now that Mozilla Firefox is the world's most used browser and has finally beaten the long-standing champion, Internet Explorer, it'll be interesting to see how far Firefox's success can go. But in the meantime, you should check out these five Firefox plugins that make every webmaster's job a hell of a lot easier. And I mean a LOT easier.]]></description>
			<content:encoded><![CDATA[<p>Now that Mozilla Firefox is the <a href="http://www.theinquirer.net/inquirer/news/1566779/firefox-world-browser" target="_blank">world&#8217;s most used browser</a> and has finally beaten the long-standing champion, Internet Explorer, it&#8217;ll be interesting to see how far Firefox&#8217;s success can go. But in the meantime, you should check out these five Firefox plugins that make every webmaster&#8217;s job a hell of a lot easier. And I mean a LOT easier.</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Firebug</a></h3>
<p>If you&#8217;re into web design, you should have heard of this plugin. If not, you probably should get it. It must be the most convenient and comprehensive HTML, JS and CSS debugging tool out there.</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/748" target="_blank">Greasemonkey</a></h3>
<p>Greasemonkey is an insanely popular Firefox addon that runs small JS scripts to alter the way a page is displayed. But it&#8217;s not Greasemonkey that I&#8217;m pitching to you right now, it&#8217;s a small little script that numbers Search results in Google so you don&#8217;t have to waste time counting your rankings. Set your Search settings to 100 results and enjoy the brainless queries. Check out the <a href="http://userscripts.org/scripts/show/57306">Google Numbered Search Results</a> script. Yahoo! and Bing scripts are also available.</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/3036" target="_blank">SEO Quake</a></h3>
<p>In its default installation, SEO Quake will easily get you banned temporarily from rapid Google searching. There&#8217;re just too many options and settings that are on when you first install it. But with some tinkering (actually a lot), this Firefox plugin offers a wealth of useful SEO data that can save you hours in the long run. The toolbar itself can fetch PR, domain age, backlinks, Alexa rating, keyword density and much more.</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer</a></h3>
<p>The Web Developer plugin is extremely useful for&#8230; you guessed it, web developers. If you develop web pages, this is a must have plugin simply due to the variety of tools and features. Every feature this plugin offers is available to you in just two clicks.</p>
<h3><a href="https://addons.mozilla.org/en-US/firefox/addon/684" target="_blank">FireFTP</a></h3>
<p>FireFTP gives you access to your FTP right within your browser. I know I know, there are similar Java based FTP programs and your cPanel can do FTP too. But what makes this plugin so great is the lack of wait time, the ease-of-use and the functionality compared to other browser-based FTP clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/5-awesome-firefox-plugins-every-webmaster-should-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Separate Trackbacks/Pings and Comments in Wordpress</title>
		<link>http://www.webmasterindex.net/separate-trackbacks-comments-wordpress/</link>
		<comments>http://www.webmasterindex.net/separate-trackbacks-comments-wordpress/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:24:21 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Guides & Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=450</guid>
		<description><![CDATA[When your trackbacks, pings and comments are not separated, it can create an ugly mess and be a hassle for anyone to engage in conversation. I'm going to show you a fairly easy way to separate the trackbacks/pings and comments in Wordpress with a few simple hacks. This method is the exact way I did it for Webmaster Index.]]></description>
			<content:encoded><![CDATA[<p>When your trackbacks, pings and comments are not separated, it can create a bothersome mess for your readers. I&#8217;m going to show you a fairly easy way to separate the trackbacks/pings and comments in Wordpress with a few simple hacks. This method is the <u>exact</u> hack I used for Webmaster Index.</p>
<h3>Let Wordpress Know</h3>
<p>First off, you want to let Wordpress know you want to separate your comments. Go to your theme&#8217;s <strong>single.php</strong> and scroll down and find the <strong>comments_template();</strong> function and make it look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_template<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Then edit your <strong>comments.php</strong> and look for this code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> have_comments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And below it, add the code below where I&#8217;ve commented out with the &#8220;// ADD&#8221;. Your comments.php will look more or less similar than mine, so just place those strings where they would be in your code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">if ( have_comments() ) : ?&gt;
// ADD THIS-&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments_by_type</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div id=&quot;comments&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_number<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Responses'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'One Response'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Responses'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
&nbsp;
&lt;ul class=&quot;commentlist&quot; id=&quot;singlecomments&quot;&gt;	
// ADD 'type=comment'-&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/ul&gt;
&nbsp;
// ADD -&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Now <strong>right below that</strong>, you&#8217;re going add the code Wordpress will pull if you have any trackbacks. You can copy and paste this one as your<strong> comments.php</strong> will not have this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments_by_type</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pings'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div id=&quot;comments&quot;&gt;Trackbacks &amp; Pings&lt;/div&gt; // You should edit this to fit your theme
&nbsp;
&lt;ul class=&quot;commentlist&quot; id=&quot;singlecomments&quot;&gt;	// This as well
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_comments<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=pings&amp;callback=tpfunc'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h3>Creating and Styling</h3>
<p>The next step it to create a separate function so trackbacks will look different than comments. You can also remove the useless excerpt quote from the trackbacks for this step.<br />
<em><br />
Note: if you do NOT want to change the way trackbacks look, you&#8217;re all set. Just make sure you remove <strong>&#038;callback=tpfunc</strong> from the <strong>wp_list_comments()</strong> function.</em></p>
<p>Open your <strong>functions.php</strong> and add this code somewhere:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">function tpfunc($comment, $args, $depth) {
&nbsp;
$GLOBALS['comment'] = $comment; ?&gt;
&nbsp;
   &lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> id=&quot;li-comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
     &lt;div id=&quot;comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
      &lt;div id=&quot;trackback&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;cite class=&quot;fn&quot;&gt;%s&lt;/cite&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> get_comment_author_link<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Oh and don&#8217;t forget. If your <strong>function.php</strong> breaks, your whole blog dies and you&#8217;ll have to go into your FTP / web host to fix it! So don&#8217;t just directly copy and paste. Look over it and make sure the syntax and brackets are all correct and closed.</p>
<p>Notice I added a div id=&#8221;trackback&#8221; style. You should edit your .css and add one as well to make sure the trackbacks look the way you want.</p>
<p><strong>That&#8217;s it! Comment below if you&#8217;re having trouble or found this useful.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/separate-trackbacks-comments-wordpress/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Top 6 CSS Web Galleries for Design Inspiration</title>
		<link>http://www.webmasterindex.net/top-6-css-web-galleries-for-design-inspiration/</link>
		<comments>http://www.webmasterindex.net/top-6-css-web-galleries-for-design-inspiration/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:47:00 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Ideas & Tips]]></category>
		<category><![CDATA[Galleries]]></category>
		<category><![CDATA[Inspiration]]></category>
		<category><![CDATA[Top 6]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=388</guid>
		<description><![CDATA[Everyone that needs to be creative goes through it. It's called writer's block, designer's block, musician's block, artist's block, the list can go on and on. Sometimes the best way to get over a block is to simply look at fresh material that other people have already thought of. That doesn't mean you should copy another person's work, but you get new concepts and experiment by adding to or twisting it to make it your own. Writers will free write and read books covering unique topics. Musicians will listen to different genres and improvise. Web designers should look at other web designs to gather different tastes and ideas to really be inspired to make something just as jaw-dropping and fresh. Below are some of the top CSS web galleries I've picked out. These are not in any order because I really can't rate any as the best or the worst.]]></description>
			<content:encoded><![CDATA[<p>Everyone that needs to be creative goes through it. It&#8217;s called writer&#8217;s block, designer&#8217;s block, musician&#8217;s block, artist&#8217;s block, the list can go on and on. Sometimes the best way to get over a block is to simply look at fresh material that other people have already thought of. That doesn&#8217;t mean you should copy another person&#8217;s work, but you get new concepts and experiment by adding to or twisting it to make it your own. Writers will free write and read books covering unique topics. Musicians will listen to different genres and improvise. Web designers should look at other web designs to gather different tastes and ideas to really be inspired to make something just as jaw-dropping and fresh. Below are some of the top CSS web galleries I&#8217;ve picked out. These are not in any order because I really can&#8217;t rate any as the best or the worst.</p>
<h3><a href="http://www.cssprincess.com/" target="_blank">CSS Princess</a></h3>
<p>CSS Princess, if you haven&#8217;t guessed yet, promotes female web designers. Though I am not a female, I must say that I do find the gallery to be very inspirational. Lots of neat, cool and&#8230; I suppose &#8220;pretty&#8221; designs are showcased here.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-princess.png"><img class="aligncenter size-full wp-image-390" title="css-princess" src="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-princess.png" alt="css-princess" width="574" height="280" /></a></p>
<h3><a href="http://www.cssdrive.com/" target="_blank">CSS Drive</a></h3>
<p>The design and organization on this website is a little hectic, but they do showcase a lot of cool websites. One of the neat features CSS Drive offers is when you hover over a website it shows you the different colors included in the CSS, making this is ideal to get color theme ideas too.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-drive.png"><img src="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-drive.png" alt="css-drive" title="css-drive" width="574" height="280" class="aligncenter size-full wp-image-395" /></a></p>
<h3><a href="http://www.cssleak.com/" target="_blank">CSS Leak</a></h3>
<p>CSS Leak is a community-powered CSS gallery and news website. They have, to date, 1602 websites in their gallery. Users can sort by top rating, top hits, top popularity and color.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-leak.png"><img src="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-leak.png" alt="css-leak" title="css-leak" width="574" height="280" class="aligncenter size-full wp-image-396" /></a></p>
<h3><a href="http://www.unmatchedstyle.com/" target="_blank">Unmatched Style</a></h3>
<p>Unmatched Style does things a little bit differently. They run podcasts analyzing websites and interviews some of the top web designers. I just wish there was a way to sort through all 180+ pages in the gallery.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/unmatched.png"><img src="http://www.webmasterindex.net/wp-content/uploads/2009/12/unmatched.png" alt="unmatched" title="unmatched" width="574" height="280" class="aligncenter size-full wp-image-397" /></a></p>
<h3><a href="http://www.creamycss.com/" target="_blank">Creamy CSS</a></h3>
<p>This website has a lot of neat and awesome websites. Gallery categories don&#8217;t make much sense though, so you&#8217;re better off searching through the tag cloud.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/creamy-css.png"><img src="http://www.webmasterindex.net/wp-content/uploads/2009/12/creamy-css.png" alt="creamy-css" title="creamy-css" width="574" height="280" class="aligncenter size-full wp-image-398" /></a></p>
<h3><a href="http://www.csselite.com/" target="_blank">CSS Elite</a></h3>
<p>CSS Elite features a clean, well-categorized and rated gallery. They also pull news from external websites to serve as a resource for you. Lots of social activity is seen on CSS Elite.</p>
<p><a href="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-elite.png"><img src="http://www.webmasterindex.net/wp-content/uploads/2009/12/css-elite.png" alt="css-elite" title="css-elite" width="574" height="280" class="aligncenter size-full wp-image-399" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/top-6-css-web-galleries-for-design-inspiration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Parameter Settings in Google Webmasters &#8211; Are You Using Them?</title>
		<link>http://www.webmasterindex.net/parameter-settings-in-google-webmasters-are-you-using-them/</link>
		<comments>http://www.webmasterindex.net/parameter-settings-in-google-webmasters-are-you-using-them/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 19:10:19 +0000</pubDate>
		<dc:creator>Ross Joo</dc:creator>
				<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Google Webmasters]]></category>
		<category><![CDATA[Robots.txt]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.webmasterindex.net/?p=378</guid>
		<description><![CDATA[With the recent addition of the parameter section in Google Webmasters, Google prefers that you use their feature instead of blocking them in your robots.txt file. Last week I wrote an article on <a href="http://www.webmasterindex.net/seo-how-to-write-a-robots-txt-file/">how to write a robots.txt file</a> and mentioned in the end that you should only disallow parameters for the MSNbots. I'll explain it further here.]]></description>
			<content:encoded><![CDATA[<p>With the recent addition of the parameter section in Google Webmasters, Google prefers that you use their feature instead of blocking them in your robots.txt file. Last week I wrote an article on <a href="http://www.webmasterindex.net/seo-how-to-write-a-robots-txt-file/">how to write a robots.txt file</a> and mentioned in the end that you should only disallow parameters for the MSNbots. I&#8217;ll explain it further here.</p>
<p><strong>What the hell are these parameters you&#8217;re talking about?</strong><br />
I&#8217;m talking about the extra parameters your website may be creating. URLs with extra &#8220;?&#8221; at the end of them where if you removed them it would be the exact same page (these are called canonical URLs). Here are some examples:</p>
<ul>
<li>www.mysite.com/index.php?<strong>ref_id=</strong>123</li>
<li>www.mysite.com/product?id=jeans&amp;<strong>session=</strong>123</li>
<li>www.mysite.com/?<strong>utm_source</strong>=</li>
</ul>
<p><strong>How do I use this new feature?</strong><br />
Log into your Google Webmasters account and goto Site configuration > Settings and you&#8217;ll see Parameter handling at the bottom. Google will give you a list of parameters they found, but you can also add your own. It&#8217;s not ideal to block every parameter listed since you should make sure it&#8217;s actually something you want Googlebot to ignore. Make sure you enter the parameters with no ? or = in them as Google will find those automatically.</p>
<p><strong>What do I ignore and what do I don&#8217;t ignore?</strong><br />
As always, ignore pages that have absolutely no value to your readers. I&#8217;m talking about duplicate content, useless dynamic pages, or pages with no value that have parameters. But there are certain pages that you will not want to ignore. Notice in one of the examples above (www.mysite.com/product?id=jeans&amp;<strong>session</strong>=123) I only bolded the &#8220;session&#8221; part. Why? Because &#8220;product?id=jeans&#8221; is probably a page you want Google to crawl and index. But the whole string, &#8220;product?id=jeans&#038;session=123&#8243; is probably the exact same page.</p>
<p><strong>Now that I&#8217;ve done that, what changes does my robots.txt need?</strong><br />
Take any and all parameters you set as ignore in Google Webmasters and make sure only msnbot ignores them.</p>
<p><code><br />
User-agent: msnbot/2.0b<br />
User-agent: msnbot/1.1</p>
<p># Examples<br />
Disallow: /?ref_id=*<br />
Disallow: /product?id=jeans&#038;*<br />
</code></p>
<p>You might be asking, why only msnbot? What about Yahoo? The reason I didn&#8217;t include Yahoo! is because Yahoo! Site Explorer offers similar features to Google&#8217;s: <strong>Dynamic URLs</strong> and <strong>Delete URLs</strong>. While these work not as great as Google, they basically (almost) do the same thing. If you don&#8217;t want to do the extra work, you can simply add Yahoo&#8217;s bot with MSN&#8217;s.</p>
<p><code><br />
User-agent: Slurp<br />
User-agent: msnbot/2.0b<br />
User-agent: msnbot/1.1<br />
</code></p>
<p><b>Any questions, comments, or suggestions? Feel free to comment or share the word!</b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmasterindex.net/parameter-settings-in-google-webmasters-are-you-using-them/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
