<?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>TechBuji.com &#187; Wordpress</title>
	<atom:link href="http://www.techbuji.com/tips/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techbuji.com/tips</link>
	<description>Web 2.0 and Tech News</description>
	<lastBuildDate>Wed, 07 Dec 2011 17:40:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>NextGEN Gallery causing Page Not Found error and Duplicate content pages</title>
		<link>http://www.techbuji.com/tips/2011/11/24/nextgen-gallery-causing-page-not-found-error-and-duplicate-content-pages/</link>
		<comments>http://www.techbuji.com/tips/2011/11/24/nextgen-gallery-causing-page-not-found-error-and-duplicate-content-pages/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 15:29:18 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2200</guid>
		<description><![CDATA[I started using Nextgen Gallery [ngg] longtime back. Its a wonderful plugin and very easy to use. Sometime back, ngg started showing seo friendly urls. ie, Urls in this format...]]></description>
			<content:encoded><![CDATA[<p>I started using Nextgen Gallery [ngg] longtime back. Its a wonderful plugin and very easy to use.</p>
<p>Sometime back, ngg started showing seo friendly urls.</p>
<p>ie, Urls in this format &#8211; www.bikes4sale.in/wp/1272/yamaha-ybr-wallpapers/nggallery/image/yamaha-ybr-2/</p>
<p>But something screwed up in their code.</p>
<p>After some days i noticed more than 10,000 page not found errors in Google Webmasters.</p>
<p>There were pages with urls like<br />
www.bikes4sale.in/wp/page/71/?nggpage=vujjjqwofeiqevsp<br />
and<br />
www.bikes4sale.in/wp/page/49/?album=qbiwjwwgeqcofh&#038;pid=265&#038;pageid=605</p>
<p>And the images in galleries in that page had urls like<br />
www.bikes4sale.in/wp/1272/yamaha-ybr-wallpapers/nggallery/image/yamaha-ybr-2/page-vujjjqwofeiqevsp<br />
and these urls were returning page not found error.</p>
<p><b>Solution for the problem</b><br />
So i came up with this solution.</p>
<p><strong>1.</strong> Tell google to ignore pages with url parameters nggpage and album.<br />
Go to Google Webmasters -> Site configuration -> Url parameters</p>
<p><strong>2.</strong> Open nggfunctions.php in nextgen plugin directory.</p>
<p>a. Go to the lines containing $nggpage = get_query_var(&#8216;nggpage&#8217;);<br />
   Add the following line below those lines.<br />
   if(!empty( $nggpage ) &#038;&#038; !is_numeric($nggpage)) $nggpage = null;<br />
   This will ignore junk nggpage url parameters.</p>
<p>b. Go to the lines containing $album = get_query_var(&#8216;album&#8217;);<br />
   Add the following line below those lines.<br />
   if(!empty( $album) &#038;&#038; !is_numeric($album)) $album= null;<br />
   This will ignore junk album url parameters.</p>
<p><strong>3.</strong> To block search engines from crawling the huge duplicate pages created by Nextgen gallery, i added the following lines in my robots.txt</p>
<p>User-Agent: *<br />
Allow: /<br />
Disallow: /wp/*?nggpage=<br />
Disallow: /wp/*&#038;nggpage=<br />
Disallow: /wp/*?album=<br />
Disallow: /wp/*&#038;album=<br />
Disallow: /wp/*/page-a<br />
Disallow: /wp/*/page-b<br />
Disallow: /wp/*/page-c<br />
Disallow: /wp/*/page-d<br />
Disallow: /wp/*/page-e<br />
Disallow: /wp/*/page-f<br />
Disallow: /wp/*/page-g<br />
Disallow: /wp/*/page-h<br />
Disallow: /wp/*/page-i<br />
Disallow: /wp/*/page-j<br />
Disallow: /wp/*/page-k<br />
Disallow: /wp/*/page-l<br />
Disallow: /wp/*/page-m<br />
Disallow: /wp/*/page-n<br />
Disallow: /wp/*/page-o<br />
Disallow: /wp/*/page-p<br />
Disallow: /wp/*/page-q<br />
Disallow: /wp/*/page-r<br />
Disallow: /wp/*/page-s<br />
Disallow: /wp/*/page-t<br />
Disallow: /wp/*/page-u<br />
Disallow: /wp/*/page-v<br />
Disallow: /wp/*/page-w<br />
Disallow: /wp/*/page-x<br />
Disallow: /wp/*/page-y<br />
Disallow: /wp/*/page-z<br />
Disallow: /wp/*/wp-admin</p>
<p><b>Please Note</b> My wordpress is installed under the folder &#8220;wp&#8221; and hence the robots.txt rule starts with /wp/<br />
Thanks to <a href="http://www.webtlk.com/2008/02/16/avoiding-duplicate-content-a-google-issue/" target="_blank">www.webtlk.com/2008/02/16/avoiding-duplicate-content-a-google-issue/</a> for the tip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2011/11/24/nextgen-gallery-causing-page-not-found-error-and-duplicate-content-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discard WordPress Comments with Author Url</title>
		<link>http://www.techbuji.com/tips/2011/04/16/discard-wordpress-comments-with-author-url/</link>
		<comments>http://www.techbuji.com/tips/2011/04/16/discard-wordpress-comments-with-author-url/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 08:13:01 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2180</guid>
		<description><![CDATA[If you find too many spam comments in your wordpress posts, follow these steps to discard WordPress comments with Author Url. 1. Hide the Url textbox in the post page....]]></description>
			<content:encoded><![CDATA[<p>If you find too many spam comments in your wordpress posts, follow these steps to discard WordPress comments with Author Url.</p>
<p>1. Hide the Url textbox in the post page. If you do this genuine users wont add Author Urls.<br />
2. Open wp-comments-post.php file in the wordpress installed directory. Add the following block to the file.</p>
<p><code>if( $comment_author_url ) {<br />
  echo 'Error occured. Please contact administrator';<br />
  exit;<br />
}<br />
</code></p>
<p>This should be added just below the following block which comes at around Line no 50.<br />
<code>$comment_author       = ( isset($_POST['author']) )  ? trim(strip_tags($_POST['author'])) : null;<br />
$comment_author_email = ( isset($_POST['email']) )   ? trim($_POST['email']) : null;<br />
$comment_author_url   = ( isset($_POST['url']) )     ? trim($_POST['url']) : null;<br />
$comment_content      = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null;<br />
</code></p>
<p>NB: You have to do this after every wordpress upgradation.</p>
<p>And if you want to discard wordpress comments with author email ending with mail.ru, use the following code.<br />
<code>if( $comment_author_url || stristr($comment_author_email, '@mail.ru') ) {<br />
  echo 'Error occured. Please contact administrator';<br />
  exit;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2011/04/16/discard-wordpress-comments-with-author-url/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Disable and Remove WordPress Post Revisions</title>
		<link>http://www.techbuji.com/tips/2010/10/07/disable-and-remove-wordpress-post-revisions/</link>
		<comments>http://www.techbuji.com/tips/2010/10/07/disable-and-remove-wordpress-post-revisions/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 17:33:20 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2168</guid>
		<description><![CDATA[Disable Post Revisions To disable Post Revisions in WordPress, add the following line to wp-config.php file. define('WP_POST_REVISIONS', false); Delete Post Revisions To delete all existing post revisions, run the following...]]></description>
			<content:encoded><![CDATA[<p><strong>Disable Post Revisions</strong></p>
<p>To disable Post Revisions in WordPress, add the following line to wp-config.php file.</p>
<pre>define('WP_POST_REVISIONS', false);</pre>
<p><strong>Delete Post Revisions</strong></p>
<p>To delete all existing post revisions, run the following query on your wordpress database. Do backup your db before trying this.</p>
<pre>DELETE FROM 'wp_posts' WHERE post_type='revision'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2010/10/07/disable-and-remove-wordpress-post-revisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplest WordPress Theme</title>
		<link>http://www.techbuji.com/tips/2010/09/24/simplest-wordpress-theme/</link>
		<comments>http://www.techbuji.com/tips/2010/09/24/simplest-wordpress-theme/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 13:49:57 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2149</guid>
		<description><![CDATA[Introducing a minimalist and simple wordpress theme &#8211; Simplest It has less than 100 lines of PHP and less than 100 lines of CSS.  And the number of files is...]]></description>
			<content:encoded><![CDATA[<p>Introducing a minimalist and simple wordpress theme &#8211; Simplest</p>
<p>It has less than 100 lines of PHP and less than 100 lines of CSS.  And the number of files is just 4.</p>
<p>If you are a developer and want to learn theme development, then this is the best theme for a starter.</p>
<p>Theme website &#8211; <a href="http://trevorturk.com/2010/09/20/new-wordpress-theme-simplest/" target="_blank">Simplest</a></p>
<p>Theme page in wordpress &#8211; <a href="http://wordpress.org/extend/themes/simplest" target="_blank">Simplest</a></p>
<p>Example site &#8211; <a href="http://www.arunthomaskb.com/tweets/" target="_blank">ArunThomasKb.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2010/09/24/simplest-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0 Released</title>
		<link>http://www.techbuji.com/tips/2010/06/18/wordpress-3-0-released/</link>
		<comments>http://www.techbuji.com/tips/2010/06/18/wordpress-3-0-released/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 06:49:10 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2029</guid>
		<description><![CDATA[Read the article on WordPress 3.0 Release]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/development/2010/06/thelonious/" target="_blank">Read the article on WordPress 3.0 Release</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=BQtfIEY1&amp;width=640&amp;height=360&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2010/06/18/wordpress-3-0-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution for &#8220;Allowed memory size of 33554432 bytes exhausted&#8221; wordpress error</title>
		<link>http://www.techbuji.com/tips/2009/11/13/solution-for-allowed-memory-size-of-33554432-bytes-exhausted-wordpress-error/</link>
		<comments>http://www.techbuji.com/tips/2009/11/13/solution-for-allowed-memory-size-of-33554432-bytes-exhausted-wordpress-error/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:01:42 +0000</pubDate>
		<dc:creator>TechBuji</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.techbuji.com/tips/?p=2025</guid>
		<description><![CDATA[Solution 1: Disable all plugins. And then try upgrading wordpress Solution 2: Open wp-config.php file in the root directory of wordpress installation and add define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;64M&#8217;); at the very beginning...]]></description>
			<content:encoded><![CDATA[<p><strong>Solution 1:</strong><br />
Disable all plugins. And then try upgrading wordpress</p>
<p><strong>Solution 2:</strong><br />
Open wp-config.php file in the root directory of wordpress installation and add define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;64M&#8217;); at the very beginning after</p>
<p><strong>Solution 3:</strong><br />
Open wp-settings.php file in the root folder of wordpress installation.<br />
Change 32M to 64M in line 13</p>
<p><strong>Solution 4:</strong><br />
Manual Upgradation. Download the zip file, extract it and upload to your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techbuji.com/tips/2009/11/13/solution-for-allowed-memory-size-of-33554432-bytes-exhausted-wordpress-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

