
<?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>Let&#039;s start again... &#187; wordpress</title>
	<atom:link href="http://blog.manchumahara.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.manchumahara.com</link>
	<description>&#34;Manchumahara&#34; ...... The virtual crazy vagabond and  a emotional stupid</description>
	<lastBuildDate>Fri, 23 Jul 2010 18:33:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Facebook fanbox wordpress plugin</title>
		<link>http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/</link>
		<comments>http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 00:36:34 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=575</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_575()',5000);window.setTimeout('loadDzone_575()',5000);window.setTimeout('loadTwitter_575()',5000);window.setTimeout('loadFBShare_575()',5000);window.setTimeout('loadFBLike_575()',5000);window.setTimeout('loadDelicious_575()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_575()',5000); }); function loadDigg_575(){ jQuery(document).ready(function($) { $('.dd-digg-575').remove();$('.DD_DIGG_AJAX_575').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&#38;title=Facebook+fanbox+wordpress+plugin');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_575(){ jQuery(document).ready(function($) { $('.dd-dzone-575').remove();$('.DD_DZONE_AJAX_575').attr('width','52');$('.DD_DZONE_AJAX_575').attr('height','68');$('.DD_DZONE_AJAX_575').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&#038;title=Facebook+fanbox+wordpress+plugin&#038;t=1'); }); } function loadTwitter_575(){ jQuery(document).ready(function($) { $('.dd-twitter-575').remove();$('.DD_TWITTER_AJAX_575').attr('width','50');$('.DD_TWITTER_AJAX_575').attr('height','61');$('.DD_TWITTER_AJAX_575').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_575(){ jQuery(document).ready(function($) { $('.dd-fbshare-575').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_575(){ jQuery(document).ready(function($) { $('.dd-fblike-575').remove();$('.DD_FBLIKE_AJAX_575').attr('width','450');$('.DD_FBLIKE_AJAX_575').attr('height','25');$('.DD_FBLIKE_AJAX_575').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&#38;show_faces=false'); }); } function loadDelicious_575(){ jQuery(document).ready(function($) { $('.dd-delicious-575').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_575()',5000);window.setTimeout('loadDzone_575()',5000);window.setTimeout('loadTwitter_575()',5000);window.setTimeout('loadFBShare_575()',5000);window.setTimeout('loadFBLike_575()',5000);window.setTimeout('loadDelicious_575()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_575()',5000); });</script><script type="text/javascript"> function loadDigg_575(){ jQuery(document).ready(function($) { $('.dd-digg-575').remove();$('.DD_DIGG_AJAX_575').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&amp;title=Facebook+fanbox+wordpress+plugin');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_575(){ jQuery(document).ready(function($) { $('.dd-dzone-575').remove();$('.DD_DZONE_AJAX_575').attr('width','52');$('.DD_DZONE_AJAX_575').attr('height','68');$('.DD_DZONE_AJAX_575').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&title=Facebook+fanbox+wordpress+plugin&t=1'); }); } function loadTwitter_575(){ jQuery(document).ready(function($) { $('.dd-twitter-575').remove();$('.DD_TWITTER_AJAX_575').attr('width','50');$('.DD_TWITTER_AJAX_575').attr('height','61');$('.DD_TWITTER_AJAX_575').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_575(){ jQuery(document).ready(function($) { $('.dd-fbshare-575').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_575(){ jQuery(document).ready(function($) { $('.dd-fblike-575').remove();$('.DD_FBLIKE_AJAX_575').attr('width','450');$('.DD_FBLIKE_AJAX_575').attr('height','25');$('.DD_FBLIKE_AJAX_575').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&amp;show_faces=false'); }); } function loadDelicious_575(){ jQuery(document).ready(function($) { $('.dd-delicious-575').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_575').text(msg);}); }); } function loadGBuzz_575(){ jQuery(document).ready(function($) { $('.dd-gbuzz-575').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-575'></div><a class='DiggThisButton DD_DIGG_AJAX_575 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-575'></div><iframe class='DD_DZONE_AJAX_575' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-575'></div><iframe class='DD_TWITTER_AJAX_575' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-575'></div><a class='DD_FBSHARE_AJAX_575' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-575'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/')+'&amp;title='+encodeURIComponent('Facebook+fanbox+wordpress+plugin'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_575'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-575'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/#comments><span class='ctotal'>8</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/#comments></a></div></div></div></div><div style='clear:both'></div><p>It&#8217;s just a simple fanbox widget as wordpress plugin, nothing to explain. But I made my own version ?</p>
<h4>Features</h4>
<ul>
<li>iframe method</li>
<li> auto detect ie(internet explorer), because sometimes it&#8217;s make problem for ie and option to use as iframe only for ie !</li>
<li>jquery based document ready facebook load ! Not clear ? see bellow</li>
</ul>
<p>One thing to note that I used a way to load the facebook js script after loading jquery as normally in wordpress site front end we use jquery and many plugin uses this&#8230; so we can take that jquery is using default. So I loaded the fb js using wp_enqueue function and then called the fb init function after the document is loaded using jquery dom ready function <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  &#8230; It&#8217;s just an experiment about slow loading of facebook fanbox widget in wordpress <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h4>Download</h4>
Note: There is a file embedded within this post, please visit this post to download the file.
<p>If you just download with no comment and no recommendation to others, then I am planning to hate  you <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
Man at least share in social network and give me traffic so that I can have  more money from ads <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Good morning. It&#8217;s just morning after working whole night and I am feeling too hungry <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<span id="more-575"></span></p>
<h4>Code Example</h4>
<pre class="brush: php;">
	function widget( $args, $instance ) {
		extract( $args );
                 global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
		/* Our variables from the widget settings. */
		$title          = apply_filters('widget_title', $instance['title'] );
		$profileid      = $instance['profileid']; //name or profile id , not both
		$apikey         = isset( $instance['apikey'])? $instance['apikey'] : '';
                $stream         = isset( $instance['stream'] ) ? $instance['stream'] : 0;
                $connections    = isset( $instance['connections'] )? (($instance['connections'] &gt; 100)? 100: intval($instance['connections'])): 10; //Specifying 0 hides the list of fans in the Fan Box. You cannot display more than 100 fans. (Default value is 10 connections.)
                $width          = isset( $instance['width'] )? (($instance['width'] &lt; 200)? 200: intval($instance['width'])): 300; // at least 200 pixels wide at minimum. (Default value is 300 pixels.)
                $height         = isset( $instance['height'] )? $instance['height']: 554;
                $css            = isset( $instance['css']) ? $instace['css']:'';
                $logobar        = isset( $instance['logobar'] ) ? $instance['logobar'] : 1;
                $iframe         = isset( $instance['iframe'])? $instance['iframe'] : 0;
                $locale         = isset( $instance['locale'])? $instance['locale']: 'en_US';
                $iframeie       = isset( $instance['iframeie'] ) ? $instance['iframeie'] : 1; // use iframe for ie , auto detect
                $usejquery     = isset( $instance['usejquery'] ) ? $instance['usejquery'] : 1;
		/* Before widget (defined by themes). */
                //var_dump($iframe);
		echo $before_widget;
		/* Display the widget title if one was input (before and after defined by themes). */
		if ( $title )
                {
                    echo $before_title . $title . $after_title;
                }
                if(($is_IE &amp;&amp; $iframeie) || $iframe || $apikey == '')
                {
                    //echo 'yes';
                    echo '&lt;iframe scrolling=&quot;no&quot; frameborder=&quot;0&quot; src=&quot;http://www.facebook.com/connect/connect.php?id='.$profileid.'&amp;amp;stream='.$stream.'&amp;amp;connections='.$connections.'&amp;amp;logobar='.$logo.'&amp;amp;css='.$css.'?'.mktime().'&quot; style=&quot;border: none; width: '.$width.'px; height:'.$height.'px;&quot;&gt;&amp;nbsp;&lt;/iframe&gt;';
                }
                else
                {
                    if($usejquery)
                    {
                        wp_enqueue_script('fbjs', 'http://static.ak.connect.facebook.com/connect.php/en_US', array('jquery'), null);
                        echo '&lt;fb:fan profile_id=&quot;'.$profileid.'&quot; width=&quot;'.$width.'&quot; connections=&quot;'.$connections.'&quot; stream=&quot;'.$stream.'&quot; header=&quot;'.$logobar.'&quot;&gt;&lt;/fb:fan&gt;';
                        echo '&lt;script type=&quot;text/javascript&quot;&gt;jQuery(document).ready(function() {
                                FB.init(&quot;'.$apikey.'&quot;);
                                });&lt;/script&gt;';
                    }
                    else
                    {
                            echo '&lt;script type=&quot;text/javascript&quot; src=&quot;http://static.ak.connect.facebook.com/connect.php/en_US&quot;&gt;&lt;/script&gt;';
                            echo '&lt;script type=&quot;text/javascript&quot;&gt; FB.init(&quot;'.$apikey.'&quot;); &lt;/script&gt;';
                    }
                }
		/* After widget (defined by themes). */
		echo $after_widget;
	}
</pre>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-575'></div><iframe class="DD_FBLIKE_AJAX_575" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/06/30/facebook-fanbox-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mark active category in single page(wordpress)</title>
		<link>http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/</link>
		<comments>http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 07:45:04 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[css]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=461</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_461()',5000);window.setTimeout('loadDzone_461()',5000);window.setTimeout('loadTwitter_461()',5000);window.setTimeout('loadFBShare_461()',5000);window.setTimeout('loadFBLike_461()',5000);window.setTimeout('loadDelicious_461()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_461()',5000); }); function loadDigg_461(){ jQuery(document).ready(function($) { $('.dd-digg-461').remove();$('.DD_DIGG_AJAX_461').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&#38;title=Mark+active+category+in+single+page%28wordpress%29');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_461(){ jQuery(document).ready(function($) { $('.dd-dzone-461').remove();$('.DD_DZONE_AJAX_461').attr('width','52');$('.DD_DZONE_AJAX_461').attr('height','68');$('.DD_DZONE_AJAX_461').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&#038;title=Mark+active+category+in+single+page%28wordpress%29&#038;t=1'); }); } function loadTwitter_461(){ jQuery(document).ready(function($) { $('.dd-twitter-461').remove();$('.DD_TWITTER_AJAX_461').attr('width','50');$('.DD_TWITTER_AJAX_461').attr('height','61');$('.DD_TWITTER_AJAX_461').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_461(){ jQuery(document).ready(function($) { $('.dd-fbshare-461').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_461(){ jQuery(document).ready(function($) { $('.dd-fblike-461').remove();$('.DD_FBLIKE_AJAX_461').attr('width','450');$('.DD_FBLIKE_AJAX_461').attr('height','25');$('.DD_FBLIKE_AJAX_461').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&#38;show_faces=false'); }); } function loadDelicious_461(){ jQuery(document).ready(function($) { $('.dd-delicious-461').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_461()',5000);window.setTimeout('loadDzone_461()',5000);window.setTimeout('loadTwitter_461()',5000);window.setTimeout('loadFBShare_461()',5000);window.setTimeout('loadFBLike_461()',5000);window.setTimeout('loadDelicious_461()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_461()',5000); });</script><script type="text/javascript"> function loadDigg_461(){ jQuery(document).ready(function($) { $('.dd-digg-461').remove();$('.DD_DIGG_AJAX_461').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&amp;title=Mark+active+category+in+single+page%28wordpress%29');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_461(){ jQuery(document).ready(function($) { $('.dd-dzone-461').remove();$('.DD_DZONE_AJAX_461').attr('width','52');$('.DD_DZONE_AJAX_461').attr('height','68');$('.DD_DZONE_AJAX_461').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&title=Mark+active+category+in+single+page%28wordpress%29&t=1'); }); } function loadTwitter_461(){ jQuery(document).ready(function($) { $('.dd-twitter-461').remove();$('.DD_TWITTER_AJAX_461').attr('width','50');$('.DD_TWITTER_AJAX_461').attr('height','61');$('.DD_TWITTER_AJAX_461').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_461(){ jQuery(document).ready(function($) { $('.dd-fbshare-461').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_461(){ jQuery(document).ready(function($) { $('.dd-fblike-461').remove();$('.DD_FBLIKE_AJAX_461').attr('width','450');$('.DD_FBLIKE_AJAX_461').attr('height','25');$('.DD_FBLIKE_AJAX_461').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&amp;show_faces=false'); }); } function loadDelicious_461(){ jQuery(document).ready(function($) { $('.dd-delicious-461').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_461').text(msg);}); }); } function loadGBuzz_461(){ jQuery(document).ready(function($) { $('.dd-gbuzz-461').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-461'></div><a class='DiggThisButton DD_DIGG_AJAX_461 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-461'></div><iframe class='DD_DZONE_AJAX_461' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-461'></div><iframe class='DD_TWITTER_AJAX_461' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-461'></div><a class='DD_FBSHARE_AJAX_461' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-461'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/')+'&amp;title='+encodeURIComponent('Mark+active+category+in+single+page%28wordpress%29'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_461'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-461'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/#comments><span class='ctotal'>6</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/#comments></a></div></div></div></div><div style='clear:both'></div><p>I think my post title is not clear and it&#8217;s really not possible to tell every thing in just a simple post title <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . Ok, I am taking about:<br />
1. WordPress<br />
2. Category menu in wordpress using wp_list_categories()</p>
<p>If you make a wordpress menu using category listing in wordpress then the html code will be like this<span id="more-461"></span></p>
<dl id="attachment_462" class="wp-caption alignnone" style="width: 660px"><dt><a href="http://blog.manchumahara.com/wp-content/uploads/2010/04/current.png"><img class="size-full wp-image-462" title="current" src="http://blog.manchumahara.com/wp-content/uploads/2010/04/current.png" alt="WordPress menu as category list" width="650" height="121" /></a></dt><dd class="wp-caption-text">WordPress menu as category list(click image to see full)</dd></dl>
<p>In the above picture , you see same thing twice , firt one<br />
1. when we are not in any category page(category archive page)<br />
2. when we are in a category archive page , the active category list gets a extra class name &#8220;current-cat&#8221;<br />
<strong>So my post is about when we are browsing any single post how can we mark the the category as &#8220;current-cat&#8221; that post belongs to so that the active category list can be styled using css.</strong></p>
<p>So to do that I got a plugin (please check <a href="http://www.screenshine.net/blog/1474_wordpress-plugin-show-active-category">here</a>) but i am not happy as the plugin put active class for anchor tag&#8230; Please check the plugin code.</p>
<pre class="brush: php;">
function show_active_category($text) {
	global $post;
	if( is_single() ) {
		$categories = wp_get_post_categories($post-&gt;ID);
		foreach( $categories as $catid ) {
			$cat = get_category($catid);
			if(preg_match('#&gt;' . $cat-&gt;name . '&lt;/a&gt;#', $text)) {
				$text = str_replace('&gt;' . $cat-&gt;name . '&lt;/a&gt;', ' class=&quot;active_category&quot;&gt;' . $cat-&gt;name . '&lt;/a&gt;', $text);
			}
		}
	}
	return $text;
}
add_filter('wp_list_categories', 'show_active_category');
</pre>
<p>and here is my version</p>
<pre class="brush: php;">
function show_active_category($text) {
global $post;
if( is_single() ) {
$categories = wp_get_post_categories($post-&gt;ID);
foreach( $categories as $cat )
{
//var_dump($cat);
if(preg_match('#
	&lt;li class=&quot;cat-item cat-item-'.$cat.'&quot;&gt;#', $text))
{
$text = str_replace('&lt;/li&gt;
	&lt;li class=&quot;cat-item cat-item-'.$cat.'&quot;&gt;', '&lt;/li&gt;
	&lt;li class=&quot;cat-item cat-item-'.$cat.' current-cat&quot;&gt;', $text);
}
}
}
return $text;
}
add_filter('wp_list_categories', 'show_active_category');
</pre>
<p>you can put the above your in your functions.php file and no need to install an extra plugin.</p>
<p>That&#8217;s it.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-461'></div><iframe class="DD_FBLIKE_AJAX_461" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/04/04/mark-active-category-in-single-pagewordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using wordpress native thickbox</title>
		<link>http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/</link>
		<comments>http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 07:51:22 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[thickbox]]></category>
		<category><![CDATA[wp tips]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=443</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_443()',5000);window.setTimeout('loadDzone_443()',5000);window.setTimeout('loadTwitter_443()',5000);window.setTimeout('loadFBShare_443()',5000);window.setTimeout('loadFBLike_443()',5000);window.setTimeout('loadDelicious_443()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_443()',5000); }); function loadDigg_443(){ jQuery(document).ready(function($) { $('.dd-digg-443').remove();$('.DD_DIGG_AJAX_443').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&#38;title=Using+wordpress+native+thickbox');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_443(){ jQuery(document).ready(function($) { $('.dd-dzone-443').remove();$('.DD_DZONE_AJAX_443').attr('width','52');$('.DD_DZONE_AJAX_443').attr('height','68');$('.DD_DZONE_AJAX_443').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&#038;title=Using+wordpress+native+thickbox&#038;t=1'); }); } function loadTwitter_443(){ jQuery(document).ready(function($) { $('.dd-twitter-443').remove();$('.DD_TWITTER_AJAX_443').attr('width','50');$('.DD_TWITTER_AJAX_443').attr('height','61');$('.DD_TWITTER_AJAX_443').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_443(){ jQuery(document).ready(function($) { $('.dd-fbshare-443').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_443(){ jQuery(document).ready(function($) { $('.dd-fblike-443').remove();$('.DD_FBLIKE_AJAX_443').attr('width','450');$('.DD_FBLIKE_AJAX_443').attr('height','25');$('.DD_FBLIKE_AJAX_443').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&#38;show_faces=false'); }); } function loadDelicious_443(){ jQuery(document).ready(function($) { $('.dd-delicious-443').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_443()',5000);window.setTimeout('loadDzone_443()',5000);window.setTimeout('loadTwitter_443()',5000);window.setTimeout('loadFBShare_443()',5000);window.setTimeout('loadFBLike_443()',5000);window.setTimeout('loadDelicious_443()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_443()',5000); });</script><script type="text/javascript"> function loadDigg_443(){ jQuery(document).ready(function($) { $('.dd-digg-443').remove();$('.DD_DIGG_AJAX_443').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&amp;title=Using+wordpress+native+thickbox');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_443(){ jQuery(document).ready(function($) { $('.dd-dzone-443').remove();$('.DD_DZONE_AJAX_443').attr('width','52');$('.DD_DZONE_AJAX_443').attr('height','68');$('.DD_DZONE_AJAX_443').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&title=Using+wordpress+native+thickbox&t=1'); }); } function loadTwitter_443(){ jQuery(document).ready(function($) { $('.dd-twitter-443').remove();$('.DD_TWITTER_AJAX_443').attr('width','50');$('.DD_TWITTER_AJAX_443').attr('height','61');$('.DD_TWITTER_AJAX_443').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_443(){ jQuery(document).ready(function($) { $('.dd-fbshare-443').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_443(){ jQuery(document).ready(function($) { $('.dd-fblike-443').remove();$('.DD_FBLIKE_AJAX_443').attr('width','450');$('.DD_FBLIKE_AJAX_443').attr('height','25');$('.DD_FBLIKE_AJAX_443').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&amp;show_faces=false'); }); } function loadDelicious_443(){ jQuery(document).ready(function($) { $('.dd-delicious-443').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_443').text(msg);}); }); } function loadGBuzz_443(){ jQuery(document).ready(function($) { $('.dd-gbuzz-443').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-443'></div><a class='DiggThisButton DD_DIGG_AJAX_443 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-443'></div><iframe class='DD_DZONE_AJAX_443' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-443'></div><iframe class='DD_TWITTER_AJAX_443' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-443'></div><a class='DD_FBSHARE_AJAX_443' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-443'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/')+'&amp;title='+encodeURIComponent('Using+wordpress+native+thickbox'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_443'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-443'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/#comments><span class='ctotal'>1</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/#comments></a></div></div></div></div><div style='clear:both'></div><p>To know about what is <a href="http://jquery.com/demo/thickbox/">thickbox</a> please check this link. WordPress use this a main popup window or modal view. Thickbox is a jquery plugin and it&#8217;s available with wordpress with  jquery. So my tips is how to use that in front end , using the thickbox available with it, no need to use externally.</p>
<blockquote><p>ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline content, iframed content, or content served through AJAX in a hybrid modal.</p></blockquote>
<p>At first let me tell you where you can get it if u search wordpress directory manually. Just check in  wp-includes\js  where you will get all the js library and plugins used with wordpress or available for use with plugin and theme.  And here is every thing you need for thickbox<br />
wp-includes\js\thickbox<br />
<span id="more-443"></span><br />
Let me tell you now how to use it in theme or plugin. Let&#8217;s play with functions.php file of your theme file<br />
Add this line in your functions.php file any where with care</p>
<pre class="brush: php;">
function add_themescript(){
	if(!is_admin()){
	wp_enqueue_script('jquery');
	wp_enqueue_script('thickbox',null,array('jquery'));
	wp_enqueue_style('thickbox.css', '/'.WPINC.'/js/thickbox/thickbox.css', null, '1.0');
	}
}
add_action('init','add_themescript');
</pre>
<p><strong>wp_enqueue_script</strong> function is used to load js file using theme and plugin. It helps you to load library js and plugin availble with wordpress and as well as loading js from external links like from theme , plugin or external sites. Also it will not load same js file again and again if same function used  in diff plugin and theme. To know more about adding java script and stylesheet(custom css file) see in wordpress codex <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">adding js</a> and <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style">adding css</a></p>
<p>Hei, we are not done yet. need to do some lines more so that the loading image and close button show properly. Open your footer.php and write the follow lines before wp_footer()  this. </p>
<pre class="brush: php;">
&lt;script type=&quot;text/javascript&quot;&gt;
if ( typeof tb_pathToImage != 'string' )
{
    var tb_pathToImage = &quot;&lt;?php echo get_bloginfo('url').'/wp-includes/js/thickbox'; ?&gt;/loadingAnimation.gif&quot;;
}
if ( typeof tb_closeImage != 'string' )
{
    var tb_closeImage = &quot;&lt;?php echo get_bloginfo('url').'/wp-includes/js/thickbox'; ?&gt;/tb-close.png&quot;;
}
&lt;/script&gt;
and how to use thickbox you can see the &lt;a href=&quot;http://jquery.com/demo/thickbox/&quot;&gt; thickbox page&lt;/a&gt; in jquery site .
</pre>
<p>To show feedbernuer subscription link in popup windows I used this code</p>
<pre class="brush: xml;">
&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=manchumahara&amp;amp;loc=en_US&amp;amp;KeepThis=true&amp;amp;height=450&amp;amp;width=600&amp;amp;TB_iframe=true&quot; class=&quot;thickbox&quot;&gt;Subscribe to my blog via Email&lt;/a&gt;
</pre>
<p>That&#8217;s all. </p>
<p>Hei don&#8217;t think I will now say &#8230; pls donate me if you like my writings&#8230; because I have removed my donate button as nobody care about my time to do all the plugins/extentions and tips <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Tataz</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-443'></div><iframe class="DD_FBLIKE_AJAX_443" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/03/22/using-wordpress-native-thickbox/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP Plugin: webmasterkey</title>
		<link>http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/</link>
		<comments>http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:13:45 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[alex]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[webmasterkey]]></category>
		<category><![CDATA[yahoo]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_424()',5000);window.setTimeout('loadDzone_424()',5000);window.setTimeout('loadTwitter_424()',5000);window.setTimeout('loadFBShare_424()',5000);window.setTimeout('loadFBLike_424()',5000);window.setTimeout('loadDelicious_424()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_424()',5000); }); function loadDigg_424(){ jQuery(document).ready(function($) { $('.dd-digg-424').remove();$('.DD_DIGG_AJAX_424').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&#38;title=WP+Plugin%3A+webmasterkey');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_424(){ jQuery(document).ready(function($) { $('.dd-dzone-424').remove();$('.DD_DZONE_AJAX_424').attr('width','52');$('.DD_DZONE_AJAX_424').attr('height','68');$('.DD_DZONE_AJAX_424').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&#038;title=WP+Plugin%3A+webmasterkey&#038;t=1'); }); } function loadTwitter_424(){ jQuery(document).ready(function($) { $('.dd-twitter-424').remove();$('.DD_TWITTER_AJAX_424').attr('width','50');$('.DD_TWITTER_AJAX_424').attr('height','61');$('.DD_TWITTER_AJAX_424').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_424(){ jQuery(document).ready(function($) { $('.dd-fbshare-424').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_424(){ jQuery(document).ready(function($) { $('.dd-fblike-424').remove();$('.DD_FBLIKE_AJAX_424').attr('width','450');$('.DD_FBLIKE_AJAX_424').attr('height','25');$('.DD_FBLIKE_AJAX_424').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&#38;show_faces=false'); }); } function loadDelicious_424(){ jQuery(document).ready(function($) { $('.dd-delicious-424').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_424()',5000);window.setTimeout('loadDzone_424()',5000);window.setTimeout('loadTwitter_424()',5000);window.setTimeout('loadFBShare_424()',5000);window.setTimeout('loadFBLike_424()',5000);window.setTimeout('loadDelicious_424()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_424()',5000); });</script><script type="text/javascript"> function loadDigg_424(){ jQuery(document).ready(function($) { $('.dd-digg-424').remove();$('.DD_DIGG_AJAX_424').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&amp;title=WP+Plugin%3A+webmasterkey');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_424(){ jQuery(document).ready(function($) { $('.dd-dzone-424').remove();$('.DD_DZONE_AJAX_424').attr('width','52');$('.DD_DZONE_AJAX_424').attr('height','68');$('.DD_DZONE_AJAX_424').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&title=WP+Plugin%3A+webmasterkey&t=1'); }); } function loadTwitter_424(){ jQuery(document).ready(function($) { $('.dd-twitter-424').remove();$('.DD_TWITTER_AJAX_424').attr('width','50');$('.DD_TWITTER_AJAX_424').attr('height','61');$('.DD_TWITTER_AJAX_424').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_424(){ jQuery(document).ready(function($) { $('.dd-fbshare-424').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_424(){ jQuery(document).ready(function($) { $('.dd-fblike-424').remove();$('.DD_FBLIKE_AJAX_424').attr('width','450');$('.DD_FBLIKE_AJAX_424').attr('height','25');$('.DD_FBLIKE_AJAX_424').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&amp;show_faces=false'); }); } function loadDelicious_424(){ jQuery(document).ready(function($) { $('.dd-delicious-424').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_424').text(msg);}); }); } function loadGBuzz_424(){ jQuery(document).ready(function($) { $('.dd-gbuzz-424').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-424'></div><a class='DiggThisButton DD_DIGG_AJAX_424 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-424'></div><iframe class='DD_DZONE_AJAX_424' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-424'></div><iframe class='DD_TWITTER_AJAX_424' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-424'></div><a class='DD_FBSHARE_AJAX_424' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-424'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/')+'&amp;title='+encodeURIComponent('WP+Plugin%3A+webmasterkey'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_424'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-424'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/#comments><span class='ctotal'>4</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/#comments></a></div></div></div></div><div style='clear:both'></div><p>Webmasterkey is a wordpress plugin to add google, yahoo, bing, alexa  site verification meta tag from admin. I think it will be handy for webmaster.<br />
Quick links for Google,Yahoo and Bing,Alexa  webmaster tool</p>
<ul>
<li><a href="http://www.google.com/webmasters/" target="_blank">Google Webmaster</a></li>
<li><a href="https://siteexplorer.search.yahoo.com/" target="_blank">Yahoo Siteexplorer</a></li>
<li><a href="http://www.bing.com/webmaster" target="_blank">Bing/Live webmaster</a></li>
<li><a href="http://www.alexa.com/siteowners">Alexa Siteowners</a>(new)</li>
</ul>
<h4>how to collect meta tags</h4>
<p>I know max ppl are smart enough and can do it easily but some ppl are not mcuh technical and don no how to  upload file or add meta tag in theme file and where. so, to get google meta tag key go to <a href="http://www.google.com/webmasters/" target="_blank">Google Webmaster</a>, login using your google id and your site. See image bellow and check you will see something like this. Copy meta value (red underline in screenshot)<br />
<span id="more-424"></span><br />
<img class="size-full wp-image-426 aligncenter" title="meta" src="http://blog.manchumahara.com/wp-content/uploads/2010/02/meta1.jpg" alt="" width="605" height="141" /></p>
<h4>Download</h4>
Note: There is a file embedded within this post, please visit this post to download the file.
<h4>Plugin installation</h4>
<ul>
<li>Download the zip</li>
<li>Unzip and install like any other plugin</li>
<li>Activate it</li>
<li>Go to <strong>&#8220;Setting -&gt; Webmaster key&#8221;</strong> and now paste your google meta tag code</li>
<li>Same way put yahoo and bing meta tag key and save, you are done!</li>
</ul>
<p><img class="alignleft size-full wp-image-427" title="webmasterkey" src="http://blog.manchumahara.com/wp-content/uploads/2010/02/webmasterkey.jpg" alt="" width="578" height="357" /></p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-424'></div><iframe class="DD_FBLIKE_AJAX_424" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/02/01/wp-plugin-webmasterkey/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Download Category widget for WP-DownloadManager</title>
		<link>http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/</link>
		<comments>http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 00:16:16 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[wordpres plugin]]></category>
		<category><![CDATA[wpdownload manager]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=422</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_422()',5000);window.setTimeout('loadDzone_422()',5000);window.setTimeout('loadTwitter_422()',5000);window.setTimeout('loadFBShare_422()',5000);window.setTimeout('loadFBLike_422()',5000);window.setTimeout('loadDelicious_422()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_422()',5000); }); function loadDigg_422(){ jQuery(document).ready(function($) { $('.dd-digg-422').remove();$('.DD_DIGG_AJAX_422').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&#38;title=Download+Category+widget+for+WP-DownloadManager+plugin');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_422(){ jQuery(document).ready(function($) { $('.dd-dzone-422').remove();$('.DD_DZONE_AJAX_422').attr('width','52');$('.DD_DZONE_AJAX_422').attr('height','68');$('.DD_DZONE_AJAX_422').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&#038;title=Download+Category+widget+for+WP-DownloadManager+plugin&#038;t=1'); }); } function loadTwitter_422(){ jQuery(document).ready(function($) { $('.dd-twitter-422').remove();$('.DD_TWITTER_AJAX_422').attr('width','50');$('.DD_TWITTER_AJAX_422').attr('height','61');$('.DD_TWITTER_AJAX_422').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_422(){ jQuery(document).ready(function($) { $('.dd-fbshare-422').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_422(){ jQuery(document).ready(function($) { $('.dd-fblike-422').remove();$('.DD_FBLIKE_AJAX_422').attr('width','450');$('.DD_FBLIKE_AJAX_422').attr('height','25');$('.DD_FBLIKE_AJAX_422').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&#38;show_faces=false'); }); } function loadDelicious_422(){ jQuery(document).ready(function($) { $('.dd-delicious-422').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_422()',5000);window.setTimeout('loadDzone_422()',5000);window.setTimeout('loadTwitter_422()',5000);window.setTimeout('loadFBShare_422()',5000);window.setTimeout('loadFBLike_422()',5000);window.setTimeout('loadDelicious_422()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_422()',5000); });</script><script type="text/javascript"> function loadDigg_422(){ jQuery(document).ready(function($) { $('.dd-digg-422').remove();$('.DD_DIGG_AJAX_422').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&amp;title=Download+Category+widget+for+WP-DownloadManager+plugin');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_422(){ jQuery(document).ready(function($) { $('.dd-dzone-422').remove();$('.DD_DZONE_AJAX_422').attr('width','52');$('.DD_DZONE_AJAX_422').attr('height','68');$('.DD_DZONE_AJAX_422').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&title=Download+Category+widget+for+WP-DownloadManager+plugin&t=1'); }); } function loadTwitter_422(){ jQuery(document).ready(function($) { $('.dd-twitter-422').remove();$('.DD_TWITTER_AJAX_422').attr('width','50');$('.DD_TWITTER_AJAX_422').attr('height','61');$('.DD_TWITTER_AJAX_422').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_422(){ jQuery(document).ready(function($) { $('.dd-fbshare-422').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_422(){ jQuery(document).ready(function($) { $('.dd-fblike-422').remove();$('.DD_FBLIKE_AJAX_422').attr('width','450');$('.DD_FBLIKE_AJAX_422').attr('height','25');$('.DD_FBLIKE_AJAX_422').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&amp;show_faces=false'); }); } function loadDelicious_422(){ jQuery(document).ready(function($) { $('.dd-delicious-422').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_422').text(msg);}); }); } function loadGBuzz_422(){ jQuery(document).ready(function($) { $('.dd-gbuzz-422').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-422'></div><a class='DiggThisButton DD_DIGG_AJAX_422 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-422'></div><iframe class='DD_DZONE_AJAX_422' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-422'></div><iframe class='DD_TWITTER_AJAX_422' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-422'></div><a class='DD_FBSHARE_AJAX_422' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-422'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/')+'&amp;title='+encodeURIComponent('Download+Category+widget+for+WP-DownloadManager+plugin'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_422'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-422'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/#comments><span class='ctotal'>12</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/#comments></a></div></div></div></div><div style='clear:both'></div><p>I am using <a rel="external nofollow" href="http://wordpress.org/extend/plugins/wp-downloadmanager/" target="_blank">WP-DownloadManager</a> plugin to manage downloads in my blog. It&#8217;s a very usefull plugin by <a rel="external nofollow" href="http://lesterchan.net/portfolio/programming/php/" target="_blank">Lester &#8216;GaMerZ&#8217; Chan</a>. I think , He made the most important plugins for wp  <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . He already wrote 17 wordpress plugins ! I am a big fan of Lester Chan aka &#8216;GaMerZ&#8217; Chan and sometimes I try to get help from his plugin .. I mean how to wrote such nice and clean plugins&#8230;</p>
<p>Ok, I just checked that <a rel="external nofollow" href="http://wordpress.org/extend/plugins/wp-downloadmanager/" target="_blank">WP-DownloadManager</a> plugin can list category but with files in each. But I wanted something like a download category widgets and a list of download category (<em>just list of download category</em>). So I just wrote a plugin for <a rel="external nofollow" href="http://wordpress.org/extend/plugins/wp-downloadmanager/" target="_blank">WP-DownloadManager</a> plugin <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . It will allow you to put a widget in sidebar showing all the Download Category as list with files and hits count as soon as you can use short code  in post and pages. And this will make a download category list like bellow <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
<ul><li><a href="http://blog.manchumahara.com/downloads/?dl_cat=2">Joomla Extensions( 6 Files,15,394 Hits)</a></li><li><a href="http://blog.manchumahara.com/downloads/?dl_cat=3">Wordpress Plugins( 10 Files,5,399 Hits)</a></li><li><a href="http://blog.manchumahara.com/downloads/?dl_cat=4">Phpbb Mods( 1 Files,4,826 Hits)</a></li><li><a href="http://blog.manchumahara.com/downloads/?dl_cat=5">Projukti Kothon( 3 Files,3,127 Hits)</a></li><li><a href="http://blog.manchumahara.com/downloads/?dl_cat=6">Personal( 1 Files,2,666 Hits)</a></li></ul><span id="more-422"></span></p>
<h4>Download</h4>
Note: There is a file embedded within this post, please visit this post to download the file.
<h4>Installation</h4>
<ul>
<li>Make sure that you installed the wp-downloadmanager plugin first !</li>
<li>Now, Install the plugin like any other plugin.</li>
</ul>
<h4>Shortcode/widget usage</h4>
<p>You can use as short code as well as widget. After installing visit your widget area from admin panel and  use &#8220;Download Categories&#8221; widget to place in sidebar. To use shortcode in post or pages, write in your post/pages editor in html mode<br />
<strong>page_download_cat</strong> and wrap this word in []   , you are done.</p>
<p>I just made a quick wrap of my needs and sharing with you. If you find any problem using this let me know. BTW, I am  using this plugin in my <a rel="follow internal" href="http://blog.manchumahara.com/downloads/">download page</a> where you will get my other wordpress, joomla and phpbb plugins.<br />
Thank you.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-422'></div><iframe class="DD_FBLIKE_AJAX_422" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/01/27/download-category-widget-for-wp-downloadmanager-plugin/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Tab/Sliders for wordpress posts/pages</title>
		<link>http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/</link>
		<comments>http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 12:13:19 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[wordpresplugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=420</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_420()',5000);window.setTimeout('loadDzone_420()',5000);window.setTimeout('loadTwitter_420()',5000);window.setTimeout('loadFBShare_420()',5000);window.setTimeout('loadFBLike_420()',5000);window.setTimeout('loadDelicious_420()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_420()',5000); }); function loadDigg_420(){ jQuery(document).ready(function($) { $('.dd-digg-420').remove();$('.DD_DIGG_AJAX_420').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&#38;title=Tab%2FSliders+for+wordpress+posts%2Fpages');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_420(){ jQuery(document).ready(function($) { $('.dd-dzone-420').remove();$('.DD_DZONE_AJAX_420').attr('width','52');$('.DD_DZONE_AJAX_420').attr('height','68');$('.DD_DZONE_AJAX_420').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&#038;title=Tab%2FSliders+for+wordpress+posts%2Fpages&#038;t=1'); }); } function loadTwitter_420(){ jQuery(document).ready(function($) { $('.dd-twitter-420').remove();$('.DD_TWITTER_AJAX_420').attr('width','50');$('.DD_TWITTER_AJAX_420').attr('height','61');$('.DD_TWITTER_AJAX_420').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_420(){ jQuery(document).ready(function($) { $('.dd-fbshare-420').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_420(){ jQuery(document).ready(function($) { $('.dd-fblike-420').remove();$('.DD_FBLIKE_AJAX_420').attr('width','450');$('.DD_FBLIKE_AJAX_420').attr('height','25');$('.DD_FBLIKE_AJAX_420').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&#38;show_faces=false'); }); } function loadDelicious_420(){ jQuery(document).ready(function($) { $('.dd-delicious-420').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_420()',5000);window.setTimeout('loadDzone_420()',5000);window.setTimeout('loadTwitter_420()',5000);window.setTimeout('loadFBShare_420()',5000);window.setTimeout('loadFBLike_420()',5000);window.setTimeout('loadDelicious_420()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_420()',5000); });</script><script type="text/javascript"> function loadDigg_420(){ jQuery(document).ready(function($) { $('.dd-digg-420').remove();$('.DD_DIGG_AJAX_420').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&amp;title=Tab%2FSliders+for+wordpress+posts%2Fpages');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_420(){ jQuery(document).ready(function($) { $('.dd-dzone-420').remove();$('.DD_DZONE_AJAX_420').attr('width','52');$('.DD_DZONE_AJAX_420').attr('height','68');$('.DD_DZONE_AJAX_420').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&title=Tab%2FSliders+for+wordpress+posts%2Fpages&t=1'); }); } function loadTwitter_420(){ jQuery(document).ready(function($) { $('.dd-twitter-420').remove();$('.DD_TWITTER_AJAX_420').attr('width','50');$('.DD_TWITTER_AJAX_420').attr('height','61');$('.DD_TWITTER_AJAX_420').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_420(){ jQuery(document).ready(function($) { $('.dd-fbshare-420').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_420(){ jQuery(document).ready(function($) { $('.dd-fblike-420').remove();$('.DD_FBLIKE_AJAX_420').attr('width','450');$('.DD_FBLIKE_AJAX_420').attr('height','25');$('.DD_FBLIKE_AJAX_420').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&amp;show_faces=false'); }); } function loadDelicious_420(){ jQuery(document).ready(function($) { $('.dd-delicious-420').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_420').text(msg);}); }); } function loadGBuzz_420(){ jQuery(document).ready(function($) { $('.dd-gbuzz-420').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-420'></div><a class='DiggThisButton DD_DIGG_AJAX_420 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-420'></div><iframe class='DD_DZONE_AJAX_420' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-420'></div><iframe class='DD_TWITTER_AJAX_420' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-420'></div><a class='DD_FBSHARE_AJAX_420' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-420'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/')+'&amp;title='+encodeURIComponent('Tab%2FSliders+for+wordpress+posts%2Fpages'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_420'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-420'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/#comments><span class='ctotal'>5</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/#comments></a></div></div></div></div><div style='clear:both'></div><p>Helo guys I am ready to show you a tab/slides plugin for wordpress. Let me tell u a tale. Once I did a site in joomla1.x for a client and that used the tab slides in content, a jooomla mambot of <a rel="follow external" href="http://www.joomlaworks.gr/content/view/15/42/" target="_blank">joomlaworks.gr</a>. Somedays ago I made the same site in using wordpress and wordpress is better than joomla for blogging. So I needed to reuse the tabslide plugin for wordpress and I just converted that joomla mambot/plugin to wordpress plugin. I am releasing in same GPL licence and free. I think this will help some ppl to enable tab/slide in wordpress posts/pages.</p>
<p>Check live demo in <a rel="nofollow external" href="http://gdpnetwork.com" target="_blank">gdpnetwork.com</a> or u can give a try in your localhost <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
<span id="more-420"></span><br />
<a href="http://blog.manchumahara.com/wp-content/uploads/2010/01/Tab-Sliders-for-wordpress-posts-pages-Lets-start-again..._1263816986127.png"><img class="aligncenter size-full wp-image-421" title="Tab-Sliders" src="http://blog.manchumahara.com/wp-content/uploads/2010/01/Tab-Sliders-for-wordpress-posts-pages-Lets-start-again..._1263816986127.png" alt="Tab-Sliders" width="586" height="355" /></a></p>
<h4>Usage:</h4>
<ul>
<li>Install the plugin and activate</li>
<li>Check there will be added a new menu in Settings</li>
<li>Go to <strong>Settings-&gt;JW TabSlides</strong></li>
<li>Check setting and change slider timer and speed as u need</li>
<li>Check Tab/Slide usage syntax bottom in setting page</li>
<li><strong>Special feature:</strong> On demand js, css loading, heh heh think smart.</li>
</ul>
<p><strong>Update: Syntax is given here as I disabled this plugin in my blog <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong></p>
<pre class="brush: xml;">
Tab:
{tab=First Tab}
here some content
{tab= Another tab}
I need some sleep
{tab=This is fun}
I thi it will be fun for you
{/tabs}
Slide:
{slide= First slide}
Here is content for first slide
{/slide}
{slide= 2nd slide}
This is fun too
{/slide}
Slides  in Tabs:
{tab=First Tab}
{slide= First slide}
Here is content for first slide
{/slide}
{slide= 2nd slide}
This is fun too
{/slide}
{tab= Another tab}
I need some sleep
{tab=This is fun}
{slide=Mu ha ha}
Here is content for first slide
{/slide}
{slide= This is done}
This is fun too
{/slide}
{/tabs}
</pre>
<h4>Download:</h4>
Note: There is a file embedded within this post, please visit this post to download the file.
<p>hei don&#8217;t forget to click social bookmark if you like this and I like donation which will help me to give time for development of open source works. thank you checking&#8230;</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-420'></div><iframe class="DD_FBLIKE_AJAX_420" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/01/18/tabsliders-for-wordpress-postspages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Playing with worpdress permalink</title>
		<link>http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/</link>
		<comments>http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 11:10:40 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[Permalink]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[author base]]></category>
		<category><![CDATA[category base]]></category>
		<category><![CDATA[post slug]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[worpdress]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=414</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_414()',5000);window.setTimeout('loadDzone_414()',5000);window.setTimeout('loadTwitter_414()',5000);window.setTimeout('loadFBShare_414()',5000);window.setTimeout('loadFBLike_414()',5000);window.setTimeout('loadDelicious_414()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_414()',5000); }); function loadDigg_414(){ jQuery(document).ready(function($) { $('.dd-digg-414').remove();$('.DD_DIGG_AJAX_414').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&#38;title=Playing+with+worpdress+permalink');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_414(){ jQuery(document).ready(function($) { $('.dd-dzone-414').remove();$('.DD_DZONE_AJAX_414').attr('width','52');$('.DD_DZONE_AJAX_414').attr('height','68');$('.DD_DZONE_AJAX_414').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&#038;title=Playing+with+worpdress+permalink&#038;t=1'); }); } function loadTwitter_414(){ jQuery(document).ready(function($) { $('.dd-twitter-414').remove();$('.DD_TWITTER_AJAX_414').attr('width','50');$('.DD_TWITTER_AJAX_414').attr('height','61');$('.DD_TWITTER_AJAX_414').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_414(){ jQuery(document).ready(function($) { $('.dd-fbshare-414').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_414(){ jQuery(document).ready(function($) { $('.dd-fblike-414').remove();$('.DD_FBLIKE_AJAX_414').attr('width','450');$('.DD_FBLIKE_AJAX_414').attr('height','25');$('.DD_FBLIKE_AJAX_414').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&#38;show_faces=false'); }); } function loadDelicious_414(){ jQuery(document).ready(function($) { $('.dd-delicious-414').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_414()',5000);window.setTimeout('loadDzone_414()',5000);window.setTimeout('loadTwitter_414()',5000);window.setTimeout('loadFBShare_414()',5000);window.setTimeout('loadFBLike_414()',5000);window.setTimeout('loadDelicious_414()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_414()',5000); });</script><script type="text/javascript"> function loadDigg_414(){ jQuery(document).ready(function($) { $('.dd-digg-414').remove();$('.DD_DIGG_AJAX_414').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&amp;title=Playing+with+worpdress+permalink');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_414(){ jQuery(document).ready(function($) { $('.dd-dzone-414').remove();$('.DD_DZONE_AJAX_414').attr('width','52');$('.DD_DZONE_AJAX_414').attr('height','68');$('.DD_DZONE_AJAX_414').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&title=Playing+with+worpdress+permalink&t=1'); }); } function loadTwitter_414(){ jQuery(document).ready(function($) { $('.dd-twitter-414').remove();$('.DD_TWITTER_AJAX_414').attr('width','50');$('.DD_TWITTER_AJAX_414').attr('height','61');$('.DD_TWITTER_AJAX_414').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_414(){ jQuery(document).ready(function($) { $('.dd-fbshare-414').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_414(){ jQuery(document).ready(function($) { $('.dd-fblike-414').remove();$('.DD_FBLIKE_AJAX_414').attr('width','450');$('.DD_FBLIKE_AJAX_414').attr('height','25');$('.DD_FBLIKE_AJAX_414').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&amp;show_faces=false'); }); } function loadDelicious_414(){ jQuery(document).ready(function($) { $('.dd-delicious-414').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_414').text(msg);}); }); } function loadGBuzz_414(){ jQuery(document).ready(function($) { $('.dd-gbuzz-414').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-414'></div><a class='DiggThisButton DD_DIGG_AJAX_414 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-414'></div><iframe class='DD_DZONE_AJAX_414' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-414'></div><iframe class='DD_TWITTER_AJAX_414' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-414'></div><a class='DD_FBSHARE_AJAX_414' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-414'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/')+'&amp;title='+encodeURIComponent('Playing+with+worpdress+permalink'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_414'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-414'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/#comments><span class='ctotal'>2</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/#comments></a></div></div></div></div><div style='clear:both'></div><p>Today I will show how to play with wordpress permalink. If you are just working with a fresh wordpress installation then certainly you need to do some work with wordpress permalink structure. Just check in admin left menu <strong>Settings-&gt;Permalinks</strong><br />
Here is first look of your <em>default</em> permalink structure. Check your post and page url is like:<br />
<span id="more-414"></span><br />
<a href="http://blog.manchumahara.com/wp-content/uploads/2010/01/1.jpg"><img class="aligncenter size-full wp-image-416" title="1" src="http://blog.manchumahara.com/wp-content/uploads/2010/01/1.jpg" alt="wpdefaultpermalink" width="612" height="428" /></a><br />
<code>Post: http://sitename.com/?p=<strong>N</strong>, where N = post id<br />
Page: http://sitename.com/?page_id=<strong>N</strong>, where N = page id<br />
Category: http://sitename.com/?cat=<strong>N</strong> , where N =  category id<br />
Tag: http://sitename.com/?tag=<strong>TAG SLUG</strong>, pls check bellow what is slug<br />
Author:http://sitename.com/?author=<strong>N</strong>, where N = author id</code><br />
<!--more--><br />
Now, let&#8217;s change the permalink structure to any custom format&#8230; here I am choosing the <strong>Month and name</strong> format and see screenshot bellow<br />
<a href="http://blog.manchumahara.com/wp-content/uploads/2010/01/2.jpg"><img class="aligncenter size-full wp-image-417" title="wpcustompermalink" src="http://blog.manchumahara.com/wp-content/uploads/2010/01/2.jpg" alt="wpcustompermalink" width="546" height="83" /></a><br />
Oh, check another thing before and after changing permalink structure,if you are in edit more of any post or page, check bellow the subject box<br />
For default permalink: there is a option &#8220;Change permalinks&#8221;<br />
For custom permalink: there is a option &#8220;Edit&#8221;<br />
Check the screenshot bellow:</p>
<p><a href="http://blog.manchumahara.com/wp-content/uploads/2010/01/3.jpg"><img class="aligncenter size-full wp-image-418" title="wpcustompermalink2" src="http://blog.manchumahara.com/wp-content/uploads/2010/01/3.jpg" alt="wpcustompermalink2" width="570" height="210" /></a></p>
<p>Please check here what we are editing or getting automatic after saving first time(or auto save) the post &#8230; is called <strong>slug</strong> for that article, we use article name alias for joomla same way. if seo enabled in joomla then that alias is used. Ok ,now check after changing permalink to any custom format what happened to all permalinks like posts, page, author, category, tags etc. Let&#8217;s check<br />
Post and Page will get as the screenshot above (example http://localhost/blog/2010/01/playing-with-wordpress-permalinkslug-quick-seo/)<br />
<code><br />
Category: http://localhost/blog/<strong>category</strong>/<em>category slug</em>/<br />
Tag: http://localhost/blog/<strong>tag</strong>/<em>tag slug</em>/<br />
Author: http://localhost/blog/<strong>author</strong>/<em>author username(nick name) is here</em>/<br />
</code><br />
Check here for category,tag, author etc the bold part we are telling base like catgory base, tag base or author base. and the italic part is slug, Sometimes that base is also called slug for simplicity.</p>
<p><strong>Making post link .html</strong><br />
If think you cheked some wordpress site has post link as .html &#8230; more like static and more friend for google .. I mean search engines. No worry, it&#8217;s just easy. Put a .html in the custom permalink format of your post.<br />
Just write this in custom field<br />
<code>/%year%/%monthnum%/%postname%.html</code><br />
and my current blog post url is now<br />
<code>http://localhost/blog/2010/01/playing-with-wordpress-permalinkslug-quick-seo.html</code><br />
<strong>Making the url more short</strong><br />
I think now our url got too long and sometimes that is bad for serach engines. So while we write blog post we can keep the title <strong>long</strong>(not more than 160 may be&#8230; 160 length is good for search engines) but we will edit post or page slug <strong>as short as possible</strong>. That the trick &#8230; taking specially care as  do for your girl friend or your baby.<br />
Oh another way we can make the url short&#8230; let&#8217;s change the permalink again. Let change custom permalink as<br />
<code>/%postname%.html</code><br />
and my post link is more short now<br />
<code>http://localhost/blog/playing-with-wordpress-permalinkslug-quick-seo.html</code><br />
for news site we can use like this<br />
<code><br />
/<strong>newid</strong><em>%post_id%</em>/%postname%.html<br />
now link is like</p>
<p>http://localhost/blog/newid160/playing-with-wordpress-permalinkslug-quick-seo.html</p>
<p></code><br />
So I think we played too much with post permalink and now we know how to change the post permalink as we need. Isn&#8217;t it easy ?</p>
<p><strong>Chaning page link to .html</strong><br />
There is no easy way to change page link .html like post from wordpress but we can do it via a  plugin, acutally wordpress has that support to change permalink for page or others &#8230; so plugin authors can hack easily. To change page link like .html you can use this plugin<a rel="nofollow external" href="http://wordpress.grandslambert.com/plugins/custom-page-extensions.html" target="_blank">Custom Page Extensions</a></p>
<p><strong>Working with Category,Tag and Author base</strong><br />
Let&#8217;s play with category and tag base that is available in wp permalink.</p>
<p><a href="http://blog.manchumahara.com/wp-content/uploads/2010/01/5.jpg"><img class="aligncenter size-full wp-image-419" title="categorytagbase" src="http://blog.manchumahara.com/wp-content/uploads/2010/01/5.jpg" alt="categorytagbase" width="558" height="82" /></a><br />
<code>So now tag link be like<br />
http://localhost/blog/<strong>postbytag</strong>/<em>tag slug</em><br />
Category  link<br />
http://localhost/blog/<strong>topics</strong>/category slug<br />
</code><br />
Hei we are not finished yet. How about removing category base from category permalink ?<br />
let me explain if you don&#8217;t change category base that means default is &#8220;category&#8221; then<br />
<code>http://sitename.com/category/category slug<br />
and for child cateogory<br />
http://sitename.com/category/parent category slug/child category slug</code><br />
and now what I want to do is like bellow<br />
<code><br />
http://sitename.com/category slug<br />
http://sitename.com/child category slug<br />
</code></p>
<p>Yes we can do that I mean remove category base using plugin. I like to use <a rel="external nofollow" href="http://wordpress.org/extend/plugins/no-category-parents/" target="_blank">No category parents</a>. I have tested in a client&#8217;s site and it&#8217;s working fine.</p>
<p>Yap we can change author slig(base actually) too ,,, not remove, just change default author base &#8220;author&#8221; to any custom word like &#8220;blogger&#8221;, &#8220;contributors&#8221; etc.<br />
<code><br />
Old: http://www.sitename.com/<strong>author</strong>/manchupagla/<br />
New: http://www.sitename.com/<strong>contributors</strong>/manchupagla/<br />
</code></p>
<p>For this so many wordpress plugins are available. But I like to use <a rel="external nofollow" href="http://www.microkid.net/wordpress/author-slug/" target="_blank">Author Slug</a>, in codex check <a rel="external nofollow" href="http://wordpress.org/extend/plugins/author-slug/" target="_blank">here</a>. You can search codex for <a rel="external nofollow" href="http://wordpress.org/extend/plugins/search.php?q=Author+slug" target="_blank">such plugins</a>.</p>
<p>Heh heh talked too much today. I will recommend you to use another two plugins</p>
<ul>
<li>One for quick SEO <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">ALL in one SEO</a></li>
<li>For faster loading/caching <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">WP Super Cache</a></li>
</ul>
<p>Note: Check this post in bengali in amaderprojukti forum from <a href="http://forum.amaderprojukti.com/viewtopic.php?f=60&amp;t=4999&amp;p=42461#p42461" target="_blank">here</a>.</p>
<p>thank you for having patience to read this blog. Don&#8217;t forget to click share in social network and I like donation(check right col donation box <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-414'></div><iframe class="DD_FBLIKE_AJAX_414" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2010/01/17/playing-with-worpdress-permalink/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix wordpress plugin &#8220;GT post approval&#8221;</title>
		<link>http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/</link>
		<comments>http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 07:53:08 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpres plugin]]></category>
		<category><![CDATA[wp custom column]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_413()',5000);window.setTimeout('loadDzone_413()',5000);window.setTimeout('loadTwitter_413()',5000);window.setTimeout('loadFBShare_413()',5000);window.setTimeout('loadFBLike_413()',5000);window.setTimeout('loadDelicious_413()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_413()',5000); }); function loadDigg_413(){ jQuery(document).ready(function($) { $('.dd-digg-413').remove();$('.DD_DIGG_AJAX_413').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&#38;title=Fix+wordpress+plugin+%22GT+post+approval%22');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_413(){ jQuery(document).ready(function($) { $('.dd-dzone-413').remove();$('.DD_DZONE_AJAX_413').attr('width','52');$('.DD_DZONE_AJAX_413').attr('height','68');$('.DD_DZONE_AJAX_413').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&#038;title=Fix+wordpress+plugin+%22GT+post+approval%22&#038;t=1'); }); } function loadTwitter_413(){ jQuery(document).ready(function($) { $('.dd-twitter-413').remove();$('.DD_TWITTER_AJAX_413').attr('width','50');$('.DD_TWITTER_AJAX_413').attr('height','61');$('.DD_TWITTER_AJAX_413').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_413(){ jQuery(document).ready(function($) { $('.dd-fbshare-413').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_413(){ jQuery(document).ready(function($) { $('.dd-fblike-413').remove();$('.DD_FBLIKE_AJAX_413').attr('width','450');$('.DD_FBLIKE_AJAX_413').attr('height','25');$('.DD_FBLIKE_AJAX_413').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&#38;show_faces=false'); }); } function loadDelicious_413(){ jQuery(document).ready(function($) { $('.dd-delicious-413').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_413()',5000);window.setTimeout('loadDzone_413()',5000);window.setTimeout('loadTwitter_413()',5000);window.setTimeout('loadFBShare_413()',5000);window.setTimeout('loadFBLike_413()',5000);window.setTimeout('loadDelicious_413()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_413()',5000); });</script><script type="text/javascript"> function loadDigg_413(){ jQuery(document).ready(function($) { $('.dd-digg-413').remove();$('.DD_DIGG_AJAX_413').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&amp;title=Fix+wordpress+plugin+%22GT+post+approval%22');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_413(){ jQuery(document).ready(function($) { $('.dd-dzone-413').remove();$('.DD_DZONE_AJAX_413').attr('width','52');$('.DD_DZONE_AJAX_413').attr('height','68');$('.DD_DZONE_AJAX_413').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&title=Fix+wordpress+plugin+%22GT+post+approval%22&t=1'); }); } function loadTwitter_413(){ jQuery(document).ready(function($) { $('.dd-twitter-413').remove();$('.DD_TWITTER_AJAX_413').attr('width','50');$('.DD_TWITTER_AJAX_413').attr('height','61');$('.DD_TWITTER_AJAX_413').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_413(){ jQuery(document).ready(function($) { $('.dd-fbshare-413').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_413(){ jQuery(document).ready(function($) { $('.dd-fblike-413').remove();$('.DD_FBLIKE_AJAX_413').attr('width','450');$('.DD_FBLIKE_AJAX_413').attr('height','25');$('.DD_FBLIKE_AJAX_413').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&amp;show_faces=false'); }); } function loadDelicious_413(){ jQuery(document).ready(function($) { $('.dd-delicious-413').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_413').text(msg);}); }); } function loadGBuzz_413(){ jQuery(document).ready(function($) { $('.dd-gbuzz-413').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-413'></div><a class='DiggThisButton DD_DIGG_AJAX_413 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-413'></div><iframe class='DD_DZONE_AJAX_413' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-413'></div><iframe class='DD_TWITTER_AJAX_413' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-413'></div><a class='DD_FBSHARE_AJAX_413' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-413'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/')+'&amp;title='+encodeURIComponent('Fix+wordpress+plugin+%22GT+post+approval%22'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_413'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-413'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comments><span class='ctotal'>1</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/#comments></a></div></div></div></div><div style='clear:both'></div><p>Hello! 2010 is just knocking at door <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .Hope to write lots of blog with my day2day thinking, learning and the problems I face every day.</p>
<p>Let me clear about this blog post: I think, you know that in wordpress we can add new coasdl in posts listing area. Check the bellow image of my post edit panel/listing(http://(yoursitename)/wp-admin/edit.php)<br />
<span id="more-413"></span><br />
<img class="aligncenter size-full wp-image-411" title="editpanel1" src="http://blog.manchumahara.com/wp-content/uploads/2009/12/editpanel1.png" alt="" width="395" height="247" /></p>
<p>If you check the plugin there is an extra col named GT Status. It&#8217;s here because I have installed the plugin <a rel="external nofollow" href="http://www.gt-globalwarming-awareness2007.org/wordpress/gt-post-approval-for-gt-globalwarming-awareness2007-wordpress-plugin/" target="_blank">GT-post-approval</a>. Check this in wordpress plugin repository from <a rel="external nofollow" href="http://wordpress.org/extend/plugins/gt-post-approval/" target="_blank">here</a>. Cool na ?  Let me show another screenshot after enabling another nice plugin named &#8220;<a rel="external nofollow" href="http://sivel.net/wordpress/simply-show-ids/" target="_blank">Simply Show IDs&#8221;</a>. Check that plugin wordpress plugin repository from <a rel="external nofollow" href="http://wordpress.org/extend/plugins/simply-show-ids/" target="_blank">here</a>. This plugin will add another extra col to show any post id so that we(at least normal blog user who doesn&#8217;t know how to pick post id) can  pick post id easily. Actually this plugin does</p>
<blockquote><p>&#8220;Simply shows the ID of Posts, Pages, Media, Links, Categories, Tags and Users in the admin tables for easy access. Very lightweight.&#8221;</p></blockquote>
<p><img class="aligncenter size-full wp-image-412" title="editpanel2" src="http://blog.manchumahara.com/wp-content/uploads/2009/12/editpanel2.png" alt="" width="481" height="219" />Check there are two extra col now.. ignore the blug arrow and messed up id with text &#8220;Reject&#8221;. Let me now explain why this messed up&#8230;<br />
<!--more--></p>
<h4>Conflict between &#8220;GT-post-approval&#8221; and &#8220;Simply show ids&#8221;</h4>
<p>Actually it&#8217;s not conflict but bug og gt-post-approval plugin(<em>latest Version: 0.3 b0.3</em>). let me show how it&#8217;s hooking the post edit extra col. check near line 113.</p>
<pre class="brush: php;">
// If current user is admin or editor
		if(current_user_can('edit_others_posts')){
			// Add the GT Status column
			add_filter('manage_posts_columns', 'gt_column');
			// Set the global array with the structure post_ID =&gt; gt_status, ...
			add_filter('the_posts', 'gt_post2status');
			// For each post in edit.php add a button approve/reject
			add_filter('manage_posts_custom_column', 'gt_return_status');
			// Add a CSS to emphasize the button approve
			add_filter('admin_head', 'gt_emphasize_to_aprove');
</pre>
<p>here I will highlight this filter function</p>
<pre class="brush: plain;">
// For each post in edit.php add a button approve/reject
add_filter('manage_posts_custom_column', 'gt_return_status');
</pre>
<p>Before I advance please in wordpress codex about <a rel="external nofollow" href="http://codex.wordpress.org/Function_Reference/add_filter" target="_blank">add_filter</a> and manage_posts_custom_column(no complete codex page yet but see <a rel="external nofollow" href="http://codex.wordpress.org/Plugin_API/Filter_Reference" target="_blank">this page</a> for all filter/hook functions)<br />
add_filter usage is like</p>
<pre class="brush: php;">
&lt;?php add_filter( $tag, $function_to_add, $priority, $accepted_args ); ?&gt;
</pre>
<p>check the last param $accepted_args. it&#8217;s definition is<br />
<em>(integer) (optional) The number of arguments the function(s) accept(s). In WordPress 1.5.1 and newer. hooked functions can take extra arguments that are set when the matching do_action() or apply_filters() call is run.<br />
Default: 1</em></p>
<p>So using this filter add_filter(&#8216;manage_posts_custom_column&#8217;, &#8216;gt_return_status&#8217;);   gt approve passed only one argument. But the hook manage_posts_custom_column action  takes two parameter , column name and post id. here is gt approve plugin&#8217;s gt-return_status function</p>
<pre class="brush: plain;">
// Print a button approve/reject for the current post
function gt_return_status(){
	global $id, $post_gt_aproved;
	// If current post is approved (see gt_post2status() function)
	if($post_gt_aproved[$id])
		echo &quot;&lt;a href='edit.php?gt_reject=$id&amp;amp;$_SERVER[QUERY_STRING]' class='edit'&gt;&quot;.__('Reject').'&lt;/a&gt;';
		// Note: I use also the query string for an easy redirect in the gt_redirect_after_change() function
	else
		echo &quot;&lt;a href='edit.php?gt_approve=$id&amp;amp;$_SERVER[QUERY_STRING]' class='edit gtaprove'&gt;&quot;.__('Approve').'&lt;/a&gt;';
}
</pre>
<p>that means it&#8217;s doesn&#8217;t handle with column name and this function is called each time an unknown column is triggered and messed up with other plugin which works with extra column &#8230;. grrr. The funny thing is that plugin I mean the function gt_return_status() handle the post id in tricky way&#8230;. Please don&#8217;t get me wrong.. that plugin works great and prefectly but I am just trying to improve it.</p>
<p>This is how i modified that plugin<br />
changing hook so that it takes two parameter and also priority is set</p>
<pre class="brush: php;">
// For each post in edit.php add a button approve/reject
add_filter('manage_posts_custom_column', 'gt_return_status',10, 2);
function gt_return_status($cname,$id){
	global $post_gt_aproved;
	if ($cname == 'gt_column'){
		// If current post is approved (see gt_post2status() function)
		if($post_gt_aproved[$id]){
			echo '&lt;a href=&quot;edit.php?gt_reject='.$id.'&amp;amp;'.$_SERVER['QUERY_STRING'].'&quot; class=&quot;edit&quot;&gt;'.__('Reject').'&lt;/a&gt;';
			// Note: I use also the query string for an easy redirect in the gt_redirect_after_change() function
		}
		else{
			echo '&lt;a href=&quot;edit.php?gt_approve='.$id.'&amp;amp;'.$_SERVER['QUERY_STRING'].'&quot; class=&quot;edit gtaprove&quot;&gt;'.__('Approve').'&lt;/a&gt;';
		}
	}
}
</pre>
<p>Here is my total modification about this plugin.</p>
<pre class="brush: plain;">
&lt;?php
/*
Plugin Name: GT Post Approval 0.3 Beta
Plugin URI: http://www.gt-globalwarming-awareness2007.org/wordpress/gt-post-approval-for-gt-globalwarming-awareness2007-wordpress-plugin/
Description: Add Approve/Reject buttoms visible just for administrators and editors in &lt;a href='edit.php'&gt;edit &gt; posts&lt;/a&gt;. Go to &lt;a href='options-general.php?page=gt-post-approval.php'&gt;Options &gt; Approval&lt;/a&gt; to choose where display not approved posts
Version: 0.3 b0.3
Author: Francesco Terenzani
Author URI: http://www.terenzani.it/
*/
//
// Self extension
//
if(function_exists('is_tag'))
	add_filter('gt_areas', 'gt_self_extension');
function gt_self_extension($array){
	$array['is_tag'] = 'Tags archive';
	return $array;
}
//
// Installation
//
// On activation of the plugin launch the install_gt_post_approval function below
register_activation_hook(__FILE__, 'install_gt_post_approval');
// Change the wp_posts table
function install_gt_post_approval(){
	global $wpdb;
	// If gt_status column do not exist
	if($wpdb-&gt;get_var(&quot;SHOW COLUMNS FROM $wpdb-&gt;posts LIKE 'gt_status'&quot;) != 'gt_status'){
		// Step 1, add gt_status column and set every post as approved (value 1)
		$wpdb-&gt;query(&quot;ALTER TABLE $wpdb-&gt;posts ADD gt_status INT( 1 ) NOT NULL DEFAULT '1'&quot;);
		// Step 2, change the default value of gt_status. New posts have to be approved
		$wpdb-&gt;query(&quot;ALTER TABLE $wpdb-&gt;posts CHANGE gt_status gt_status INT( 1 ) NOT NULL DEFAULT '0'&quot;);
	}
	// Unhelpful optiomisation <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
	add_option('gt_opt', 'empty', '', 'no');
	// Set default options
	$_POST['gt-form'] = true;
	$_POST['is_'] = array('is_author' =&gt; true, 'is_search' =&gt; true, 'is_single' =&gt; true);
	$_POST['gt-level'] = 10;
	gt_save_options();
}
//
// The_Loop
//
// Change the where clause from the wp_query class using the show_only_gt_approved function below
add_filter('posts_where', 'show_only_gt_approved');
// Show only GT Approved posts
// Disable the filter in admin area, in single page and in user defined areas
function show_only_gt_approved($where){
	if(is_admin() || is_page() || is_custom_defined() )
		return $where;
	return 'AND gt_status = 1 '.$where;
}
// Return true if we are in a user defined page of wordpress
// I feel this function very cool <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />
function is_custom_defined(){
	$callback = get_option('gt_opt_callback');
	if(is_array($callback)){
		do
			if(call_user_func(current($callback)))
				return true;
		while(next($callback));
	}
	return false;
}
//
// Optimisation
//
// Set the global array $post_gt_aproved with the structure: [post_ID] =&gt; gt_status
// I use it to know the gt_status without any other query
function gt_post2status($post_query_results){
	global $post_gt_aproved;
	$post_gt_aproved = array();
	for($i = 0, $j = count($post_query_results); $i &lt; $j; $i++)
		$post_gt_aproved[$post_query_results[$i]-&gt;ID] = $post_query_results[$i]-&gt;gt_status;
	return $post_query_results;
}
//
// Administration
//
// Change the admin area wp-admin/edit.php if current user is admin or editor
if(is_admin()){
	add_filter('init', 'gt_admin_status');
	function gt_admin_status(){
		global $wpdb;
		// If current user is admin or editor
		if(current_user_can('edit_others_posts')){
			// Add the GT Status column
			add_filter('manage_posts_columns', 'gt_column');
			// Set the global array with the structure post_ID =&gt; gt_status, ...
			add_filter('the_posts', 'gt_post2status');
			// For each post in edit.php add a button approve/reject
			add_filter('manage_posts_custom_column', 'gt_return_status',10, 2);
			// Add a CSS to emphasize the button approve
			add_filter('admin_head', 'gt_emphasize_to_aprove');
			// On click of approve/reject change the status in the database (value 1 -&gt; approved/0 -&gt; rejected)
			if(isset($_GET['gt_reject']) &amp;&amp; is_numeric($_GET['gt_reject'])){
				$wpdb-&gt;query(&quot;UPDATE $wpdb-&gt;posts SET gt_status = 0 WHERE ID = $_GET[gt_reject]&quot;);
				gt_redirect_after_change();
			}
			elseif(isset($_GET['gt_approve']) &amp;&amp; is_numeric($_GET['gt_approve'])){
				$wpdb-&gt;query(&quot;UPDATE $wpdb-&gt;posts SET gt_status = 1 WHERE ID = $_GET[gt_approve]&quot;);
				gt_redirect_after_change();
			}
		}
		// Auto approve a post if current user level is greater then X
		add_filter('wp_insert_post', 'gt_auto_approve');
	}
}
// Add the GT Status column
function gt_column($array){
	$array['gt_column'] = _('Post Status');
	return $array;
}
// Action function arguments: column name, post ID.
// Print a button approve/reject for the current post
function gt_return_status($cname,$id){
	global $post_gt_aproved;
	if ($cname == 'gt_column'){
		// If current post is approved (see gt_post2status() function)
		if($post_gt_aproved[$id]){
			echo '&lt;a href=&quot;edit.php?gt_reject='.$id.'&amp;amp;'.$_SERVER['QUERY_STRING'].'&quot; class=&quot;edit&quot;&gt;'.__('Reject').'&lt;/a&gt;';
			// Note: I use also the query string for an easy redirect in the gt_redirect_after_change() function
		}
		else{
			echo '&lt;a href=&quot;edit.php?gt_approve='.$id.'&amp;amp;'.$_SERVER['QUERY_STRING'].'&quot; class=&quot;edit gtaprove&quot;&gt;'.__('Approve').'&lt;/a&gt;';
		}
	}
}
// Redirect after change GT Status
function gt_redirect_after_change(){
	header('Location: '.preg_replace(&quot;/gt_(?:reject|approve)=[0-9]+[&amp;]?/&quot;, '', $_SERVER['REQUEST_URI']));
	exit();
}
// CSS for admin area
function gt_emphasize_to_aprove(){
?&gt;
	&lt;style type='text/css'&gt;.gtaprove{background:#adf;font-weight:bold}&lt;/style&gt;
&lt;?php
}
// Auto approve a post if current user level is greater then X
function gt_auto_approve($post_id){
	global $wpdb;
	if($_POST['post_status'] == 'publish' &amp;&amp; $_POST['prev_status'] != $_POST['post_status']){
		$level = get_option('gt_opt');
		$level = $level['gt-level'];
		if($level &gt; 0)
			if(current_user_can(&quot;level_$level&quot;))
				$wpdb-&gt;query(&quot;UPDATE $wpdb-&gt;posts SET gt_status = 1 WHERE ID = $post_id&quot;);
	}
}
//
// Options
//
function gt_add_options_page(){
	add_options_page('GT Post Approval', 'Approval', 10, 'gt-post-approval.php', 'gt_options_page');
}
add_filter('admin_menu','gt_add_options_page');
function gt_options_page(){
	// On submit save options
	gt_save_options();
	$options = get_option('gt_opt');
	// Options checked are here
	$checked =&amp; $options['is_'];
	$registered_inputs = gt_get_registered_options();
?&gt;
	&lt;div class=&quot;wrap&quot;&gt;
		&lt;h2&gt;GT Post Approval&lt;/h2&gt;
		&lt;form method='post' action='?&lt;?php echo $_SERVER['QUERY_STRING']?&gt;'&gt;
		&lt;fieldset class=&quot;options&quot;&gt;
			&lt;legend&gt;Not approved posts are visible just in: &lt;/legend&gt;
			&lt;?php foreach($registered_inputs as $input_name =&gt; $description){
				$checked[$input_name] = ($checked[$input_name]) ? 'checked=&quot;checked&quot;' : null;
				echo &lt;&lt;&lt;CODE
					&lt;p&gt;
						&lt;label for=&quot;is_[$input_name]&quot;&gt;
							&lt;input type='checkbox' id=&quot;is_[$input_name]&quot; name=&quot;is_[$input_name]&quot; $checked[$input_name] /&gt; $description
						&lt;/label&gt;
					&lt;/p&gt;
CODE;
			} ?&gt;
		&lt;/fieldset&gt;
		&lt;fieldset class=&quot;options&quot;&gt;
			&lt;legend&gt;Auto approve posts if current user level is: &lt;/legend&gt;
			&lt;p&gt;&lt;label for='gt-level'&gt;Range 0-10:
				&lt;input type=&quot;text&quot; size='2' id='gt-level' name='gt-level' value='&lt;?php echo $options['gt-level'] ?&gt;' /&gt;&lt;/label&gt;
				&lt;br /&gt;&lt;em&gt;0 or empty value to reject every post by default.&lt;/em&gt;&lt;/p&gt;
			&lt;p class='submit'&gt;
				&lt;input type='submit' name='gt-form' value='Update Options &amp;raquo;' /&gt;
				&lt;input type='hidden' name='gt-form' value='1' /&gt;
			&lt;/p&gt;
		&lt;/fieldset&gt;
		&lt;/form&gt;
	&lt;/div&gt;
&lt;?php
}
function gt_save_options(){
	if(isset($_POST['gt-form'])){
		$registered_callbacks = gt_get_registered_options();
		if(is_array($_POST['is_']))
			foreach($_POST['is_'] as $is_what =&gt; $on)
				if($on &amp;&amp; $registered_callbacks[$is_what])
					// I will run this functions in is_custom_defined()
					$callback[] = $is_what;
		update_option( 'gt_opt_callback', $callback );
		update_option( 'gt_opt', array( 'is_' =&gt; $_POST['is_'], 'gt-level' =&gt; gt_get_option_level() ) );
	}
}
function gt_get_registered_options(){
	return apply_filters('gt_areas', array ('is_author' =&gt; 'Author\'s archive', 'is_search' =&gt; 'Search results', 'is_feed' =&gt; 'Feeds', 'is_date' =&gt; 'Post per data archive', 'is_single' =&gt; 'Single post page'));
}
function gt_get_option_level(){
	if( is_numeric( $_POST['gt-level']) ){
		if ( $_POST['gt-level'] &gt; 10 )
			return 10;
		if ( $_POST['gt-level'] &lt; 0 )
			return 0;
		return $_POST['gt-level'];
	}
	return 0;
}
?&gt;
</pre>
<p>Here you will get a great discussion about managing custom column in post edit screen. <a rel="external nofollow" href="http://scompt.com/blog/archives/2007/10/20/adding-custom-columns-to-the-wordpress-manage-posts-screen" target="_blank">have a look please</a>.</p>
<p>Good news I am coming with my own plugin about this concept of custom column in diff edit screen like posts, pages, tags etc. I think my plugin will increase usability in those places.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-413'></div><iframe class="DD_FBLIKE_AJAX_413" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2009/12/29/fix-wordpress-plugin-gt-post-approval/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix wp plugin &#8220;Post and Page Excerpt Widgets&#8221;</title>
		<link>http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/</link>
		<comments>http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 07:53:52 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>
		<category><![CDATA[query_posts]]></category>
		<category><![CDATA[widget]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_405()',5000);window.setTimeout('loadDzone_405()',5000);window.setTimeout('loadTwitter_405()',5000);window.setTimeout('loadFBShare_405()',5000);window.setTimeout('loadFBLike_405()',5000);window.setTimeout('loadDelicious_405()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_405()',5000); }); function loadDigg_405(){ jQuery(document).ready(function($) { $('.dd-digg-405').remove();$('.DD_DIGG_AJAX_405').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&#38;title=Fix+wp+plugin+%22Post+and+Page+Excerpt+Widgets%22+not+to+break+conditional+tag');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_405(){ jQuery(document).ready(function($) { $('.dd-dzone-405').remove();$('.DD_DZONE_AJAX_405').attr('width','52');$('.DD_DZONE_AJAX_405').attr('height','68');$('.DD_DZONE_AJAX_405').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&#038;title=Fix+wp+plugin+%22Post+and+Page+Excerpt+Widgets%22+not+to+break+conditional+tag&#038;t=1'); }); } function loadTwitter_405(){ jQuery(document).ready(function($) { $('.dd-twitter-405').remove();$('.DD_TWITTER_AJAX_405').attr('width','50');$('.DD_TWITTER_AJAX_405').attr('height','61');$('.DD_TWITTER_AJAX_405').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_405(){ jQuery(document).ready(function($) { $('.dd-fbshare-405').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_405(){ jQuery(document).ready(function($) { $('.dd-fblike-405').remove();$('.DD_FBLIKE_AJAX_405').attr('width','450');$('.DD_FBLIKE_AJAX_405').attr('height','25');$('.DD_FBLIKE_AJAX_405').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&#38;show_faces=false'); }); } function loadDelicious_405(){ jQuery(document).ready(function($) { $('.dd-delicious-405').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_405()',5000);window.setTimeout('loadDzone_405()',5000);window.setTimeout('loadTwitter_405()',5000);window.setTimeout('loadFBShare_405()',5000);window.setTimeout('loadFBLike_405()',5000);window.setTimeout('loadDelicious_405()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_405()',5000); });</script><script type="text/javascript"> function loadDigg_405(){ jQuery(document).ready(function($) { $('.dd-digg-405').remove();$('.DD_DIGG_AJAX_405').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&amp;title=Fix+wp+plugin+%22Post+and+Page+Excerpt+Widgets%22+not+to+break+conditional+tag');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_405(){ jQuery(document).ready(function($) { $('.dd-dzone-405').remove();$('.DD_DZONE_AJAX_405').attr('width','52');$('.DD_DZONE_AJAX_405').attr('height','68');$('.DD_DZONE_AJAX_405').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&title=Fix+wp+plugin+%22Post+and+Page+Excerpt+Widgets%22+not+to+break+conditional+tag&t=1'); }); } function loadTwitter_405(){ jQuery(document).ready(function($) { $('.dd-twitter-405').remove();$('.DD_TWITTER_AJAX_405').attr('width','50');$('.DD_TWITTER_AJAX_405').attr('height','61');$('.DD_TWITTER_AJAX_405').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_405(){ jQuery(document).ready(function($) { $('.dd-fbshare-405').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_405(){ jQuery(document).ready(function($) { $('.dd-fblike-405').remove();$('.DD_FBLIKE_AJAX_405').attr('width','450');$('.DD_FBLIKE_AJAX_405').attr('height','25');$('.DD_FBLIKE_AJAX_405').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&amp;show_faces=false'); }); } function loadDelicious_405(){ jQuery(document).ready(function($) { $('.dd-delicious-405').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_405').text(msg);}); }); } function loadGBuzz_405(){ jQuery(document).ready(function($) { $('.dd-gbuzz-405').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-405'></div><a class='DiggThisButton DD_DIGG_AJAX_405 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-405'></div><iframe class='DD_DZONE_AJAX_405' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-405'></div><iframe class='DD_TWITTER_AJAX_405' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-405'></div><a class='DD_FBSHARE_AJAX_405' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-405'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/')+'&amp;title='+encodeURIComponent('Fix+wp+plugin+%22Post+and+Page+Excerpt+Widgets%22+not+to+break+conditional+tag'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_405'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-405'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/#respond><span class='ctotal'>0</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/#respond></a></div></div></div></div><div style='clear:both'></div><p><a rel="external nofollow" href="http://sillybean.net/code/wordpress/post-and-page-excerpt-widgets/" target="_blank">Post and Page Excerpt Widgets</a> is a nice plugin to show post/page excerpt as as widget in sidebar position. You can download it from wp code from <a rel="external nofollow" href="http://wordpress.org/extend/plugins/post-and-page-excerpt-widgets/" target="_blank">here</a>. One I thing I noticed about this plugin is it has a common bug that I faced many times while using <a rel="external nofollow" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank">query_posts</a>. When I use this query_posts it&#8217;s break some conditional loop like is_home(), is_category() etc but there is another function <a rel="external nofollow" href="http://codex.wordpress.org/Template_Tags/get_posts" target="_blank">get_posts</a> in wordpress that does the same thing but don&#8217;t have similar problem. Once I discussed about this problem in one of my old posts. Please check that posts for better sense from here <a rel="internal follow" href="http://blog.manchumahara.com/2009/03/15/is_home-is_single-is_category-is-not-working-in-wp/" target="_blank">is_home-is_single-is_category-is-not-working-in-wp!</a>.</p>
<p>Let me focus to this writing again <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
As Post and Page Excerpt Widgets is using the query_posts function for custom query it make&#8217;s problem for conditional tags. Let me show u solution and it&#8217;s like my that posts.<br />
In you theme functions.php add a new function if not exists yet</p>
<p><span id="more-405"></span></p>
<pre class="brush: php;">
 function php4_clone($object) {
  	if (version_compare(phpversion(), '5.0') &lt; 0) {
   		return $object;
  	} else {
   		return @clone($object);
  	}
 }
</pre>
<p><!--more--></p>
<p>Now open the plugin file page-and-post-excerpt-widgets.php  and search for string &#8220;query_posts&#8221;. I think you should find matching in two places. Let&#8217;s take care of them now.<br />
before that line 		query_posts(&#8216;page_id=&#8217;.$page_ID);<br />
add this line</p>
<pre class="brush: php;">
$query_backup = php4_clone($GLOBALS['wp_query']);
</pre>
<p>and after the while look that means<br />
after this line endwhile;  add</p>
<pre class="brush: php;">
$GLOBALS['wp_query'] = $query_backup;
</pre>
<p>Do same thing for both matching. That will save u for not breaking any conditional tags like is_home() etc in your theme. I think wordpress should include such seucurity in core query_posts function so that it does not break the default wordpress&#8217;s <a rel="external nofollow" href="http://codex.wordpress.org/The_Loop" target="_blank"><strong>The Loop</strong></a>.</p>
<p>Sometimes I can not find that why <a rel="external nofollow" href="http://codex.wordpress.org/Conditional_Tags" target="_blank">wordpress conditional tag</a> is not working in my theme and that makes me really crazy !</p>
<p>Guys if you find this post help full then please take care the large social bookmark icon bellow <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-405'></div><iframe class="DD_FBLIKE_AJAX_405" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2009/12/25/fix-wp-plugin-post-and-page-excerpt-widgets-not-to-break-conditional-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send ajax request in wordpress using wpnonce</title>
		<link>http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/</link>
		<comments>http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 22:14:43 +0000</pubDate>
		<dc:creator>Manchumahara(Sabuj Kundu)</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpnonce]]></category>
		<guid isPermaLink="false">http://blog.manchumahara.com/?p=394</guid>
		<description><![CDATA[jQuery(document).ready(function($) { window.setTimeout('loadDigg_394()',5000);window.setTimeout('loadDzone_394()',5000);window.setTimeout('loadTwitter_394()',5000);window.setTimeout('loadFBShare_394()',5000);window.setTimeout('loadFBLike_394()',5000);window.setTimeout('loadDelicious_394()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_394()',5000); }); function loadDigg_394(){ jQuery(document).ready(function($) { $('.dd-digg-394').remove();$('.DD_DIGG_AJAX_394').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&#38;title=Send+ajax+request+in+wordpress+using+wpnonce');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_394(){ jQuery(document).ready(function($) { $('.dd-dzone-394').remove();$('.DD_DZONE_AJAX_394').attr('width','52');$('.DD_DZONE_AJAX_394').attr('height','68');$('.DD_DZONE_AJAX_394').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&#038;title=Send+ajax+request+in+wordpress+using+wpnonce&#038;t=1'); }); } function loadTwitter_394(){ jQuery(document).ready(function($) { $('.dd-twitter-394').remove();$('.DD_TWITTER_AJAX_394').attr('width','50');$('.DD_TWITTER_AJAX_394').attr('height','61');$('.DD_TWITTER_AJAX_394').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&#038;source=manchumahara&#038;style=normal&#038;service=bit.ly&#038;service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_394(){ jQuery(document).ready(function($) { $('.dd-fbshare-394').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_394(){ jQuery(document).ready(function($) { $('.dd-fblike-394').remove();$('.DD_FBLIKE_AJAX_394').attr('width','450');$('.DD_FBLIKE_AJAX_394').attr('height','25');$('.DD_FBLIKE_AJAX_394').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&#38;show_faces=false'); }); } function loadDelicious_394(){ jQuery(document).ready(function($) { $('.dd-delicious-394').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&#38;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript">jQuery(document).ready(function($) { window.setTimeout('loadDigg_394()',5000);window.setTimeout('loadDzone_394()',5000);window.setTimeout('loadTwitter_394()',5000);window.setTimeout('loadFBShare_394()',5000);window.setTimeout('loadFBLike_394()',5000);window.setTimeout('loadDelicious_394()',5000);$('.delicious-normal-img,.delicious-compact-img').hide();window.setTimeout('loadGBuzz_394()',5000); });</script><script type="text/javascript"> function loadDigg_394(){ jQuery(document).ready(function($) { $('.dd-digg-394').remove();$('.DD_DIGG_AJAX_394').attr('href','http://digg.com/submit?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&amp;title=Send+ajax+request+in+wordpress+using+wpnonce');$.getScript('http://widgets.digg.com/buttons.js'); }); } function loadDzone_394(){ jQuery(document).ready(function($) { $('.dd-dzone-394').remove();$('.DD_DZONE_AJAX_394').attr('width','52');$('.DD_DZONE_AJAX_394').attr('height','68');$('.DD_DZONE_AJAX_394').attr('src','http://widgets.dzone.com/links/widgets/zoneit.html?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&title=Send+ajax+request+in+wordpress+using+wpnonce&t=1'); }); } function loadTwitter_394(){ jQuery(document).ready(function($) { $('.dd-twitter-394').remove();$('.DD_TWITTER_AJAX_394').attr('width','50');$('.DD_TWITTER_AJAX_394').attr('height','61');$('.DD_TWITTER_AJAX_394').attr('src','http://api.tweetmeme.com/button.js?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&source=manchumahara&style=normal&service=bit.ly&service_api=R_190f1ddf89c3ac3860d6f995977d37ef'); }); } function loadFBShare_394(){ jQuery(document).ready(function($) { $('.dd-fbshare-394').remove(); $.getScript('http://static.ak.fbcdn.net/connect.php/js/FB.Share'); }); } function loadFBLike_394(){ jQuery(document).ready(function($) { $('.dd-fblike-394').remove();$('.DD_FBLIKE_AJAX_394').attr('width','450');$('.DD_FBLIKE_AJAX_394').attr('height','25');$('.DD_FBLIKE_AJAX_394').attr('src','http://www.facebook.com/plugins/like.php?href=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&amp;show_faces=false'); }); } function loadDelicious_394(){ jQuery(document).ready(function($) { $('.dd-delicious-394').remove();$('.delicious-normal-img,.delicious-compact-img').show();$.getJSON('http://feeds.delicious.com/v2/json/urlinfo/data?url=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/&amp;callback=?',function(data) {var msg ='';var count = 0;if (data.length > 0) {count = data[0].total_posts;if(count ==0){msg = 'Save';}else if(count ==1){msg = '1 save';}else{msg = count + ' saves'}}else{msg = 'Save';}$('#DD_DELICIOUS_AJAX_394').text(msg);}); }); } function loadGBuzz_394(){ jQuery(document).ready(function($) { $('.dd-gbuzz-394').remove();$.getScript('http://www.google.com/buzz/api/button.js'); }); }</script><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-digg-ajax-load dd-digg-394'></div><a class='DiggThisButton DD_DIGG_AJAX_394 DiggMedium'></a></div><div class='dd_button'><div class="topsy_widget_data"><!--{"url":"http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/","style":"big","theme":"blue","nick":""}--></div></div><div class='dd_button'><div class='dd-dzone-ajax-load dd-dzone-394'></div><iframe class='DD_DZONE_AJAX_394' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-twitter-ajax-load dd-twitter-394'></div><iframe class='DD_TWITTER_AJAX_394' src='#' height='0' width='0' scrolling='no' frameborder='0'></iframe></div><div class='dd_button'><div class='dd-fbshare-ajax-load dd-fbshare-394'></div><a class='DD_FBSHARE_AJAX_394' name='fb_share' type='box_count' share_url='http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/' href='http://www.facebook.com/sharer.php'></a></div><div class='dd_button'><script src='http://www.stumbleupon.com/hostedbadge.php?s=5&amp;r=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/'></script></div><div class='dd_button'><div class='dd-delicious-ajax-load dd-delicious-394'></div><a href='http://delicious.com/save' onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/')+'&amp;title='+encodeURIComponent('Send+ajax+request+in+wordpress+using+wpnonce'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><div class='delicious-normal-img'><img src='http://blog.manchumahara.com/wp-content/plugins/digg-digg/image/delicious.png' alt='Delicious' /><div class='delicious-normal-text' id='DD_DELICIOUS_AJAX_394'></div></div></a></div><div class='dd_button'><div class='dd-gbuzz-ajax-load dd-gbuzz-394'></div><a title='Post on Google Buzz' class='google-buzz-button' href='http://www.google.com/buzz/post' data-button-style='normal-count' data-url='http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/'></a></div><div class='dd_button'><div id='dd_comments'><a class='clcount' href=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/#comments><span class='ctotal'>1</span><br /><span class='cmsg'>Comments</span></a><a class='clink' href=http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/#comments></a></div></div></div></div><div style='clear:both'></div><p><img class="alignleft size-full wp-image-395" title="wpsecuritythumb" src="http://blog.manchumahara.com/wp-content/uploads/2009/11/wpsecuritythumb.jpg" alt="wpsecuritythumb" width="130" height="130" />let&#8217;s send ajax request in wordpress using wpnonce</p>
<p>Hei, I am not going to discuss what is <a rel="external nofollow" href="http://www.google.com/search?q=wpnonce&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" target="_blank">wpnonce</a> and why you should use this in your plugin or how important to use this to secure your plugin <img src='http://blog.manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
But here I am going to discuss how you can use wpnonce in ajax request, I mean if your plugin handles ajax request.<br />
Steps that we need to follow are:</p>
<blockquote><p>One: Create wpnonce value.<br />
Two: Send wpnonce value as an extra parameter with ajax requestion<br />
Three: Check ajax referrer with the wpnonce value that was created in step one and sent in step two.</p></blockquote>
<p>Ok, how to create a wpnonce value ?<br />
we need to use wordpress function wp_create_nonce() . See wordpress codex <a rel="external nofollow" href="http://codex.wordpress.org/Function_Reference/wp_create_nonce" target="_blank">here</a>.<br />
&lt; ?php $my_wpnonce= wp_create_nonce  (&#8216;you-look-nice&#8217;); ?&gt; // &#8220;you-look-nice&#8221; is just a string, u can use whatever u want. here $my_wpnonce  will get a hash from wp_create_nonce. Oh that is not direct hash of &#8220;you-look-nice&#8221; but based on user id, time and that string. To know more about this function please check pluggable.php in wp-includes folder</p>
<p>Now send wpnonce value $my_wpnonce as an extra parameter while seding ajax req.<span id="more-394"></span></p>
<p>Now to process the ajax request in your script at first u need to include the wp-config.php or how u handle this.. no problem. Just use this line after this to check the ajax referrer.</p>
<p>&lt; ?php check_ajax_referer(&#8220;you-look-nice&#8221;);  ?&gt;   /// &#8220;you-look-nice&#8221;   ya same string that u used making wpnoce&#8230;.<br />
If the nonce value is not same then the hacker will be just got fucked!<br />
note: check <a rel="external nofollow" href="http://codex.wordpress.org/Function_Reference/check_ajax_referer" target="_blank">codex here</a> for the function check_ajax_referer.</p>
<p>That&#8217;s it man.</p>
<div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><div class='dd-fblike-ajax-load dd-fblike-394'></div><iframe class="DD_FBLIKE_AJAX_394" src='#' height='0' width='0' scrolling='no' frameborder='0' allowTransparency='true'></iframe></div></div></div><div style='clear:both'></div><!-- Social Buttons Shared Counts Generated by Digg Digg plugin v4.2,
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/ -->
Comment is open. You can participate in the discussion
by visiting <a href='http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/'>here</a>
]]></content:encoded>
			<wfw:commentRss>http://blog.manchumahara.com/2009/11/08/send-ajax-request-in-wordpress-using-wpnonce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
