<?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>Sumit Bansal</title>
	<atom:link href="http://sumitbansal.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sumitbansal.com</link>
	<description>Complete Web, Software &#38; Computer Solutions</description>
	<lastBuildDate>Mon, 30 Apr 2012 13:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Calculate average and sum from Mysql query</title>
		<link>http://sumitbansal.com/scripts/calculate-average-and-sum-from-mysql-query/</link>
		<comments>http://sumitbansal.com/scripts/calculate-average-and-sum-from-mysql-query/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 13:07:41 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[PHP Scripts]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[average]]></category>
		<category><![CDATA[average from mysql query]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php mysql]]></category>
		<category><![CDATA[sum]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=580</guid>
		<description><![CDATA[The AVG function return the average value of the specified column. For example I have a table of product list and now I want the total of price and average... <span class="meta-more"><a href="http://sumitbansal.com/scripts/calculate-average-and-sum-from-mysql-query/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The AVG function return the average value of the specified column. For example I have a table of product list and now I want the total of price and average price of all the products.</p>
<table border="1">
<tbody>
<tr>
<th>id</th>
<th>name</th>
<th>price</th>
</tr>
<tr>
<td>43245</td>
<td>Jeans</td>
<td>19.99</td>
</tr>
<tr>
<td>43246</td>
<td>Top</td>
<td>3.99</td>
</tr>
<tr>
<td>43247</td>
<td>Playstation</td>
<td>89.95</td>
</tr>
<tr>
<td>43248</td>
<td>Men&#8217;s T-Shirt</td>
<td>32.50</td>
</tr>
<tr>
<td>43249</td>
<td>Shirt</td>
<td>34.97</td>
</tr>
<tr>
<td>43250</td>
<td>Laptop</td>
<td>3.99</td>
</tr>
<tr>
<td>43251</td>
<td>Mobile</td>
<td>21.55</td>
</tr>
<tr>
<td>43252</td>
<td>Lemon</td>
<td>8.73</td>
</tr>
</tbody>
</table>
<p><strong>Code</strong>:</p>
<p>PHP code to find out the total price and average price is</p>
<blockquote><p>&lt;?php</p>
<p>$query = &#8220;SELECT AVG(price)as priceavg, SUM(`price`) as pricesum FROM products&#8221;;</p>
<p>$result = mysql_query($query);</p>
<p>$row = mysql_fetch_array($result);</p>
<p>echo &#8220;The Total price of products is &#8220;. $row['pricesum'];</p>
<p>echo &#8220;&lt;br /&gt;&#8221;;</p>
<p>echo &#8220;The Average price of products is &#8220;. $row['priceavg'];</p>
<p>?&gt;</p></blockquote>
<p><strong>Output</strong>:</p>
<blockquote><p>The Total price of products is 21.67</p>
<p>The Average price of products is 26.96</p></blockquote>
<div class="shr-publisher-580"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/scripts/calculate-average-and-sum-from-mysql-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Custom Link to WordPress Admin Bar</title>
		<link>http://sumitbansal.com/wordpress-plugin/add-custom-link-to-wordpress-admin-bar/</link>
		<comments>http://sumitbansal.com/wordpress-plugin/add-custom-link-to-wordpress-admin-bar/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 10:34:35 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[admin bar]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[link]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=573</guid>
		<description><![CDATA[With the use of this plugin you can add custom link in your wordpress admin bar. You can also add child link of the parent link. Installation: Download the plugin... <span class="meta-more"><a href="http://sumitbansal.com/wordpress-plugin/add-custom-link-to-wordpress-admin-bar/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>With the use of this plugin you can add custom link in your wordpress admin bar. You can also add child link of the parent link.</p>
<p><strong>Installation:</strong></p>
<ul>
<li>Download the plugin and unzip it.</li>
<li>Put the &#8216;add_custom_link_to_wordpress_admin_bar&#8217; folder into your wp-content/plugins/ directory.</li>
<li>Go to the Plugins page in your WordPress Admin and activate the Add custom link to wordpress admin bar</li>
<li>Go to Add Custom Link-&gt;Manage Custom Link Tab to manage the link setting according to you.</li>
<li>To Add more link go to Add Custom Link-&gt;Add Custom Link</li>
</ul>
<p><a title="Add custom link to wordpress admin bar" href="http://wordpress.org/extend/plugins/add-custom-link-to-wordpress-admin-bar/" target="_blank">Click here to download from wordpress</a></p>
<p><a title="Add custom link to wordpress admin bar" href="http://sumitbansal.com/doc/add_custom_link_to_wordpress_admin_bar.zip" target="_blank">Click here to direct download this plugin</a></p>
<p><code>
<!-- Begin PayPal Donations by http://wpstorm.net/ -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center; margin-top:10px; margin-bottom:10px;"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="sumitbansal@ratanjyot.com" /><input type="hidden" name="return" value="http://sumitbansal.com" /><input type="hidden" name="currency_code" value="USD" /><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /><img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /></div></form>
<!-- End PayPal Donations -->
</code></p>
<div class="shr-publisher-573"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/wordpress-plugin/add-custom-link-to-wordpress-admin-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change wordpress excerpt length</title>
		<link>http://sumitbansal.com/wordpress-tips/change-wordpress-excerpt-length/</link>
		<comments>http://sumitbansal.com/wordpress-tips/change-wordpress-excerpt-length/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 10:38:38 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[Web Development Tips]]></category>
		<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[excerpt length]]></category>
		<category><![CDATA[word length]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=566</guid>
		<description><![CDATA[Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) { return 50; } add_filter(&#8216;excerpt_length&#8217;, &#8216;ratanjyot_solutions_excerpt_length&#8217;);... <span class="meta-more"><a href="http://sumitbansal.com/wordpress-tips/change-wordpress-excerpt-length/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function.</p>
<blockquote><p>function ratanjyot_solutions_excerpt_length($length) {</p>
<p>return 50;</p>
<p>}</p>
<p>add_filter(&#8216;excerpt_length&#8217;, &#8216;ratanjyot_solutions_excerpt_length&#8217;);</p></blockquote>
<p>The above code set the excerpt length to 50 words.</p>
<div class="shr-publisher-566"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/wordpress-tips/change-wordpress-excerpt-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize wordpress excerpt ellipsis with post permalink</title>
		<link>http://sumitbansal.com/wordpress-tips/customize-wordpress-excerpt-ellipsis-with-post-permalink/</link>
		<comments>http://sumitbansal.com/wordpress-tips/customize-wordpress-excerpt-ellipsis-with-post-permalink/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 11:56:02 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[ellipsis]]></category>
		<category><![CDATA[excerpt]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=561</guid>
		<description><![CDATA[Copy and Pase the given blow code in your functions.php file. This code will replace the ellipsis with post permalink. function new_excerpt_more($content) { return &#8216;&#60;div&#62;&#60;a href=&#8221;&#8216;. get_permalink() .&#8217;&#8221;&#62;Read More&#8230;&#60;/a&#62;&#60;/div&#62;&#8217;; }... <span class="meta-more"><a href="http://sumitbansal.com/wordpress-tips/customize-wordpress-excerpt-ellipsis-with-post-permalink/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Copy and Pase the given blow code in your functions.php file. This code will replace the ellipsis with post permalink.</p>
<blockquote><p>function new_excerpt_more($content) {<br />
return &#8216;&lt;div&gt;&lt;a href=&#8221;&#8216;. get_permalink() .&#8217;&#8221;&gt;Read More&#8230;&lt;/a&gt;&lt;/div&gt;&#8217;;<br />
}<br />
add_filter(&#8216;excerpt_more&#8217;, &#8216;new_excerpt_more&#8217;);</p></blockquote>
<p>You can also modify it according to you.</p>
<div class="shr-publisher-561"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/wordpress-tips/customize-wordpress-excerpt-ellipsis-with-post-permalink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Replace Newline with Space Using PHP</title>
		<link>http://sumitbansal.com/php-functions/how-to-replace-newline-with-space-using-php/</link>
		<comments>http://sumitbansal.com/php-functions/how-to-replace-newline-with-space-using-php/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 06:49:59 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[PHP Functions]]></category>
		<category><![CDATA[Web Development Tips]]></category>
		<category><![CDATA[enter]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[str_replace]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=555</guid>
		<description><![CDATA[Sometimes you need to replace newline to space or any other format (i.e:- \r\n). This is done by copying and pasting the content. To resolve this problem I use the... <span class="meta-more"><a href="http://sumitbansal.com/php-functions/how-to-replace-newline-with-space-using-php/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Sometimes you need to replace newline to space or any other format (i.e:- \r\n). This is done by copying and pasting the content. To resolve this problem I use the given blow code.</p>
<blockquote><p>$remove_character = array(&#8220;\n&#8221;, &#8220;\r\n&#8221;, &#8220;\r&#8221;);</p>
<p>$str = str_replace($remove_character , &#8216; &#8216;, $str);</p></blockquote>
<p>The above code will work fine to remove the new line from the article. You can add more into this array for example</p>
<blockquote><p>$remove_character = array(&#8220;\n&#8221;, &#8220;\r\n&#8221;, &#8220;\r&#8221;, &#8220;&lt;p&gt;&#8221;, &#8220;&lt;/p&gt;&#8221;);</p></blockquote>
<div class="shr-publisher-555"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/php-functions/how-to-replace-newline-with-space-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the difference between MyISAM and InnoDB?</title>
		<link>http://sumitbansal.com/web-development-tips/what-is-the-difference-between-myisam-and-innodb/</link>
		<comments>http://sumitbansal.com/web-development-tips/what-is-the-difference-between-myisam-and-innodb/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 07:34:30 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Web Development Tips]]></category>
		<category><![CDATA[difference between myisam and innodb]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[myisam]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=551</guid>
		<description><![CDATA[The main difference between mysql table type MyISAM and InnoDB is that InnoDB supports transaction by MyISAM does not. MyISAM support full text search but InnoDB does not. InnoDB supports... <span class="meta-more"><a href="http://sumitbansal.com/web-development-tips/what-is-the-difference-between-myisam-and-innodb/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><ol>
<li>The main difference between mysql table type MyISAM and InnoDB is that InnoDB supports transaction by MyISAM does not.</li>
<li>MyISAM support full text search but InnoDB does not.</li>
<li>InnoDB supports some new features: Transactions, row level locking, foreign keys. If your application does lots of data modification InnoDB is best.</li>
<li>InnoDB has been designed for maximum performance when processing large data volumes. Its CPU efficiency is probably not matched by any other disk-based relational database engine</li>
<li>You can use MyISAM, if the table is more static with lots of select and less update and delete. In case of transaction table, it is good to go with InnoDB storage engine.</li>
<li>Most people use MyISAM if they need speed and InnoDB for data integrity. You can use more than one or any combination of these table types in your database. Remember to asses the needs of your application before building it. Even though MyISAM is faster than InnoDB in the MySQL world, InnoDB is fast compared to any database engine.With InnoDB you get transactions, speed and integrity three features not usually used in the same sentence.</li>
</ol>
<div class="shr-publisher-551"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/web-development-tips/what-is-the-difference-between-myisam-and-innodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show wordpress search result in Ascending order</title>
		<link>http://sumitbansal.com/wordpress-tips/show-wordpress-search-result-in-ascending-order/</link>
		<comments>http://sumitbansal.com/wordpress-tips/show-wordpress-search-result-in-ascending-order/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 07:21:08 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[ascending]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=548</guid>
		<description><![CDATA[WordPress shows search result always in descending order to change it into Ascending order follow the given blow instruction. Change this line &#60;?php if(have_post()): ?&#62; to &#60;?php query_posts(&#8216;order=ASC&#8217;); if(have_post()): ?&#62;... <span class="meta-more"><a href="http://sumitbansal.com/wordpress-tips/show-wordpress-search-result-in-ascending-order/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>WordPress shows search result always in descending order to change it into Ascending order follow the given blow instruction.</p>
<p><strong>Change this line</strong></p>
<blockquote><p>&lt;?php if(have_post()): ?&gt;</p></blockquote>
<p><strong>to</strong></p>
<blockquote><p>&lt;?php query_posts(&#8216;order=ASC&#8217;);</p>
<p>if(have_post()):</p>
<p>?&gt;</p></blockquote>
<p>Now you are done to show your search result in Ascending order.</p>
<div class="shr-publisher-548"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/wordpress-tips/show-wordpress-search-result-in-ascending-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get number of days between two dates in PHP</title>
		<link>http://sumitbansal.com/scripts/how-to-get-number-of-days-between-two-dates-in-php/</link>
		<comments>http://sumitbansal.com/scripts/how-to-get-number-of-days-between-two-dates-in-php/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 04:42:13 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[PHP Scripts]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Technical Skills]]></category>
		<category><![CDATA[Web Development Tips]]></category>
		<category><![CDATA[between two dates]]></category>
		<category><![CDATA[dates]]></category>
		<category><![CDATA[days]]></category>
		<category><![CDATA[number of days]]></category>
		<category><![CDATA[php date]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=541</guid>
		<description><![CDATA[By the given blow script we can find the number of days between two dates &#60;?php $first_date = strtotime("2010-08-01"); // or current date as well $second_date = strtotime("1988-08-01"); $datediff =... <span class="meta-more"><a href="http://sumitbansal.com/scripts/how-to-get-number-of-days-between-two-dates-in-php/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>By the given blow script we can find the number of days between two dates</p>
<blockquote>
<pre><code>&lt;?php $first_date = <code>strtotime("2010-08-01")</code>; // or current date as well $second_date = strtotime("1988-08-01"); $datediff = $first_date - $second_date; echo floor($datediff/(60*60*24)); ?&gt;</code></pre>
</blockquote>
<div class="shr-publisher-541"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/scripts/how-to-get-number-of-days-between-two-dates-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide Update Reminder Message</title>
		<link>http://sumitbansal.com/wordpress-plugin/hide-update-reminder-message/</link>
		<comments>http://sumitbansal.com/wordpress-plugin/hide-update-reminder-message/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 06:51:02 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[Wordpress Plugin]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=531</guid>
		<description><![CDATA[With the use of this plugin you can hides update reminder message from the WordPress Admin for all non admin users and for Admin also. You can change the setting... <span class="meta-more"><a href="http://sumitbansal.com/wordpress-plugin/hide-update-reminder-message/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://sumitbansal.com/wp-content/uploads/2012/04/hide-update-reminder-message2.jpg"><img class="alignleft" style="padding-right: 13px; border: 0px none;" title="hide-update-reminder-message2" src="http://sumitbansal.com/wp-content/uploads/2012/04/hide-update-reminder-message2.jpg" alt="" width="144" height="317" /></a>With the use of this plugin you can hides update reminder message from the WordPress Admin for all non admin users and for Admin also.</p>
<p>You can change the setting from the WordPress Admin to show the update reminder message will hide only for only non admin users or Admin to.</p>
<p><strong>Installation</strong>:</p>
<ol>
<li>Download the plugin and unzip it.</li>
<li>Put the &#8216;hide-update-reminder-message&#8217; folder into your wp-content/plugins/ directory.</li>
<li>Go to the Plugins page in your WordPress Admin and activate the Hide Update Reminder Message</li>
<li>Go to setting-&gt;Hide Update Reminder Tab make the appropriate setting according to you.</li>
</ol>
<p><a title="Hide Update Reminder Message" href="http://wordpress.org/extend/plugins/hide-update-reminder-message/" target="_blank">Click here to Download this Plugin from WordPress<br />
</a></p>
<p><a title="Hide Update Reminder Message" href="http://sumitbansal.com/doc/hide-update-reminder-message.zip">Click here to Direct Download this Plugin</a></p>
<div class="shr-publisher-531"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/wordpress-plugin/hide-update-reminder-message/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show Top Comments or Commentators In WordPress Without A Plugin</title>
		<link>http://sumitbansal.com/scripts/show-top-comments-or-commentators-in-wordpress-without-a-plugin/</link>
		<comments>http://sumitbansal.com/scripts/show-top-comments-or-commentators-in-wordpress-without-a-plugin/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 08:16:13 +0000</pubDate>
		<dc:creator>Bansal Sumit</dc:creator>
				<category><![CDATA[PHP Scripts]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[comment script]]></category>
		<category><![CDATA[commentators]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[show latest commentators]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sumitbansal.com/?p=524</guid>
		<description><![CDATA[Here is a simple code snippet to show the top commentators or comments in the wordpres without any plugin. The code are given blow. function top_comment_authors($amount = 5){ global $wpdb;... <span class="meta-more"><a href="http://sumitbansal.com/scripts/show-top-comments-or-commentators-in-wordpress-without-a-plugin/">Read more &#187;</a></span>]]></description>
			<content:encoded><![CDATA[<div class='wb_fb_top'><div style="float:right;"></div></div><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here is a simple code snippet to show the top commentators or comments in the wordpres without any plugin. The code are given blow.</p>
<blockquote><p>function top_comment_authors($amount = 5){</p>
<p>global $wpdb;</p>
<p>$results = $wpdb-&gt;get_results(&#8216;<br />
SELECT<br />
COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url<br />
FROM<br />
&#8216;.$wpdb-&gt;comments.&#8217;<br />
WHERE<br />
comment_author_email != &#8220;&#8221; AND comment_type = &#8220;&#8221; AND comment_approved = 1<br />
GROUP BY<br />
comment_author_email<br />
ORDER BY<br />
comments_count DESC, comment_author ASC<br />
LIMIT &#8216;.$amount</p>
<p>);</p>
<p>$output = &#8220;&lt;ul&gt;&#8221;;<br />
foreach($results as $result){<br />
$output .= &#8220;&lt;li&gt;&#8221;.$result-&gt;comment_author.&#8221;&lt;/li&gt;&#8221;;<br />
}<br />
$output .= &#8220;&lt;/ul&gt;&#8221;;</p>
<p>echo $output;</p>
<p>}</p></blockquote>
<p>Paste the above script in the your functions.php file and use <strong>top_comment_authors()</strong> to show the list of commentators or comments. By default this function show the 5 list of commentators, you can change this value by passing the value in the function for example <strong>top_comment_authors(10)</strong>.</p>
<div class="shr-publisher-524"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class='wb_fb_comment'><br/></div>]]></content:encoded>
			<wfw:commentRss>http://sumitbansal.com/scripts/show-top-comments-or-commentators-in-wordpress-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  sumitbansal.com/feed/ ) in 1.26447 seconds, on May 20th, 2012 at 10:57 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 20th, 2012 at 11:57 am UTC -->
