<?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>ZENVERSE &#187; SEO</title>
	<atom:link href="http://zenverse.net/category/web-development/seo-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://zenverse.net</link>
	<description>Design and Web Development</description>
	<lastBuildDate>Sun, 13 May 2012 15:26:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Add/Integrate Google +1 Plus One Button into WordPress</title>
		<link>http://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/</link>
		<comments>http://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 12:13:11 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=2026</guid>
		<description><![CDATA[Google recently introduced their own social button just like those we commonly see, such as Facebook Share, Tweet It, Digg It, etc. Just like Facebook and Twitter button that let you share content to your followers or friends, Google +1 button let people who love your content to recommend it on Google search. ]]></description>
			<content:encoded><![CDATA[<p>Google recently introduced their own social button just like those we commonly see, such as Facebook Share, Tweet It, Digg It, etc. Just like Facebook and Twitter button that let you share content to your followers or friends, Google +1 button let people who love your content to recommend it on Google search. The pages that you plusone-d (+1&#8242;d) can then be useful to your friends and contacts in your Google Account. They can see what you recommended, thus their search results will be something like this:</p>
<p><a href="http://zenverse.net/wp-content/uploads/2011/06/screen-capture.png"><img src="http://zenverse.net/wp-content/uploads/2011/06/screen-capture.png" alt="" title="screen-capture" width="323" height="93" class="alignnone size-full wp-image-2027" /></a></p>
<p>This feature can be turned off though, if you don&#8217;t like this. You can go to Google Account Settings > Under &#8220;+1 on non-Google sites&#8221; > Click &#8220;Edit&#8221; > Select &#8220;Disable&#8221;.</p>
<h3>Integrate Google +1 Button into WordPress Theme</h3>
<p>First of all, Google has its own code generator for the button located at <a target="_blank" href="http://www.google.com/webmasters/+1/button/">here</a>. Now. decide the style and size then come back to here again.</p>
<h5>Loading The Required Javascript</h5>
<p>Open your theme&#8217;s header.php, paste this or similar codes from the generator, ONCE ONLY, into &lt;head> tag:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2026code1'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20261"><td class="code" id="p2026code1"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;https://apis.google.com/js/plusone.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<h5>Adding The Button To Single Post / Page</h5>
<p>If you want your button to appear in single post or page, first open single.php or page.php, identify The Loop. More information about The Loop at <a target="_blank" href="http://codex.wordpress.org/The_Loop">here</a>. Next, paste this button render codes or the codes generated by google, after <?php the_content(); ?></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2026code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20262"><td class="code" id="p2026code2"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>g<span style="color: #339933;">:</span>plusone<span style="color: #339933;">&gt;&lt;/</span>g<span style="color: #339933;">:</span>plusone<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>The code above should make the button nicely, your page URL will be auto detected so nothing we need to change here.</p>
<h5>Adding The Button To Blog Index</h5>
<p>If you want your button to appear in blog index for every post, first open index.php, identify The Loop and paste this button render codes or the codes generated by google, after <?php the_content(); ?> or <?php the_excerpt(); ?></p>
<p>We need to include a href=&#8221;" attribute here because every post has their own URL. like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2026code3'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20263"><td class="code" id="p2026code3"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>g<span style="color: #339933;">:</span>plusone href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;/</span>g<span style="color: #339933;">:</span>plusone<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>In other words, no matter how your generated render codes looks like, just add the following href attribute into the plusone tag.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2026code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20264"><td class="code" id="p2026code4"><pre class="php" style="font-family:monospace;">href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php the_permalink(); ?&gt;&quot;</span></pre></td></tr></table></div>

<h3>Google Plus One Button, Live</h3>
<p>This is how my Google +1 Button for this page looks like:</p>
<p><script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script><br />
<g:plusone></g:plusone></p>
<h3>Useful Links</h3>
<p><a target="_blank" href="http://www.google.com/+1/button/">More Info about Google +1 Button</a><br />
<a target="_blank" href="http://www.google.com/webmasters/+1/button/">Google +1 Button Code Generator</a><br />
<a target="_blank" href="http://code.google.com/apis/+1button/">Google +1 Button API for developer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/integrate-google-1-plus-one-button-into-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>URL Canonicalization (Canonization) Using PHP</title>
		<link>http://zenverse.net/url-canonicalization-using-php/</link>
		<comments>http://zenverse.net/url-canonicalization-using-php/#comments</comments>
		<pubDate>Sun, 13 Feb 2011 15:45:46 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1772</guid>
		<description><![CDATA[When your website can be accessed via several URLs, such as http://www.example.com &#038; http://example.com, you might want to decide a best URL and use only that URL whenever you link back to your site, because this helps your site in terms of SEO.]]></description>
			<content:encoded><![CDATA[<p>When your website can be accessed via several URLs, such as http://www.example.com &#038; http://example.com, you might want to decide a best URL and use only that URL whenever you link back to your site, because this helps your site in terms of SEO.</p>
<h3>What is URL Canonicalization?</h3>
<p>According to <a href="http://www.mattcutts.com/blog/seo-advice-url-canonicalization/">Matt Cutt&#8217;s blog</a>:</p>
<blockquote><p>Q: What is a canonical url? Do you have to use such a weird word, anyway?<br />
A: Sorry that it’s a strange word; that’s what we call it around Google. Canonicalization is the process of picking the best url when there are several choices, and it usually refers to home pages.</p></blockquote>
<h3>The Main Idea</h3>
<p>Assume that a googlebot visited your website via http://example.com but you want your default URL to be http://www.example.com. First, what you need to do is, <strong>detect this situation</strong>, <strong>let the robots know</strong> which URL you want and set <strong>301 (permanent) redirect</strong> to that URL.</p>
<h3>Performing URL Canonicalization using PHP</h3>
<p>One very important variable we will need in the codes is the <strong><a target="_blank" href="http://php.net/manual/en/reserved.variables.server.php">$_SERVER</a></strong> which is a predefined variable. We will need $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] here.</p>
<blockquote><p><em><strong>$_SERVER['HTTP_HOST']</strong></em><br />
This variable returns the domain name of your website ONLY, without trailing slash and it includes www if your current address has it.</p>
<p>If your current page is:</p>
<ul>
<li>http://example.com &#8211; it returns example.com</li>
<li>http://example.com/ &#8211; it returns example.com</li>
<li>http://www.example.com &#8211; it returns www.example.com</li>
<li>http://www.example.com/ &#8211; it returns www.example.com</li>
<li>http://example.com/wordpress/ &#8211; it returns example.com</li>
<li>http://example.com/faq.php &#8211; it returns example.com</li>
<li>http://example.com/?p=9 &#8211; it returns example.com</li>
</ul>
</blockquote>
<blockquote><p><em><strong>$_SERVER['REQUEST_URI']</strong></em><br />
This variable returns URI which was given in order to access the page, a slash is always included.</p>
<p>If your current page is:</p>
<ul>
<li>http://example.com &#8211; it returns /</li>
<li>http://example.com/ &#8211; it returns /</li>
<li>http://www.example.com &#8211; it returns /</li>
<li>http://example.com/wordpress/ &#8211; it returns /wordpress/</li>
<li>http://example.com/wordpress/a-blog-post/ &#8211; it returns /wordpress/a-blog-post/</li>
<li>http://example.com/faq.php &#8211; it returns /faq.php</li>
<li>http://example.com/?p=9 &#8211; it returns /?p=9</li>
</ul>
</blockquote>
<p>Here I have 2 examples of codes, from www to non www and vice versa.</p>
<h4>1. From Non-WWW to WWW</h4>
<p>This is the codes you should use if you want to do a permanent redirection from http://example.com to http://www.example.com</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1772code5'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p17725"><td class="code" id="p1772code5"><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><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'www.'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTTP/1.1 301 Moved Permanently'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: http://www.'</span><span style="color: #339933;">.</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</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: #009900;">&#41;</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>It simply check if the first 4 characters are not &#8220;www.&#8221;, then it set a permanent redirection to the www version.</p>
<h4>2. From WWW to Non-WWW</h4>
<p>This is the codes you should use if you want to do a permanent redirection from http://www.example.com to http://example.com</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1772code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p17726"><td class="code" id="p1772code6"><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><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'www.'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTTP/1.1 301 Moved Permanently'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Location: http://'</span><span style="color: #339933;">.</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_HOST'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</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: #009900;">&#41;</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>It simply check if the first 4 characters are &#8220;www.&#8221;, then it set a permanent redirection to the non-www version.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/url-canonicalization-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Common xHTML Validation Errors</title>
		<link>http://zenverse.net/5-common-xhtml-validation-errors/</link>
		<comments>http://zenverse.net/5-common-xhtml-validation-errors/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 02:37:44 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1462</guid>
		<description><![CDATA[You can validate your website using this <a target="_blank" rel="nofollow" href="http://validator.w3.org/">validation service</a>. Recently I have updated all my free wordpress themes to be 100% xhtml valid. After validating each of them, I found that there were some common errors...]]></description>
			<content:encoded><![CDATA[<p>You can validate your website using this <a target="_blank" rel="nofollow" href="http://validator.w3.org/">validation service</a>. If you are using Opera, validating a website is just one click away : Right Click -> Validate. </p>
<p>Recently I have updated all my free wordpress themes to be 100% xhtml valid. After validating each of them, I found that there were some common errors, which can be solved by:</p>
<h3>1. Adding alternate text to &lt;img> tags</h3>
<p>This is also known for improving your site&#8217;s SEO. Whenever you use &lt;img> tags you have to add an alternate text. If you do not have alernate text to add, at least leave it empty like this alt=&quot;&quot;</p>
<p>Invalid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code7'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14627"><td class="code" id="p1462code7"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;&quot; /&gt;</pre></td></tr></table></div>

<p>Valid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code8'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14628"><td class="code" id="p1462code8"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;&quot; alt=&quot;&quot; /&gt;</pre></td></tr></table></div>

<h3>2. Closing self-closing tags</h3>
<p>Tags like &lt;img> , &lt;br> , &lt;meta> need to be self-closed.</p>
<ul>
<li>&lt;img> -> &lt;img /></li>
<li>&lt;br> -> &lt;br /></li>
<li>&lt;meta> -> &lt;meta /></li>
</ul>
<p>Some other self-closing tags are:</p>
<ul>
<li>&lt;area /></li>
<li>&lt;base /></li>
<li>&lt;basefont /></li>
<li>&lt;hr /></li>
<li>&lt;input /></li>
<li>&lt;link /></li>
</ul>
<h3>3. Do not use uppercase in tags</h3>
<p>One example, the meta verification tag given by <a target="_blank" rel="nofollow" href="http://siteexplorer.search.yahoo.com/">Yahoo! Site Explorer</a> (Yahoo webmaster tool) is always in uppercase and not self-closed, which make my page invalid.</p>
<p>You have to manually change the word &#8220;meta&#8221; to lowercase and self-close the meta tag.</p>
<p>Given by Yahoo! &#8211; invalid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code9'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14629"><td class="code" id="p1462code9"><pre class="html" style="font-family:monospace;">&lt;META name=&quot;y_key&quot; content=&quot;xxxx&quot; &gt;</pre></td></tr></table></div>

<p>Edited to make it valid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code10'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p146210"><td class="code" id="p1462code10"><pre class="html" style="font-family:monospace;">&lt;meta name=&quot;y_key&quot; content=&quot;xxxx&quot; /&gt;</pre></td></tr></table></div>

<h3>4. Validating inline javascript</h3>
<p>If you have javascript codes in your page, you have to make it valid as follow:</p>
<p>Invalid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code11'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p146211"><td class="code" id="p1462code11"><pre class="html" style="font-family:monospace;">I will output &quot;Hello world!&quot; using javascript.&lt;br /&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
document.write('Hello world!');
&lt;/script&gt;</pre></td></tr></table></div>

<p>Valid</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1462code12'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p146212"><td class="code" id="p1462code12"><pre class="html" style="font-family:monospace;">I will output &quot;Hello world!&quot; using javascript.&lt;br /&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
//&lt;![CDATA[
document.write('Hello world!');
//]]&gt;
&lt;/script&gt;</pre></td></tr></table></div>

<p>By adding cdata tag, you can make your inline javascript codes to be valid. If your javascript loaded from external js file, it will not make your page invalid so you do not have to worry about that.</p>
<h3>5. Validating video/embed codes such as youtube video</h3>
<p>By default, the embed codes given by youtube are not xhtml valid. </p>
<p>To make it valid, you can refer to <a target="_blank" href="http://zenverse.net/embed-youtube-videos-tips-xhtml-validation/">the guide</a> I wrote on last month.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/5-common-xhtml-validation-errors/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Embedding Youtube Videos &#8211; Tips and Passing xHTML Validation</title>
		<link>http://zenverse.net/embed-youtube-videos-tips-xhtml-validation/</link>
		<comments>http://zenverse.net/embed-youtube-videos-tips-xhtml-validation/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 06:22:39 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1376</guid>
		<description><![CDATA[If you use the default code given by youtube to embed a video, you will notice that it failed to pass xHTML validation. This is because &#60;embed> was deprecated in favor of the &#60;object>&#60;/object> element.]]></description>
			<content:encoded><![CDATA[<p>If you use the default code given by youtube to embed a video, you will notice that it failed to pass xHTML validation. This is because &lt;embed> was deprecated in favor of the &lt;object>&lt;/object> element.</p>
<h3>Embed Youtube Video and Pass xHTML Validation at the same time</h3>
<p>This is the codes given by youtube:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1376code13'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p137613"><td class="code" id="p1376code13"><pre class="html" style="font-family:monospace;">&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;hl=en_US&amp;fs=1&amp;&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
&lt;embed src=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;hl=en_US&amp;fs=1&amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre></td></tr></table></div>

<p>After some changes, it is now xHTML validated codes:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1376code14'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p137614"><td class="code" id="p1376code14"><pre class="html" style="font-family:monospace;">&lt;object type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;344&quot; data=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;amp;hl=en_US&amp;amp;fs=1&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;amp;hl=en_US&amp;amp;fs=1&quot; /&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;
&lt;/object&gt;</pre></td></tr></table></div>

<p>What has changed:</p>
<ul>
<li>&lt;embed> tag has been removed</li>
<li>Added <em>type=&#8221;application/x-shockwave-flash&#8221;</em>  to &lt;object> tag</li>
<li>Added <em>data=&#8221;"</em> attribute to &lt;object> tag</li>
<li>All &amp; in the URL has been changed to &amp;amp;</li>
<li>&lt;param> tag is now self-closed</li>
</ul>
<p>&nbsp;</p>
<h3>Tips and Tricks When Embedding Youtube Video</h3>
<p>There are some <a rel="nofollow" href="http://code.google.com/apis/youtube/player_parameters.html">built-in parameters</a> that you can add to change the behaviour/style of embedded video.</p>
<p><strong>Disable Related Videos</strong><br />
I don&#8217;t like to see related videos when I mouseover the video container. You can add <em>&amp;amp;rel=0</em> to the <strong>two</strong> video urls in the code. Based on the xHTML validated codes above, now it would look like:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1376code15'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p137615"><td class="code" id="p1376code15"><pre class="html" style="font-family:monospace;">&lt;object type=&quot;application/x-shockwave-flash&quot; width=&quot;425&quot; height=&quot;344&quot; data=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&quot;&gt;
&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/VEL5ABddZ0k&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;rel=0&quot; /&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot; /&gt;
&lt;/object&gt;</pre></td></tr></table></div>

<p><strong>Disable Search</strong><br />
To disable the search box from displaying when the video is minimized, add <em>&amp;amp;showsearch=0</em> to the two URLs</p>
<p><strong>Auto Play</strong><br />
By default, auto play is off. To enable it, add <em>&amp;amp;autoplay=1</em> to the two URLs</p>
<p><strong>Custom Start Time</strong><br />
You can change the start time of the video, thus embeding only part of a video.<br />
For example, if you want the video to start from 30th second, add <em>&amp;amp;start=30</em>  to the two URLs</p>
<p><strong>More</strong><br />
There are more options you can change, such as:</p>
<ul>
<li>Loop (replay video)</li>
<li>Border/colour</li>
<li>Enable HD playback</li>
<li>Disable the keyboard controls</li>
</ul>
<p>For the full list and info, please refer to <a rel="nofollow" href="http://code.google.com/apis/youtube/player_parameters.html">this page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/embed-youtube-videos-tips-xhtml-validation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create SEO Friendly URLs With Htaccess Mod Rewrite in 3 Easy Steps</title>
		<link>http://zenverse.net/seo-friendly-urls-with-htaccess/</link>
		<comments>http://zenverse.net/seo-friendly-urls-with-htaccess/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 09:43:27 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1281</guid>
		<description><![CDATA[An example of SEO friendly URL can be seen in this page. Compare it with urls like http://mysite.com/?t=34 , you will find it easier to remember and the it also clearly tells you what this page is about. Furthermore, the words in the URL might match the search keywords, bringing more traffic from search engines.]]></description>
			<content:encoded><![CDATA[<h3>What is SEO Friendly URL and Why?</h3>
<p>An example of SEO friendly URL can be seen in this page. Compare it with urls like http://mysite.com/?t=34 , you will find it easier to remember and the it also clearly tells you what this page is about. Furthermore, the words in the URL might match the search keywords, bringing more traffic from search engines.</p>
<h3>Make SEO friendly URL yourself</h3>
<p>I don&#8217;t have to worry about SEO friendly URL in WordPress since its already built-in. However, I need it for my <a href="http://themes.zenverse.net/">premium wordpress themes</a> website, which is not based on WordPress. So I started to look into this matter. </p>
<p>Using htaccess and mod rewrite, you can make SEO friendly yourself in 3 easy steps.</p>
<h5>1. Creating .htaccess file</h5>
<p>Open NotePad (yes, the windows notepad) > File > Save As > Change the &#8220;Save as Type&#8221; to &#8220;All Files&#8221; > enter &#8220;.htaccess&#8221; as the name and press Save. You&#8217;ve created a htacces file. </p>
<p>Now paste this codes below into it.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code16'); return false;">View Code</a> TEXT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128116"><td class="code" id="p1281code16"><pre class="text" style="font-family:monospace;">Options +FollowSymLinks
&nbsp;
RewriteEngine On</pre></td></tr></table></div>

<p>The first line <strong>Options +FollowSymLinks</strong> is required for some server configurations.</p>
<h5>2. Create your own rewrite rule</h5>
<p><strong>Example 1</strong><br />
For example, if you want to change links like http://mysite.com/index.php?topic=rules to http://mysite.com/topic/rules/, here&#8217;s the rewrite rule.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code17'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128117"><td class="code" id="p1281code17"><pre class="htaccess" style="font-family:monospace;">Options +FollowSymLinks
&nbsp;
RewriteEngine On
RewriteRule ^topic/([a-zA-Z0-9]+)/$ index.php?topic=$1</pre></td></tr></table></div>

<p>&bull; Like regular expressions, the [a-zA-Z0-9] matches lower and uppercase of alphabets and numbers.<br />
&bull; The asterisk inside the brackets + is a quantifier that match 1 occurence to infinite occurences.<br />
&bull; Combining them, ([a-zA-Z0-9]+) matches alphanumerics of at least 1 character.<br />
&bull; The caret ^ means &#8220;start with&#8221;, meaning the URL starts with the word &#8220;topic&#8221;.<br />
&bull; The dollar sign $ means &#8220;end&#8221;, meaning the URL ends with a slash.<br />
&bull; The $1 is backreference, it carries the content of the first group of brackets. </p>
<p>In other words, when user enters http://mysite.com/topic/faqs/ , the page being called and run would be http://mysite.com/index.php?topic=faqs</p>
<p><strong>Example 2</strong><br />
If you want to change URLs like http://mysite.com/index.php?product=productname&#038;price=30 to http://mysite.com/products/productname/30/. Basically its similar to above.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code18'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128118"><td class="code" id="p1281code18"><pre class="htaccess" style="font-family:monospace;">Options +FollowSymLinks
&nbsp;
RewriteEngine On
RewriteRule ^products/([a-zA-Z]+)/([0-9]+)/$ index.php?product=$1&amp;price=$2</pre></td></tr></table></div>

<p>&bull; The [0-9] in matches numbers only.<br />
&bull; The plus sign is a quantifier that match 1 or more occurences.<br />
&bull; Combining them, ([0-9]+) means 1 or more numbers.<br />
&bull; Similarly, $1 will be the first brackets : product name and $2 would be the second brackets : price.</p>
<p><strong>Example 3</strong><br />
If you want to change URLs like http://mysite.com/article.php?id=45 to http://mysite.com/article-45.html, here&#8217;s how:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code19'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128119"><td class="code" id="p1281code19"><pre class="htaccess" style="font-family:monospace;">Options +FollowSymLinks
&nbsp;
RewriteEngine On
RewriteRule ^article-([0-9]+)\.html$ article.php?id=$1</pre></td></tr></table></div>

<p>&bull; The new thing here is the \. (backslash followed by a dot).<br />
&bull; The backslash here &#8220;escapes&#8221; the dot, so that the dot means a real dot instead of &#8220;anything&#8221;.</p>
<h3>3. Extra Stuff</h3>
<h5>Custom 404 error page</h5>
<p>Put this in your htaccess if you would like to have a custom 404 error page instead of the default one.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code20'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128120"><td class="code" id="p1281code20"><pre class="htaccess" style="font-family:monospace;">ErrorDocument 404 /404.php</pre></td></tr></table></div>

<p>Change the 404.php to your page.</p>
<h5>Disable directory browsing</h5>
<p>For security purpose, its best to disable directory browsing so that people won&#8217;t know what files you have. Use this :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code21'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128121"><td class="code" id="p1281code21"><pre class="htaccess" style="font-family:monospace;">Options All -Indexes</pre></td></tr></table></div>

<h5>Protect .htaccess files</h5>
<p>This should disallow other to access your .htaccess file, just like disallowing others to access your wordpress&#8217;s wp-config.php</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1281code22'); return false;">View Code</a> HTACCESS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p128122"><td class="code" id="p1281code22"><pre class="htaccess" style="font-family:monospace;">&lt;files .htaccess&gt;
order allow,deny
deny from all
&lt;/files&gt;</pre></td></tr></table></div>

<h3>Others references you might need</h3>
<p><a rel="nofollow" href="http://www.webforgers.net/mod-rewrite/mod-rewrite-syntax.php">Mod Rewrite Syntax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/seo-friendly-urls-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>SEO for PHPBB3 &#8211; Site Title, Meta Keywords and Meta Descriptions</title>
		<link>http://zenverse.net/seo-for-phpbb3-site-title-meta-keywords-and-meta-descriptions/</link>
		<comments>http://zenverse.net/seo-for-phpbb3-site-title-meta-keywords-and-meta-descriptions/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 16:33:18 +0000</pubDate>
		<dc:creator>Zen</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[phpbb]]></category>

		<guid isPermaLink="false">http://zenverse.net/?p=1275</guid>
		<description><![CDATA[No offence, but the fact is phpBB has a lot of weaknesses, not seo-friendly being one of them. However, with some simple steps you can improve the SEO of your phpBB. Here in this guide, we will add some basic SEO features to your phpBB by using a better Site Title, adding Meta Keywords and Meta Descriptions.]]></description>
			<content:encoded><![CDATA[<p>No offence, but the fact is phpBB has a lot of weaknesses, not seo-friendly being one of them. However, with some simple steps you can improve the SEO of your phpBB. Here in this guide, we will add some basic SEO features to your phpBB by using a better Site Title, adding Meta Keywords and Meta Descriptions. I am using phpBB 3.0.5 for this guide.</p>
<h3>A Better Site Title</h3>
<p>This is the default site title for phpBB subSilver2 theme.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code23'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127523"><td class="code" id="p1275code23"><pre class="html" style="font-family:monospace;">&lt;title&gt;{SITENAME} &amp;bull; &lt;!-- IF S_IN_MCP --&gt;{L_MCP} &amp;bull; &lt;!-- ELSEIF S_IN_UCP --&gt;{L_UCP} &amp;bull; &lt;!-- ENDIF --&gt;{PAGE_TITLE}&lt;/title&gt;</pre></td></tr></table></div>

<p>According to the codes above, no matter where you are, your site name would be shown first. This is recommended for your main forum index, but not for viewforum and viewtopic. For better SEO, your forum title or topic title should appear first. That can be achieved by the following codes.</p>
<p>Open your template&#8217;s overall_header.php, look for &lt;title>&lt;/title> tags (like above) and replace it with the following :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code24'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127524"><td class="code" id="p1275code24"><pre class="html" style="font-family:monospace;">&lt;title&gt;&lt;!-- IF S_IN_MCP --&gt;{L_MCP} &amp;bull; &lt;!-- ELSEIF S_IN_UCP --&gt;{L_UCP} &amp;bull; &lt;!-- ENDIF --&gt;
   &lt;!-- IF SCRIPT_NAME == &quot;index&quot; --&gt;{SITENAME} - {SITE_DESCRIPTION}
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;viewforum&quot; --&gt;{FORUM_NAME} | {SITENAME}
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;viewtopic&quot; --&gt;{TOPIC_TITLE} | {SITENAME}
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;posting&quot; --&gt;&lt;!-- IF S_USER_LOGGED_IN --&gt;&lt;!-- IF TOPIC_TITLE --&gt;{L_TOPIC} - {TOPIC_TITLE}&lt;!-- ELSE --&gt;{L_FORUM}&lt;!-- IF FORUM_NAME --&gt; - {FORUM_NAME}&lt;!-- ENDIF --&gt;&lt;!-- ENDIF --&gt;&lt;!-- ELSE --&gt;{SITENAME}&lt;!-- ENDIF --&gt;
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;ucp&quot; --&gt;{L_VIEWING_UCP} - {PAGE_TITLE}&lt;!-- IF CUR_FOLDER_NAME --&gt;{CUR_FOLDER_NAME}&lt;!-- ENDIF --&gt;
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;mcp&quot; --&gt;{L_VIEWING_MCP}&lt;!-- IF PAGE_TITLE --&gt; - {PAGE_TITLE}&lt;!-- ENDIF --&gt;&lt;!-- IF L_TITLE --&gt; - {L_TITLE}&lt;!-- ENDIF --&gt;
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;faq&quot; --&gt;{L_VIEWING_FAQ} - {L_FAQ_TITLE}
    &lt;!-- ELSEIF SCRIPT_NAME == &quot;search&quot; --&gt;{L_SEARCH} &lt;!-- IF SEARCH_TITLE --&gt; - {SEARCH_TITLE}&lt;!-- ENDIF --&gt;&lt;!-- IF SEARCH_MATCHES --&gt; - {SEARCH_MATCHES}&lt;!-- ENDIF --&gt; | {SITENAME}
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;memberlist&quot; --&gt;&lt;!-- IF S_USER_LOGGED_IN --&gt;{PAGE_TITLE}
    &lt;!-- IF S_SHOW_GROUP --&gt; - {GROUP_NAME}&lt;!-- ENDIF --&gt; | {SITENAME}&lt;!-- ELSE --&gt;{SITENAME}&lt;!-- ENDIF --&gt;
   &lt;!-- ELSEIF SCRIPT_NAME == &quot;chat&quot; --&gt;{L_VIEWING_CHAT}
   &lt;!-- ELSE --&gt;Viewing Undefined page&lt;!-- ENDIF --&gt;&lt;/title&gt;</pre></td></tr></table></div>

<p>This is an edited version of codes taken from another website (I forgot). I found this site title suits me well. Change things around to suit your need.</p>
<p>Now here&#8217;s how your site title looks like:</p>
<p><em>Forum index :</em> Site Name &#8211; Forum Description<br />
<em>View Forum :</em> Forum Title | Site Name<br />
<em>View Topic : </em>Topic Title | Site Name </p>
<h3>Adding Meta Descriptions</h3>
<p>Also in overall_header.php, add this at anywhere in the &lt;head> tag.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code25'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127525"><td class="code" id="p1275code25"><pre class="html" style="font-family:monospace;">&lt;meta name=&quot;description&quot; content=&quot;&lt;!-- IF SCRIPT_NAME == &quot;viewforum&quot; --&gt;{FORUM_DESC}
&lt;!-- ELSEIF SCRIPT_NAME == &quot;viewtopic&quot; --&gt;{MESSAGE_TRIMMED}&lt;!-- ELSE --&gt;YOUR DEFAULT META CONTENT&lt;!-- ENDIF --&gt;&quot; /&gt;</pre></td></tr></table></div>

<p>Replace the &#8220;YOUR DEFAULT META CONTENT&#8221; with the meta description of your site. It will be used on pages when its not viewforum or viewtopic.</p>
<h5>MESSAGE_TRIMMED is undefined, yet.</h5>
<p>As you can see the template tag {MESSAGE_TRIMMED} is undefined. {MESSAGE_TRIMMED} is a new template tag that should carry not more than 150 characters of the content of first post because most search engines use a maximum of 160 characters for the description.</p>
<p>Open your_phpbb_root/viewtopic.php, look for:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code26'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127526"><td class="code" id="p1275code26"><pre class="php" style="font-family:monospace;"><a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'IN_PHPBB'</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></pre></td></tr></table></div>

<p>Replace with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code27'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127527"><td class="code" id="p1275code27"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$zvloop</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'IN_PHPBB'</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></pre></td></tr></table></div>

<p>Next, look for:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code28'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127528"><td class="code" id="p1275code28"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cp_row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'row'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <a href="http://www.php.net/sizeof"><span style="color: #990000;">sizeof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cp_row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'row'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>If you can&#8217;t find the line, stop finding and paste the codes below after the big $postrow array. if you found it, paste this codes below before the line:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code29'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127529"><td class="code" id="p1275code29"><pre class="php" style="font-family:monospace;">  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$zvloop</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$zv_topic_trimmed</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strip_tags"><span style="color: #990000;">strip_tags</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$postrow</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'MESSAGE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">150</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$zvloop</span><span style="color: #339933;">++;</span>
  <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Lastly, look for:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code30'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127530"><td class="code" id="p1275code30"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Output the page</span>
page_header<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lang</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'VIEW_TOPIC'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' - '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$topic_data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'topic_title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Replace it with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code31'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127531"><td class="code" id="p1275code31"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$template</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign_vars</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'MESSAGE_TRIMMED'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$zv_topic_trimmed</span>
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Output the page</span>
page_header<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lang</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'VIEW_TOPIC'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' - '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$topic_data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'topic_title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>That&#8217;s it for meta description.</p>
<h3>Adding Meta Keywords</h3>
<p>Although meta keywords is not important anymore, there&#8217;s no harm adding it.</p>
<p>Paste this after your meta description and change the keywords. It wll be used throughout your forum so use suitable keywords.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1275code32'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p127532"><td class="code" id="p1275code32"><pre class="html" style="font-family:monospace;">&lt;meta name=&quot;keywords&quot; content=&quot;seperate,your,keywords,using,comma,without,any,blank,space&quot; /&gt;</pre></td></tr></table></div>

<p>Any comments or corrections are welcomed.</p>
]]></content:encoded>
			<wfw:commentRss>http://zenverse.net/seo-for-phpbb3-site-title-meta-keywords-and-meta-descriptions/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

