<?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>Ashfame &#124; Tech Blog &#187; Blogging</title>
	<atom:link href="http://blog.ashfame.com/category/blogging/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashfame.com</link>
	<description>Hacking life of Power Users and Webmasters</description>
	<lastBuildDate>Thu, 15 Dec 2011 23:35:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.ashfame.com/?pushpress=hub'/>
<cloud domain='blog.ashfame.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Chrome extension to display unread emails in Gmail</title>
		<link>http://blog.ashfame.com/2010/03/chrome-extension-display-unread-emails-gmail/</link>
		<comments>http://blog.ashfame.com/2010/03/chrome-extension-display-unread-emails-gmail/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 07:10:00 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[google apps]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=724</guid>
		<description><![CDATA[Email is a good communication tool but it also tends to be the one in which we waste most of our time by continuously checking for new emails and unread mails instead of dealing with them in batch which can save a lot of time and is an efficient approach. I am also in a [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/10/enable-dual-triple-view-horizontal-vertical-chrome/" rel="bookmark">Enable Dual or Triple View both horizontally or vertically in Google Chrome</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/google-apps-for-domains-emails/" rel="bookmark">Setup Google Apps for managing domain emails</a><!-- (19.2)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/dual-window-hack-google-chrome-javascript-plugin/" rel="bookmark">Dual Window hack in Google Chrome [Javascript Plugin]</a><!-- (18.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/display-posts-from-another-wordpress-installation/" rel="bookmark">Display posts from another WordPress installation</a><!-- (17.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/05/view-html-headers-firefox-google-chrome/" rel="bookmark">Examine HTML headers in Firefox and Google Chrome</a><!-- (17.6)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Email is a good communication tool but it also tends to be the one in which we waste most of our time by continuously checking for new emails and unread mails instead of dealing with them in batch which can save a lot of time and is an efficient approach. I am also in a habit of checking my <a href="http://gmail.com">Gmail</a> every now and then. That’s why I like to keep it close and then check the emails after fixed amount of time, like half hour or an hour.</p>
<p>I switched to Google chrome as my default browser some time back as it tends to react fast when it comes to my firefox setup loaded with so many plugins. I came across this great Chrome extension &#8211; <a href="https://chrome.google.com/extensions/detail/mihcahmgecmbnbcchbopgniflfhgnkff">Google Mail checker</a> which keeps me notified of unread email Gmail messages. Moreover, it works for <a href="http://google.com/a">Google Apps</a> users too.</p>
<p>Here is a screenshot of my Chrome :</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="gmail-checker-chrome" src="http://blog.ashfame.com/wp-content/uploads/2010/03/gmail-checker-chrome.png" border="0" alt="gmail-checker-chrome" width="189" height="103" /></p>
<p>Just sign in your Gmail as you normally do and it will start showing you the number of unread emails count.</p>
<p>To use it for Google Apps, <strong>right click</strong> on the icon, select <strong>option</strong> and then enter the path to your domain name.</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="gapp-count" src="http://blog.ashfame.com/wp-content/uploads/2010/03/g-app-count.png" border="0" alt="gapp-count" width="586" height="255" /></p>
<p>It also animates when the count changes. Pretty simple &amp; useful extension in my opinion.</p>
<p>I would like it to provide sound notifications too but sadly it is not there. May be it will annoy some users and defeat the whole purpose of concentrating more on work. We can have an option to enable notifications which can be disabled by default. What do you think?</p>
<p>If you wish you can view other <a href="http://www.google.com/support/chrome/bin/static.py?page=guide.cs&amp;guide=27542&amp;topic=27573">Official extensions for Google products</a>. They are useful but I don&#8217;t use them all day long. May be you do.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/10/enable-dual-triple-view-horizontal-vertical-chrome/" rel="bookmark">Enable Dual or Triple View both horizontally or vertically in Google Chrome</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/google-apps-for-domains-emails/" rel="bookmark">Setup Google Apps for managing domain emails</a><!-- (19.2)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/dual-window-hack-google-chrome-javascript-plugin/" rel="bookmark">Dual Window hack in Google Chrome [Javascript Plugin]</a><!-- (18.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/display-posts-from-another-wordpress-installation/" rel="bookmark">Display posts from another WordPress installation</a><!-- (17.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/05/view-html-headers-firefox-google-chrome/" rel="bookmark">Examine HTML headers in Firefox and Google Chrome</a><!-- (17.6)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/03/chrome-extension-display-unread-emails-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create PDF pages from URL and embed link in WordPress blog</title>
		<link>http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/</link>
		<comments>http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 18:35:38 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=708</guid>
		<description><![CDATA[There are various web services which will offer you the facility of converting a webpage into a pdf file but there results were not quite satisfactory. The layout will break on many sites but yesterday I found out a service that I would like to share with you guys which gives quite good results, at [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (26.8)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (15.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-paypal-invoice/" rel="bookmark">How to Create a PayPal Invoice</a><!-- (15)--></li>
		<li><a href="http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/" rel="bookmark">Deal with Blog Scrappers getting indexed quicker than the original site</a><!-- (14.7)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><img class="aligncenter" style="float: none; margin-left: auto; margin-right: auto; border-width: 0px;" title="pdfmyurl" src="http://blog.ashfame.com/wp-content/uploads/2010/02/pdfmyurl.png" border="0" alt="pdfmyurl" width="654" height="286" /> There are various web services which will offer you the facility of converting a webpage into a pdf file but there results were not quite satisfactory. The layout will break on many sites but yesterday I found out a service that I would like to share with you guys which gives quite good results, at least the best I have seen so far among free services and that too instantly. I don’t need to give my email address &amp; then wait for the download link to arrive.</p>
<p><a href="http://www.pdfmyurl.com/">PDFMYURL.COM</a> is a service which just gives you the pdf file to download without any hassles of waiting or sending you the links to your email address. Just type in the URL and the pdf file will start downloading the next moment. I would surely recommend it to anybody who wants to save a pdf version of web pages.</p>
<h2>Embed Download as PDF Link in WordPress blog</h2>
<p>You can easily embed the option of <strong>downloading the posts as pdf</strong> links in your WordPress theme. Just place the following PHP code inside the WordPress loop in your theme file where you want the link to appear.</p>
<pre class="brush: php; title: ; notranslate">
&lt;a href=&quot;http://pdfmyurl.com?url=&lt;?php the_permalink(); ?&gt;&quot;&gt;Download as PDF&lt;/a&gt;
</pre>
<p>Place it inside the WordPress loop and you will get the functionality to download posts as pdf without any plugin or additional load on your server.</p>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;" title="savepdf" src="http://blog.ashfame.com/wp-content/uploads/2010/02/save-pdf.png" border="0" alt="savepdf" width="634" height="87" /> Above is a screenshot of how it looks on my blog.</p>
<p>If you need any kind of help, then feel free to leave a comment &amp; I will help you out.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (26.8)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (19.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (15.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-paypal-invoice/" rel="bookmark">How to Create a PayPal Invoice</a><!-- (15)--></li>
		<li><a href="http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/" rel="bookmark">Deal with Blog Scrappers getting indexed quicker than the original site</a><!-- (14.7)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Add blog feed to Facebook notes</title>
		<link>http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/</link>
		<comments>http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 18:32:23 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=703</guid>
		<description><![CDATA[You can add your blog feeds to your Facebook notes and your blog posts will appear as notes under your profile. It gives more exposure to your blog posts and you got nothing to lose as it doesn’t hurt. Try on. Add Blog feeds Go to your profile page on Facebook Under the Share tab, [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/04/refresh-facebook-notes-feeds-stopped-updating/" rel="bookmark">Refresh Facebook Notes Feeds if they have stopped updating</a><!-- (29.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/09/pnotes-notes-organizing-software/" rel="bookmark">PNotes &#8211; Easy way of organizing notes</a><!-- (17.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/03/portable-feed-reader-carry-feeds-offline/" rel="bookmark">Portable Feed Reader &#8211; Carry your feeds with you</a><!-- (17)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (15.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (15)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p><img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-notes" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-notes.png" alt="facebook-notes" border="0" height="206" width="217"/> You can add your blog feeds to your Facebook notes and your blog posts will appear as notes under your profile. It gives more exposure to your blog posts and you got nothing to lose as it doesn’t hurt. Try on.</p>
<h2>Add Blog feeds</h2>
<ul>
<li>Go to your profile page on Facebook <img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-profile-link" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-profile-link.png" alt="facebook-profile-link" border="0" height="153" width="196"/></li>
<li>Under the Share tab, Click on <strong>Options</strong>. <img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-share" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-share.png" alt="facebook-share" border="0" height="167" width="566"/></li>
<li>Now click on <strong>Settings</strong>. <img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-options" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-options.png" alt="facebook-options" border="0" height="195" width="559"/></li>
<li>Now look for <strong>Blog/RSS</strong> option to add your blog feed. <img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-share-select" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-share-select.png" alt="facebook-share-select" border="0" height="131" width="479"/></li>
<li>Add the <strong>feed url</strong> here and click on <strong>Import</strong>.<img style="display: block; float: none; margin-left: auto; margin-right: auto; border: 0px none;" title="facebook-add-feed" src="http://blog.ashfame.com/wp-content/uploads/2010/02/facebook-add-feed.png" alt="facebook-add-feed" border="0" height="91" width="403"/></li>
<li>From now on all your <strong>blog posts will appear as Notes</strong> under your profile.</li>
</ul>
<p>Now your blog posts will have a better chance of getting exposure. Remember don’t let your content go down deep in the archives, get it out, spread the word. Have your say in the comments.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2010/04/refresh-facebook-notes-feeds-stopped-updating/" rel="bookmark">Refresh Facebook Notes Feeds if they have stopped updating</a><!-- (29.7)--></li>
		<li><a href="http://blog.ashfame.com/2008/09/pnotes-notes-organizing-software/" rel="bookmark">PNotes &#8211; Easy way of organizing notes</a><!-- (17.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/03/portable-feed-reader-carry-feeds-offline/" rel="bookmark">Portable Feed Reader &#8211; Carry your feeds with you</a><!-- (17)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/keep-online-world-close-facebook/" rel="bookmark">Keep your online world close to Facebook</a><!-- (15.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/post-twitter-updates-tweets-facebook-automatically/" rel="bookmark">Post Twitter updates on Facebook automatically</a><!-- (15)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>List of topics of a particular bbPress forum</title>
		<link>http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/</link>
		<comments>http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 03:30:02 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[bbPress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=655</guid>
		<description><![CDATA[This tutorial will demonstrate the usage of custom queries so as to show topics of a certain bbPress forum along with Topic starter and Last Poster of inside WordPress. Before you can play around with bbPress information, you need to integrate WordPress with bbPress. After integration you can place this code anywhere in your template [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (65.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (31.5)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (31.1)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-random-items-list/" rel="bookmark">How to show Random Items out of a list</a><!-- (24.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (18.5)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>This tutorial will demonstrate the usage of custom queries so as to show topics of a certain <a href="http://blog.ashfame.com/tag/bbpress">bbPress</a> forum along with Topic starter and Last Poster of inside WordPress. Before you can play around with bbPress information, you need to <a href="../2009/07/integrate-bbpress-10-with-wordpress-28/">integrate WordPress with bbPress</a>. After integration you can place this code anywhere in your template and it will fetch information from bbPress tables.</p>
<p><span id="more-655"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;bbpress_forumlist&quot;&gt;
&lt;table id=&quot;forumlist&quot;&gt;
	&lt;thead&gt;
		&lt;tr&gt;
		&lt;th&gt;Topics&lt;/th&gt;
		&lt;th&gt;Author&lt;/th&gt;
		&lt;th&gt;Last Reply by&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;?php
	$forum_id = 7;
	$limit = 5;
	global $wpdb;
	$query = &quot;SELECT topic_title,topic_poster_name,topic_last_poster_name FROM life_topics WHERE forum_id = &quot;.$forum_id.&quot; LIMIT &quot;.$limit;
	$topicslist = $wpdb-&gt;get_results($query,&quot;ARRAY_N&quot;);

	if(!$topicslist)
		echo &quot;err&quot;;
	else
	{
		foreach( $topicslist as $topicslist )
		{
			echo '&lt;tr&gt;';
			echo '&lt;td&gt;'.$topicslist[0].'&lt;/td&gt;';
			echo '&lt;td&gt;'.$topicslist[1].'&lt;/td&gt;';
			echo '&lt;td&gt;'.$topicslist[2].'&lt;/td&gt;';
			echo '&lt;/tr&gt;';
		}
	}
	?&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</pre>
<p>This is a very basic demonstration of fetching the data in a simple table. You need to change the forum_id to the id of your forums (Look into your database via phpMyAdmin) <em>on line 12</em>, change the no of topics to display <em>on line 13</em> and change the bbPress table prefix in query <em>on line 15</em>.</p>
<p>You can also make your titles hyperlinked with the topic slug by fetching <strong>topic_slug</strong> from the database and generating the URL as per your permalinks setup. Doing this goes beyond the scope of this simple tutorial. You can also fetch <strong>topic_time</strong> to display the time in another column of the table. Just add CSS classes to style the table via CSS.</p>
<p>Have anything to ask or more to implement. Feel free to ask in the comments! Make sure you check out other tutorials to <a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/">show bbPress content inside WordPress</a> &amp; the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (65.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (31.5)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (31.1)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-random-items-list/" rel="bookmark">How to show Random Items out of a list</a><!-- (24.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (18.5)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Show bbPress forum list with posts &amp; topics count in WordPress</title>
		<link>http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/</link>
		<comments>http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 03:35:17 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[bbPress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=652</guid>
		<description><![CDATA[This tutorial will demonstrate the usage of custom queries so as to show bbPress forum list inside WordPress. We would like it to display the list of forums along with their topic &#38; post count. Before you can play around with bbPress information, you need to integrate WordPress with bbPress. After integration you can place [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/" rel="bookmark">List of topics of a particular bbPress forum</a><!-- (68.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (60.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (39)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (38.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-random-items-list/" rel="bookmark">How to show Random Items out of a list</a><!-- (37)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>This tutorial will demonstrate the usage of custom queries so as to show <a title="bbPress tips, tricks and tutorials" href="http://blog.ashfame.com/tag/bbpress">bbPress</a> forum list inside WordPress. We would like it to display the list of forums along with their topic &amp; post count.</p>
<p>Before you can play around with bbPress information, you need to <a href="http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/">integrate WordPress with bbPress</a>. After integration you can place this code anywhere in your template and it will fetch information from bbPress tables.</p>
<p><span id="more-652"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;bbpress_forumlist&quot;&gt;
	&lt;table&gt;
		&lt;thead&gt;
			&lt;tr&gt;
				&lt;th&gt;Forums&lt;/th&gt;
				&lt;th&gt;Topics&lt;/th&gt;
				&lt;th&gt;Posts&lt;/th&gt;
			&lt;/tr&gt;
		&lt;/thead&gt;
		&lt;tbody&gt;
		&lt;?php
		global $wpdb;
		$forumslist = $wpdb-&gt;get_results(&quot;SELECT forum_name, topics, posts from bb_forums&quot;,&quot;ARRAY_N&quot;);
		if ($forumslist)
		{
			foreach ($forumslist as $row)
			{
				echo '&lt;tr&gt;';
				echo '&lt;td&gt;'.$row[0].'&lt;/td&gt;';
				echo '&lt;td&gt;'.$row[1].'&lt;/td&gt;';
				echo '&lt;td&gt;'.$row[1].'&lt;/td&gt;';
				echo '&lt;/tr&gt;';
			}
		}
		else
			echo 'Error fetching data';
		?&gt;
		&lt;/tbody&gt;
	&lt;/table&gt;
&lt;/div&gt;
</pre>
<p>You can easily style the table via CSS. Just add some classes and you can give it the look you want. If you have a different bbPress table prefix, make sure you change the table name in the SQL query (<em>13<sup>th</sup> line</em>). There is more that you can do with this actually. Fetch more things like forum description, forum slug or make the forum name clickable to the forum page of bbPress. Take a quick peek at <a href="http://needaproject.com">NAP&#8217;s homepage</a> and you will get an idea.</p>
<p>Have anything to ask or more to implement. Feel free to ask in the comments! Make sure you check out other tutorials to <a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/">show bbPress content inside WordPress</a> &amp; the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/" rel="bookmark">List of topics of a particular bbPress forum</a><!-- (68.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (60.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (39)--></li>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (38.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-random-items-list/" rel="bookmark">How to show Random Items out of a list</a><!-- (37)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Show bbPress content inside WordPress</title>
		<link>http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/</link>
		<comments>http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 03:30:17 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[bbPress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=649</guid>
		<description><![CDATA[One way is to deep integrate both WordPress and bbPress so that one’s function can be called into another as both WordPress &#38; bbPress are loaded every time a page is being generated either by WordPress or bbPress. However I am strictly against it as the overhead is not worth it. Its not at all [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (40.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-content-logged-in-status-users-bbpress/" rel="bookmark">Show content on basis of logged in status of users in bbPress</a><!-- (37.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (35.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (25.5)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (25.2)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>One way is to deep integrate both WordPress and <a title="bbPress tips, tricks and tutorials" href="http://blog.ashfame.com/tag/bbpress">bbPress</a> so that one’s function can be called into another as both WordPress &amp; bbPress are loaded every time a page is being generated either by WordPress or bbPress. However I am strictly against it as the overhead is not worth it. Its not at all recommended for busy sites because this will amount to increase in resources consumption and degradation in performance.</p>
<p>A good approach would be to mimic the functionality offered by one into another. First of all I would recommend <a href="http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/">integrating WordPress with bbPress</a> so that they share the same database and then we can use SQL queries to fetch data from the database. The idea is to get the data by our queries and then we can manipulate as per our needs and mimic the functionality of the needed function.</p>
<p><span id="more-649"></span>Without deep integration, we can easily display the list of forums with their topics and posts count. We can display recent topics or recent replies to topics. In fact we can do anything we want. We just need to mimic that function and if any help is needed in mimicking that functionality we can always take a look at the source code of the other script.</p>
<p>Here is the list of tutorials which shows bbPress content inside WordPress :</p>
<ul>
<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/">List of forums with topic &amp; post count</a></li>
<li><a href="http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/">Topics started with post author, last reply poster &amp; freshness of a forum</a></li>
</ul>
<p>Its impossible to cover some examples here as the post will become too long to read. Hence I will demonstrate the usage in separate queries.</p>
<p>Have any questions? Feel free to ask via comments. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (40.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-content-logged-in-status-users-bbpress/" rel="bookmark">Show content on basis of logged in status of users in bbPress</a><!-- (37.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (35.4)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (25.5)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (25.2)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to show Random Items out of a list</title>
		<link>http://blog.ashfame.com/2009/11/show-random-items-list/</link>
		<comments>http://blog.ashfame.com/2009/11/show-random-items-list/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 03:30:42 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=647</guid>
		<description><![CDATA[Picking up the scenario from my project NAP, that I faced was I needed to show some books with their respective links but I have to pick up only 4 out of the 5 books I had and the picking should be random on each page load. You might say that php random function is [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (31.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/" rel="bookmark">List of topics of a particular bbPress forum</a><!-- (20.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (20.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (18.6)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (18.6)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Picking up the scenario from my project NAP, that I faced was I needed to show some books with their respective links but I have to pick up only 4 out of the 5 books I had and the picking should be random on each page load.</p>
<p>You might say that php random function is the answer to the problem but I have a few things to talk about.</p>
<p><span id="more-647"></span></p>
<h2>Using PHP Random function to show 1 random item</h2>
<p>If you don’t know how to use php random function to show different images every time with a link then here is how it is done. We will deal with the limitations as we proceed.</p>
<p>We have a list of links in an array $link and the images are renamed with a constant suffixed with the key of the array to which it holds the respective link.</p>
<p><strong>For example :</strong></p>
<p>$link[1] =&gt; image1.jpg<br />
$link[2] =&gt; image2.jpg<br />
$link[3] =&gt; image3.jpg<br />
$link[4] =&gt; image4.jpg<br />
$link[5] =&gt; image5.jpg</p>
<p>We pick up a random number between 1 &amp; 5 by</p>
<pre class="brush: php; title: ; notranslate">&lt;?php $n = rand(1,5); ?&gt;</pre>
<p>and then display it as</p>
<pre class="brush: php; title: ; notranslate">&lt;a href=&quot;&lt;?php echo $link[$n]; &gt;&quot;&gt;&lt;img src=&quot;image&lt;?php echo $n; ?&gt;.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;</pre>
<h2>Showing 4 out of 5 items</h2>
<p>This was the scenario in my project that I needed to show up 4 selections out of 5 options. The simple trick failed to show distinct items as everytime it selects a random number between 1 &amp; 5 irrespective of whether it’s already selected or not. To avoid this either we store the number selected on each function call in an array and every time we check the selected number with the array. If the number was in the array then we recall the function till we get a new number. We store it and then proceed.</p>
<p><strong>For example :</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$arr[0] = 0;
for($i=0; $i&lt;4; $i++)
{
$go = 0;
while(!$go)
{
$flag = 0;
$n = rand(1,5);
foreach($arr as $k =&gt; $v)
{
if($v == $n)
{
$flag = 1;
break;
}
}
if(!$flag)
{
$arr[$i] = $n;
$go = 1;
}
}
}
for($i=0; $i&lt;4; $i++)
{
?&gt;
&lt;a href=&quot;&lt;?php echo $link[$i]; ?&gt;&quot;&gt;&lt;img src=&quot;image&lt;?php echo $i; ?/&gt;.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;?php
}
?&gt;
</pre>
<h2>Better Alternative</h2>
<p>The algorithm would become heavy when a large number of selections have to be made as then every new selection would have to be compared with every element of array. In  my scenario I have to made selection of only 4 out of 5.</p>
<p>So instead of randomly selected the numbers of which items are to be displayed, i randomly selected the number of which item is not to be displayed. This was pretty much good in terms of performance.</p>
<p><strong>My Code :</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$kill = mt_rand(1,5);
for($i=1;$i&lt;=5;$i++)
{
if ( $kill == $i )
continue;
?&gt;
&lt;a href=&quot;&lt;?php echo $link[$i]; ?&gt;&quot;&gt;&lt;img src=&quot;image&lt;?php echo $i; ?/&gt;.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;?php } ?&gt;
</pre>
<p>I use mt_rand function instead of rand function because it is better in terms of performance.</p>
<p>That’s all for this tutorial. Hope you got what I wanted to say. Have any doubts? Feel free to ask in the comments. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/11/bbpress-forum-list-post-topic-count-wordpress/" rel="bookmark">Show bbPress forum list with posts &#038; topics count in WordPress</a><!-- (31.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/topics-list-topic-last-poster-particular-bbpress-forum/" rel="bookmark">List of topics of a particular bbPress forum</a><!-- (20.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (20.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (18.6)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (18.6)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/show-random-items-list/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to have multiple widgetized different sidebars</title>
		<link>http://blog.ashfame.com/2009/11/multiple-widgetized-different-sidebars/</link>
		<comments>http://blog.ashfame.com/2009/11/multiple-widgetized-different-sidebars/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 03:30:35 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=646</guid>
		<description><![CDATA[Its pretty much simple to widgetize multiple areas in a WordPress theme. Here in this tutorial I will demonstrate how you can have different sidebars for different pages and all of them being widgetized so that adding content to it is a piece of cake. Lets say we want to have different sidebars as per [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/03/typewith-me-multiple-users-work-document-simultaneously/" rel="bookmark">Typewith.me let multiple users work on a single document simultaneously</a><!-- (15)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/shrink-multiple-urls-shrink2one/" rel="bookmark">Shrink Multiple URLs into One by Shrink2One</a><!-- (14.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/04/convert-rename-multiple-images/" rel="bookmark">Image Batch Processing &#8211; Convert / Rename multiple images at once</a><!-- (14.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/search-replace-text-multiple-documents-quickly/" rel="bookmark">Search and Replace text in multiple documents quickly</a><!-- (13.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/page-template-usage-wordpress/" rel="bookmark">Page template usage in WordPress</a><!-- (10.8)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Its pretty much simple to widgetize multiple areas in a WordPress theme. Here in this tutorial I will demonstrate how you can have different sidebars for different pages and all of them being widgetized so that adding content to it is a piece of cake.</p>
<p><span id="more-646"></span>Lets say we want to have different sidebars as per categories.</p>
<h2>Calling different Sidebars</h2>
<p>We call the sidebar in our theme (<strong>sidebar.php</strong>) by a call to the function <strong>get_sidebar();</strong></p>
<p>Now if we want to use a different sidebar then create another php file named like <strong>sidebar-right.php</strong> or <strong>sidebar-someother.php</strong>, we can call it by <strong>get_sidebar(&#8216;right&#8217;);</strong> and by <strong>get_sidebar(&#8216;someother&#8217;);</strong> respectively.</p>
<p>So we just need to call a function <strong>get_sidebar(&#8216;x&#8217;);</strong> and WordPress will look for a file named <strong>sidebar-x.php</strong> for creating a sidebar.</p>
<h2>Widgetize Sidebars</h2>
<p>To widgetize a sidebar we just need to call the function dynamic_sidebar() with the name of that widgetized area. The proper way of doing so is by adding this piece of code</p>
<pre class="brush: php; title: ; notranslate">
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right') ) : ?&gt;
	&lt;p&gt;Add widgets on Right sidebar and they will appear here&lt;/p&gt;
	&lt;?php endif; ?&gt;
</pre>
<p>Similarly do that for all of your sidebars.</p>
<p>Now define them in <strong>functions.php</strong> file</p>
<pre class="brush: php; title: ; notranslate">
if ( function_exists('register_sidebar') )
{
    register_sidebar(array(
		'name' =&gt; 'Left Sidebar',
        'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',
        'after_widget' =&gt; '&lt;/li&gt;',
        'before_title' =&gt; '&lt;div class=&quot;widget-title&quot;&gt;',
        'after_title' =&gt; '&lt;/div&gt;',
    ));
	register_sidebar(array(
		'name' =&gt; 'Right Sidebar',
        'before_widget' =&gt; '&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;',
        'after_widget' =&gt; '&lt;/li&gt;',
        'before_title' =&gt; '&lt;div class=&quot;widget-title&quot;&gt;',
        'after_title' =&gt; '&lt;/div&gt;',
    ));
}
</pre>
<p>Now all of them will show up in Widgets option under your Appearance settings in WordPress.</p>
<h2>Calling Sidebars based on Categories</h2>
<p>We just need to place the sidebar conditionally by checking for conditions.</p>
<p>For example:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if ( is_category('1') )
get_sidebar('Left');
elseif ( is_category('2') )
get_sidebar('Right');
else
get_sidebar('someother'); ?&gt;
</pre>
<p>You can also use the category name instead of category ID in conditions.</p>
<p>Similarly if you want to use the same for multiple categories then it can be done like</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
if ( is_category(array(1,3,4,5)) )
get_sidebar('Left');
elseif( is_category('2') )
get_sidebar('Right');
else
get_sidebar('someother'); ?&gt;
</pre>
<p>The logic of having different sidebars under different conditions are as per ones need and creating them is pretty simple logic. If you need any help, leave here a comment and I will give you the code. <img src='http://blog.ashfame.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now that’s done pretty well in WordPress. Similarly you can do that to widgetized multiple areas in your theme. Have any questions? Feel free to ask in comments. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2010/03/typewith-me-multiple-users-work-document-simultaneously/" rel="bookmark">Typewith.me let multiple users work on a single document simultaneously</a><!-- (15)--></li>
		<li><a href="http://blog.ashfame.com/2008/10/shrink-multiple-urls-shrink2one/" rel="bookmark">Shrink Multiple URLs into One by Shrink2One</a><!-- (14.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/04/convert-rename-multiple-images/" rel="bookmark">Image Batch Processing &#8211; Convert / Rename multiple images at once</a><!-- (14.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/search-replace-text-multiple-documents-quickly/" rel="bookmark">Search and Replace text in multiple documents quickly</a><!-- (13.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/page-template-usage-wordpress/" rel="bookmark">Page template usage in WordPress</a><!-- (10.8)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/multiple-widgetized-different-sidebars/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Show custom excerpts of the post in WordPress</title>
		<link>http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/</link>
		<comments>http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 03:30:52 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=644</guid>
		<description><![CDATA[When WordPress is used as a CMS, then we no longer wants the homepage to be a chronological order of posts. We would want the homepage to be something which serves the purpose of telling everything about itself. Certainly that should have a section where blog updates are being highlighted either with excerpt or with [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (30.2)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (26.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/handling-wordpress-post-revisions-correctly/" rel="bookmark">Handling WordPress Post Revisions the right way</a><!-- (23)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>When WordPress is used as a CMS, then we no longer wants the homepage to be a chronological order of posts. We would want the homepage to be something which serves the purpose of telling everything about itself. Certainly that should have a section where blog updates are being highlighted either with excerpt or with just titles.</p>
<p>Since in our implementation, we only be having a single section where I would want to use the WordPress loop so we can straight go ahead and use it. Had you been using WordPress loop somewhere else on the page then you would have to use a different object for the WP loop.</p>
<p><span id="more-644"></span></p>
<h2>Showing links to latest updates from the blog</h2>
<pre class="brush: php; title: ; notranslate">
&lt;?php $count=3; if (have_posts()) : ?&gt;
&lt;ul&gt;
	&lt;?php while (have_posts()) : the_post(); ?&gt;
		&lt;?php if($count &gt; 0) { ?&gt;
		&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;?php $count--; } endwhile; ?&gt;
&lt;/ul&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Change the value of count to your choice and there you have a list of latest updates from your blog.</p>
<h2>Showing the latest post with an excerpt</h2>
<p>I have created a function which you can call anywhere in your theme to do its job of printing the excerpt of the latest post with your specified character limit.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php the_post(); ?&gt;
            &lt;h4&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt; - Written on &lt;?php the_time('l, F jS, Y'); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h4&gt;

&lt;?php if ( function_exists( 'ashfame_get_stripped_content' ) ) ashfame_get_stripped_content(300); ?&gt;
</pre>
<p>You can change the value of 300 to the limit of characters you want to display.</p>
<p>Add this function in your functions.php file (under your theme folder only)</p>
<pre class="brush: php; title: ; notranslate">
function ashfame_get_stripped_content($limit)
{
	$content = get_the_content();
	$words = explode(&quot; &quot;,$content);
	unset($content);
	$length = 0;
	foreach ($words as $i =&gt; $w)
	{
		$length += strlen($w);
		if ($length &lt; $limit)
			$content = $content.&quot; &quot;.$w;
		else
			break;
	}
	$content = apply_filters('the_content', $content); // We have to do these 2 steps
	$content = str_replace(']]&gt;', ']]&amp;gt;', $content); // as per the WP Codex when using get_the_content
	$temp = &quot; (&lt;a title=\&quot;Continue Reading..\&quot; href=\&quot;&quot;;
	$temp = $temp.get_permalink();
	$temp = $temp.&quot;\&quot;&gt;Continue reading &amp;#8594;&lt;/a&gt;)&lt;/p&gt;&quot;;
	$content = str_replace('&lt;/p&gt;',$temp, $content);
	echo $content;
}
</pre>
<h2>Showing multiple posts with an excerpt</h2>
<p>You will have to execute the WordPress loop here to access multiple posts. You can show multiple posts with an excerpt by calling the function of above case inside the loop like this :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $count=3; if (have_posts()) : ?&gt;
&lt;ul&gt;
	&lt;?php while (have_posts()) : the_post(); ?&gt;
		&lt;?php if($count &gt; 0) { ?&gt;
		&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;?php if ( function_exists( 'ashfame_get_stripped_content' ) ) ashfame_get_stripped_content(300); ?&gt;
	&lt;?php $count--; } endwhile; ?&gt;
&lt;/ul&gt;
&lt;?php endif; ?&gt;
</pre>
<p>Change the value of count to your choice and there you have multiple posts each with an excerpt. Have any questions then use the Comments section below. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/09/show-post-count-topics-started-bbpress/" rel="bookmark">Show post count and topics started in bbPress</a><!-- (30.2)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (26.8)--></li>
		<li><a href="http://blog.ashfame.com/2010/07/show-rss-feeds-wordpress-pages-php-caching/" rel="bookmark">Show RSS feeds inside WordPress pages through PHP</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/" rel="bookmark">Show recent comments of a particular user in WordPress</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/handling-wordpress-post-revisions-correctly/" rel="bookmark">Handling WordPress Post Revisions the right way</a><!-- (23)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Building a FrontPage using WordPress</title>
		<link>http://blog.ashfame.com/2009/11/building-frontpage-wordpress/</link>
		<comments>http://blog.ashfame.com/2009/11/building-frontpage-wordpress/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 03:30:11 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=638</guid>
		<description><![CDATA[This tutorial assumes that you are comfortable enough in designing WordPress themes. I suggest you take the hang of both the methods and decide which one you want to go with. Technically I haven’t come up with any limitation of expanding WordPress capabilities that one may face by using either of the method. We will [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/11/page-template-usage-wordpress/" rel="bookmark">Page template usage in WordPress</a><!-- (13)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (12.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (12.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/" rel="bookmark">WordPress as CMS basic Setup</a><!-- (12.4)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/" rel="bookmark">Pagination approach using get_posts() in WordPress</a><!-- (12.4)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>This tutorial assumes that you are comfortable enough in designing WordPress themes. I suggest you take the hang of both the methods and decide which one you want to go with. Technically I haven’t come up with any limitation of expanding WordPress capabilities that one may face by using either of the method.</p>
<p>We will require to use page templates in both the methods, so if you don’t know how to create them, here is a good chance to understand how they work and how you can use them. Read this article &#8211; <a href="http://blog.ashfame.com/2009/11/page-template-usage-wordpress/">WordPress page templates</a> and come back to this tutorial.</p>
<p><span id="more-638"></span></p>
<h2>Using Page templates</h2>
<ul>
<li>Create two page templates. One for the homepage and another for the blog page.</li>
<li>Create two pages named Home &amp; Blog (You can name them anything)</li>
<li>Make sure that you select the respective page template while creating them to use the custom layout and content as specified in the page template.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-cms-select-page-template-2" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpcmsselectpagetemplate2.gif" border="0" alt="wp-cms-select-page-template-2" width="297" height="322" /></li>
<li>Make sure that under <strong>Reading Settings</strong> (Settings &gt; Reading), the FrontPage is set to display static page.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-cms-reading-settings" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpcmsreadingsettings1.gif" border="0" alt="wp-cms-reading-settings" width="442" height="194" /></li>
<li>That’s it. Go check out your homepage and blog page.</li>
</ul>
<p>Here in this method your posts on the blog are controlled by what you have specified in the Reading settings and in the next method it will depend on the value used in the code.</p>
<p>Personally I use the second method.</p>
<p><strong> </strong></p>
<h2>Using home.php</h2>
<ul>
<li>Make sure that under <strong>Reading Settings</strong> (Settings &gt; Reading), the FrontPage is set to display latest posts.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-cms-reading-settings-2" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpcmsreadingsettings2.gif" border="0" alt="wp-cms-reading-settings-2" width="442" height="190" /></li>
<li>Create a page template for blog and one similarly a home.php file for the homepage</li>
<li>Create a page named Blog and select the blog page template while creating it.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-cms-select-page-template-2" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpcmsselectpagetemplate2.gif" border="0" alt="wp-cms-select-page-template-2" width="297" height="322" /></li>
<li>Place the home.php in your theme folder</li>
<li>That’s it. Go check out your homepage and blog page.</li>
</ul>
<p>For content that you need to update manually like some text or anything else, you can widgetised the area too. Then you can add text-widget or anything else.</p>
<h2>Blog Page Template Code</h2>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$recentPosts = new WP_Query();
$recentPosts-&gt;query('showposts=5'.'&amp;paged='.$paged);
if ($recentPosts-&gt;have_posts()) : while ($recentPosts-&gt;have_posts()) : $recentPosts-&gt;the_post(); ?&gt;

	&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;&lt;?php the_time('F jS, Y') ?&gt; by &lt;?php the_author() ?&gt;&lt;/small&gt;

		&lt;div class=&quot;entry&quot;&gt;
			&lt;?php the_content('Read the rest of this entry &amp;raquo;'); ?&gt;
		&lt;/div&gt;

		&lt;p class=&quot;postmetadata&quot;&gt;&lt;?php the_tags('Tags: ', ', ', '&lt;br /&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; | &lt;?php edit_post_link('Edit', '', ' | '); ?&gt;  &lt;?php comments_popup_link('No Comments &amp;#187;', '1 Comment &amp;#187;', '% Comments &amp;#187;'); ?&gt;&lt;/p&gt;
		&lt;hr /&gt;
	&lt;/div&gt;

&lt;?php endwhile; endif; ?&gt;
</pre>
<p>Subscribe <a href="http://feeds.feedburner.com/AshfameBlog" target="_blank">via RSS</a> or <a href="http://feedburner.google.com/fb/a/mailverify?uri=AshfameBlog" target="_blank">via email</a> to keep up with the <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a> so as to learn what all crazy stuff you can build with it.</p>
<p>Feel free to ask any questions you may have via the comments. I will be glad to answer them.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/11/page-template-usage-wordpress/" rel="bookmark">Page template usage in WordPress</a><!-- (13)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-bbpress-content-inside-wordpress/" rel="bookmark">Show bbPress content inside WordPress</a><!-- (12.8)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/show-custom-excerpt-post-wordpres/" rel="bookmark">Show custom excerpts of the post in WordPress</a><!-- (12.7)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/" rel="bookmark">WordPress as CMS basic Setup</a><!-- (12.4)--></li>
		<li><a href="http://blog.ashfame.com/2011/04/pagination-approach-get-posts-wordpress/" rel="bookmark">Pagination approach using get_posts() in WordPress</a><!-- (12.4)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/building-frontpage-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Page template usage in WordPress</title>
		<link>http://blog.ashfame.com/2009/11/page-template-usage-wordpress/</link>
		<comments>http://blog.ashfame.com/2009/11/page-template-usage-wordpress/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 04:00:51 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=642</guid>
		<description><![CDATA[How does a normal WordPress page look like? Header, content, sidebar and footer. What if you want a different layout for a particular page or a set of pages. A different sidebar or multiple sidebar or no sidebar at all? Different styling and arrangement of other things (purely CSS based)? Anything different from the regular [...]<ul>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (25.1)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/control-page-navigation-wordpress/" rel="bookmark">How to take control of the Page Navigation of WordPress</a><!-- (24.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/08/wordpress-multisite-non-www-forwards-signup-page-problem-fix/" rel="bookmark">WordPress Multisite non-WWW forwards to Signup Page Problem Fix</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/" rel="bookmark">WordPress as CMS basic Setup</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/building-frontpage-wordpress/" rel="bookmark">Building a FrontPage using WordPress</a><!-- (16.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>How does a normal WordPress page look like? Header, content, sidebar and footer. What if you want a different layout for a particular page or a set of pages. A different sidebar or multiple sidebar or no sidebar at all? Different styling and arrangement of other things (purely CSS based)? Anything different from the regular layout can be incorporated within WordPress using Page templates.</p>
<p><span id="more-642"></span>For example : A regular WordPress page generated from page.php of your theme :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php get_header(); ?&gt;
    &lt;div class=&quot;normal_page&quot;&gt;
        &lt;div class=&quot;content&quot;&gt;
            &lt;!– Content comes here –&gt;
        &lt;/div&gt;
        &lt;?php get_sidebar(); ?&gt;
    &lt;/div&gt;
&lt;?php get_footer(); ?&gt;
</pre>
<p>For a special page, you don’t want any sidebar. For which the code of the page looks like :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php get_header(); ?&gt;
    &lt;div class=&quot;normal_page&quot;&gt;
        &lt;div class=&quot;content&quot;&gt;
            &lt;!– Content comes here –&gt;
        &lt;/div&gt;
        &lt;div class=&quot;advertisement&quot;&gt;
            &lt;!– Ad comes here –&gt;
        &lt;/div&gt;
        &lt;div class=&quot;hire_me&quot;&gt;
            &lt;!– Details on hiring me –&gt;
        &lt;/div&gt;
        &lt;?php get_sidebar(); ?&gt;
    &lt;/div&gt;
&lt;?php get_footer(); ?&gt;
</pre>
<h2>Creating a Page template in WordPress</h2>
<p>Just before the code of that special page, add these lines</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Template Name: Special Page
*/
?&gt;
</pre>
<p>so that the whole page template file looks like this :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
Template Name: Blog
*/
?&gt;
&lt;?php get_header(); ?&gt;
    &lt;div class=&quot;normal_page&quot;&gt;
        &lt;div class=&quot;content&quot;&gt;
            &lt;!– Content comes here –&gt;
        &lt;/div&gt;
        &lt;div class=&quot;advertisement&quot;&gt;
            &lt;!– Ad comes here –&gt;
        &lt;/div&gt;
        &lt;div class=&quot;hire_me&quot;&gt;
            &lt;!– Details on hiring me –&gt;
        &lt;/div&gt;
        &lt;?php get_sidebar(); ?&gt;
    &lt;/div&gt;
&lt;?php get_footer(); ?&gt;
</pre>
<p>That’s it. Your page template is ready to be used. Just drop the file in your theme folder with any name. However I would recommend giving the template name to the file name too so that it becomes easy to recognize it.</p>
<h2>Using a Page template in WordPress</h2>
<p>Now when you are creating a new page, you can select the page template under the Attributes tag on the right side.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-cms-select-page-template-1" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpcmsselectpagetemplate1.gif" border="0" alt="wp-cms-select-page-template-1" width="295" height="324" /></p>
<p>You can also make the page use by quick editing the page under <strong>Edit pages</strong> page.<img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-quick-edit-page" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpquickeditpage.gif" border="0" alt="wp-quick-edit-page" width="250" height="63" /> <img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="wp-quick-edit-page-template" src="http://blog.ashfame.com/wp-content/uploads/2009/11/wpquickeditpagetemplate.gif" border="0" alt="wp-quick-edit-page-template" width="593" height="164" /></p>
<p>Go fire up your creativity. Now you can have different layouts for different pages. Have any questions then use the Comments section below. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (25.1)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/control-page-navigation-wordpress/" rel="bookmark">How to take control of the Page Navigation of WordPress</a><!-- (24.7)--></li>
		<li><a href="http://blog.ashfame.com/2010/08/wordpress-multisite-non-www-forwards-signup-page-problem-fix/" rel="bookmark">WordPress Multisite non-WWW forwards to Signup Page Problem Fix</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/" rel="bookmark">WordPress as CMS basic Setup</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/building-frontpage-wordpress/" rel="bookmark">Building a FrontPage using WordPress</a><!-- (16.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/page-template-usage-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress as CMS basic Setup</title>
		<link>http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/</link>
		<comments>http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 03:30:13 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=639</guid>
		<description><![CDATA[Two things you would like to setup before you move on with the series is to select your permalink settings and the way you can setup WordPress to act both as CMS and regular blogging engine. Permalink Settings (Settings &#62; Permalinks) Set the custom structure to be /%postname%/ Reading Settings (Settings &#62; Readings) You can [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (22.8)--></li>
		<li><a href="http://blog.ashfame.com/2007/10/how-to-setup-gmail-in-your-smartphone/" rel="bookmark">How to setup Gmail in your smartphone</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/setup-feedburner-tweet-posts-twitter/" rel="bookmark">Setup FeedBurner to tweet new posts to Twitter</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/building-frontpage-wordpress/" rel="bookmark">Building a FrontPage using WordPress</a><!-- (15.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/how-to-setup-gmail-imap-in-your-smartphone/" rel="bookmark">How to setup Gmail IMAP access in your smartphone</a><!-- (14.9)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>Two things you would like to setup before you move on with the series is to select your permalink settings and the way you can setup WordPress to act both as CMS and regular blogging engine.</p>
<p><span id="more-639"></span><br />
<h2><strong>Permalink Settings</strong> (Settings &gt; Permalinks)</h2>
<p>Set the custom structure to be <strong>/%postname%/</strong></p>
<h2><strong>Reading Settings</strong> (Settings &gt; Readings)</h2>
<p>You can set here what your front page displays. Select the page to display as your homepage if you want simple plain content on the main page and if you want a different layout on that page then stick a page template to the page you are using as a homepage.</p>
<p>Alternatively you can build up a <strong>home.php</strong> file in your WordPress theme and it will automatically be use as your homepage. You can also build it up dynamically using content fetched from custom WP queries.</p>
<p>If you chose the former then you can select another page to become your blog where posts will appear in chronological order and if you chose the later option then you can use another page template to get your blog by using WP queries.</p>
<p>I will demonstrate the usage in the upcoming post of the series till then feel free to respond via the comments. Make sure you check out the whole <a href="http://blog.ashfame.com/2009/11/wordpress-cms-series/">WordPress as CMS series</a>.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/05/integrate-bbpress-forum-wordpress-setup/" rel="bookmark">Integrate bbpress forum with your wordpress setup</a><!-- (22.8)--></li>
		<li><a href="http://blog.ashfame.com/2007/10/how-to-setup-gmail-in-your-smartphone/" rel="bookmark">How to setup Gmail in your smartphone</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/setup-feedburner-tweet-posts-twitter/" rel="bookmark">Setup FeedBurner to tweet new posts to Twitter</a><!-- (15.3)--></li>
		<li><a href="http://blog.ashfame.com/2009/11/building-frontpage-wordpress/" rel="bookmark">Building a FrontPage using WordPress</a><!-- (15.2)--></li>
		<li><a href="http://blog.ashfame.com/2007/11/how-to-setup-gmail-imap-in-your-smartphone/" rel="bookmark">How to setup Gmail IMAP access in your smartphone</a><!-- (14.9)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/wordpress-cms-basic-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Optimized WebHost &#8211; WpWebHost Review</title>
		<link>http://blog.ashfame.com/2009/11/wordpress-optimized-webhost-wpwebhost-review/</link>
		<comments>http://blog.ashfame.com/2009/11/wordpress-optimized-webhost-wpwebhost-review/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 04:00:02 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[webhosting]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=632</guid>
		<description><![CDATA[Selecting the right webhost is crucial for a web publisher as it keep hosting woes at bay and let the publisher concentrate on what is important i.e. generating content. WpWebHost Offers everything one would expect out of a hosting package. The thing worth mentioning about them is that their servers are specially configured for WordPress [...]<ul>
		<li><a href="http://blog.ashfame.com/2010/04/wpwebhost-wordpress-hosting-april-discount-coupon/" rel="bookmark">WpWebhost WordPress Hosting April Discount Coupon</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/check-mail-sending-capabilities-webhost/" rel="bookmark">Check mail sending capabilities of your webhost</a><!-- (20.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/wpwebhost-offers-upto-90-hosting-discount/" rel="bookmark">WpWebHost offers upto 90% hosting discount</a><!-- (17.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/06/wpwebhost-offers-90-off-webhosting/" rel="bookmark">WpWebHost offers 90% OFF on webhosting</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/microtek-800va-double-battery-ups-review/" rel="bookmark">Review : Microtek 800VA Double Battery UPS</a><!-- (16.2)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p><img style="border: 0px none; display: block; float: none; margin-left: auto; margin-right: auto;" title="bgwpwebhost" src="http://blog.ashfame.com/wp-content/uploads/2009/11/bgwpwebhost.png" alt="bgwpwebhost" border="0" height="232" width="311"/></p>
<p>Selecting the right webhost is crucial for a web publisher as it keep hosting woes at bay and let the publisher concentrate on what is important i.e. generating content. <a href="http://blog.ashfame.com/recommend/wpwebhost/">WpWebHost</a> Offers everything one would expect out of a hosting package. The thing worth mentioning about them is that their servers are specially configured for WordPress users so they give better performance as compared to webhosts which are configured for general use.</p>
<p><span id="more-632"></span></p>
<p>By optimization I mean that their servers execute the WordPress script (its a php script after all) fast and hence gives a edge over its competitors. And did I mention that they have got great support? I myself always try out new things with WordPress and whenever I need to contact them, I shoot them a support mail and believe me their support is really awesome (I generally don’t use the word awesome easily but that was the first word which came to my mind).</p>
<p>I almost always get the reply on the same day. Whenever I communicate with their staff, I always feel that I am getting personal attention. They are very friendly. When I signed up for them a few months back, I paid almost a week after using their service because I had some issues with PayPal but they didn’t impose any restriction on me. They even gave me a free week of hosting. That’s cool!</p>
<p>Being WordPress optimized webhost they don’t restrict you in using any other script. I would recommend them to WordPress developers too as you will get great help and support from them.</p>
<p>I need to say it. You will love their service for sure. Now they even have special packages for WordPress MU and recently they added a Semi Dedicated plan which is like powering up your site with a VPS, all which are specially optimized for better performance.</p>
<p>One thing that I would like to mention is that when I bought the hosting, I ended up on a IP Address which was hosting two adult sites too. So as not to harm my SERPs I got a dedicated IP Address for myself. I would have taken it anyway but I took it because at that time I had to.</p>
<p>Their hosting will cost you 5USD per month. I highly recommend <a href="http://blog.ashfame.com/recommend/wpwebhost/">WpWebHost</a>. Sign up with them and you won’t regret it.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2010/04/wpwebhost-wordpress-hosting-april-discount-coupon/" rel="bookmark">WpWebhost WordPress Hosting April Discount Coupon</a><!-- (23.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/check-mail-sending-capabilities-webhost/" rel="bookmark">Check mail sending capabilities of your webhost</a><!-- (20.3)--></li>
		<li><a href="http://blog.ashfame.com/2010/12/wpwebhost-offers-upto-90-hosting-discount/" rel="bookmark">WpWebHost offers upto 90% hosting discount</a><!-- (17.1)--></li>
		<li><a href="http://blog.ashfame.com/2010/06/wpwebhost-offers-90-off-webhosting/" rel="bookmark">WpWebHost offers 90% OFF on webhosting</a><!-- (16.9)--></li>
		<li><a href="http://blog.ashfame.com/2007/12/microtek-800va-double-battery-ups-review/" rel="bookmark">Review : Microtek 800VA Double Battery UPS</a><!-- (16.2)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/wordpress-optimized-webhost-wpwebhost-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why use sftp instead of ftp</title>
		<link>http://blog.ashfame.com/2009/11/why-use-sftp-instead-of-ftp/</link>
		<comments>http://blog.ashfame.com/2009/11/why-use-sftp-instead-of-ftp/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 07:00:19 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[SFTP]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=630</guid>
		<description><![CDATA[We all know about the good old FTP which we have used so many times to upload or download data from/to a web server to/from our computer. But do we know how much risk is involved in using FTP? Many of us don’t. So through this post, I will try to highlight why one should [...]<ul>
		<li><a href="http://blog.ashfame.com/2009/10/install-wordpress-ftp-sftp/" rel="bookmark">Install WordPress manually via FTP/SFTP</a><!-- (22.4)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/filezilla-connect-via-sftp/" rel="bookmark">Using Filezilla to connect via SFTP</a><!-- (21)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/3-creative-ways-showcasing-best-content-sidebar/" rel="bookmark">3 creative ways of showcasing your best content on sidebar</a><!-- (8)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/smart-way-experimenting-ads-performance/" rel="bookmark">Smart way of experimenting with ads performance</a><!-- (6.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/typewith-me-multiple-users-work-document-simultaneously/" rel="bookmark">Typewith.me let multiple users work on a single document simultaneously</a><!-- (5.5)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>We all know about the good old FTP which we have used so many times to upload or download data from/to a web server to/from our computer. But do we know how much risk is involved in using FTP? Many of us don’t. So through this post, I will try to highlight why one should and how to use SFTP for the tasks we still use the vulnerable FTP.</p>
<p><span id="more-630"></span></p>
<h2>FTP</h2>
<p>In a FTP connection, the login credentials (username &amp; password) are passed in clear text format and anyone spoofing on the packets can get to know about the login credentials. Moreover, any sensitive data being transferred over a FTP connection is not safe either. The spoofer can have the data very easily. Hence we need something better which overcomes the risky nature of FTP but still can connect like FTP.</p>
<h2>SFTP</h2>
<p>SFTP is just like a FTP connection with the exception that all of its data is in encrypted form and no-one spoofing on the data can make sense out of it because the data is encrypted. This clearly eliminates the security concern of FTP.</p>
<h2>How to use SFTP?</h2>
<p>Just like you need a FTP client for connecting via a FTP connection, you need a client which supports SFTP connection over SSH tunnel. My all time favorite <a href="http://filezilla-project.org/download.php">Filezilla</a> is capable of connecting via SFTP too. You can see how to use <a href="http://blog.ashfame.com/2010/03/filezilla-connect-via-sftp/">Filezilla for SFTP</a>.</p>
<p>You only need to specify the different port being used for SFTP and the rest are like the FTP credentials only.</p>
<p>You can get to know your SFTP port from your cPanel. Select <strong>FTP accounts</strong>, then under <strong>Account Management</strong>, select the option <strong>Configure FTP Client</strong> and there you can view your <strong>SFTP port</strong>.</p>
<p>Now just specify the new credentials in the SFTP client and you will be connected to your server safely without the risk of anyone spying on your data.</p>
<p>Enjoy Happy Computing! If you have any questions, then feel free to ask via the comments.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2009/10/install-wordpress-ftp-sftp/" rel="bookmark">Install WordPress manually via FTP/SFTP</a><!-- (22.4)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/filezilla-connect-via-sftp/" rel="bookmark">Using Filezilla to connect via SFTP</a><!-- (21)--></li>
		<li><a href="http://blog.ashfame.com/2009/09/3-creative-ways-showcasing-best-content-sidebar/" rel="bookmark">3 creative ways of showcasing your best content on sidebar</a><!-- (8)--></li>
		<li><a href="http://blog.ashfame.com/2010/04/smart-way-experimenting-ads-performance/" rel="bookmark">Smart way of experimenting with ads performance</a><!-- (6.2)--></li>
		<li><a href="http://blog.ashfame.com/2010/03/typewith-me-multiple-users-work-document-simultaneously/" rel="bookmark">Typewith.me let multiple users work on a single document simultaneously</a><!-- (5.5)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/11/why-use-sftp-instead-of-ftp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to start a website or blog</title>
		<link>http://blog.ashfame.com/2009/10/how-to-start-website-blog/</link>
		<comments>http://blog.ashfame.com/2009/10/how-to-start-website-blog/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:50:25 +0000</pubDate>
		<dc:creator>Ashfame</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[How To / Tutorials]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.ashfame.com/?p=622</guid>
		<description><![CDATA[With so many questions people asking me questions about how to start a blog, I am writing this article on how you can do the same. Difference between a Website &#38; blog The only difference between the two is in the presentation of the content. The website has several pages with an organized hierarchy and [...]<ul>
		<li><a href="http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/" rel="bookmark">Deal with Blog Scrappers getting indexed quicker than the original site</a><!-- (13.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/" rel="bookmark">Create PDF pages from URL and embed link in WordPress blog</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (13)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (12.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/promote-blog-site-brand-college-5plus1-ways/" rel="bookmark">5+1 Ways of promoting your Blog/Site/Brand name in your college</a><!-- (12.3)--></li>
	</ul>
]]></description>
			<content:encoded><![CDATA[<p>With so many questions people asking me questions about how to start a blog, I am writing this article on how you can do the same.</p>
<p><span id="more-622"></span></p>
<h2>Difference between a Website &amp; blog</h2>
<p>The only difference between the two is in the presentation of the content. The website has several pages with an organized hierarchy and the main page shows up with lots of option to navigation through the content whereas in a blog the content depends a lot on time and that’s why the content is organized in a chronological order (newer articles come up over the previous articles).</p>
<h2>Static &amp; Dynamic</h2>
<p>Static means that no processing is done other than serving up the ready-made pages. Dynamic means the system is database driven and database driven websites are pretty common these days.</p>
<h2>What do you need?</h2>
<h3>Domain</h3>
<p>You will need a domain name that people will open the website / blog by typing the domain. Example: google.com google.net google.org are three different domains. Do some brainstorming and come up with a nice domain name. Preferably go for a .com unless you have a reason not to.</p>
<p>Domain names [.com] costs about 7+USD annually. I buy my domains from Godaddy.</p>
<h3>Webhost</h3>
<p>You will need a webhost where you can host your files. Take it like this that you need a computer with some space which can provide the site files to anyone opening up your site. This computer remains connected to high speed internet all the time. So this comes up with a price. Free ones are too troublesome. I recommend <a href="http://blog.ashfame.com/recommend/wpwebhost/" title="" target="_blank">WPWebHost</a> (WordPress optimized WebHost) for awesome service and support. I use them myself.</p>
<p>WPWebHost costs 5USD monthly and is definitely+ worth it considering their service and insanely awesome support.</p>
<h3>WordPress</h3>
<p>If you are not starting away with a static website (like uploading html pages) then WordPress is your best bet. They enable millions of publishers to publish content online effortlessly. I use WordPress both as my blogging engine and as CMS. Believe me its one framework that has the power of driving any web project. I myself develop WordPress based web projects. Moreover additional functionality can be added by plugins and there is a arsenal of theme available and one can design a custom theme with ease too.</p>
<p><a href="http://wordpress.org/latest.zip">Download latest version of WordPress</a></p>
<h3>Installing WordPress</h3>
<p>There are several methods of installing WordPress :</p>
<ul>
<li><a href="http://blog.ashfame.com/2009/10/install-wordpress-via-fantastico/">Install WordPress via fantastico</a> (Automatic Install)</li>
<li><a href="http://blog.ashfame.com/2009/08/install-wordpress-via-svn/">Install WordPress via SVN</a> (Geeky but makes upgrading super easy)</li>
<li><a href="http://blog.ashfame.com/2009/10/install-wordpress-ftp-sftp/">Install WordPress manually</a> (uploading via FTP / SFTP)</li>
</ul>
<p>If you have any questions about the post then feel free to use the comments section below.</p>
<ul>
		<li><a href="http://blog.ashfame.com/2011/03/blog-scrappers-getting-indexed-quicker-original-site/" rel="bookmark">Deal with Blog Scrappers getting indexed quicker than the original site</a><!-- (13.9)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/create-pdf-pages-url-embed-wordpress-blog/" rel="bookmark">Create PDF pages from URL and embed link in WordPress blog</a><!-- (13.6)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/customize-wordpress-blog-404-page/" rel="bookmark">How to customize your WordPress Blog&#8217;s 404 page</a><!-- (13)--></li>
		<li><a href="http://blog.ashfame.com/2010/02/add-blog-feed-facebook-notes/" rel="bookmark">Add blog feed to Facebook notes</a><!-- (12.5)--></li>
		<li><a href="http://blog.ashfame.com/2008/01/promote-blog-site-brand-college-5plus1-ways/" rel="bookmark">5+1 Ways of promoting your Blog/Site/Brand name in your college</a><!-- (12.3)--></li>
	</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashfame.com/2009/10/how-to-start-website-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

