<?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>SNilesh.com -:-  Nilesh Shiragave</title>
	<atom:link href="http://www.snilesh.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snilesh.com</link>
	<description>PHP,Wordpress,Jquery Expert</description>
	<lastBuildDate>Wed, 10 Mar 2010 04:07:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create Image using PHP</title>
		<link>http://www.snilesh.com/resources/php/create-image-php/</link>
		<comments>http://www.snilesh.com/resources/php/create-image-php/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 10:47:10 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=591</guid>
		<description><![CDATA[PHP have mosts of functions available to create a image on the fly. You can use these functions  to create a captcha image or a add banner on the fly.

&#60;?php
$new_image = imagecreate( 400, 200 );
$apply_background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $new_image, 255, 255, 0 );
$line_colour = imagecolorallocate( $new_image, 128, 255, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fcreate-image-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fcreate-image-php%2F" height="61" width="51" /></a></div><p>PHP have mosts of functions available to create a image on the fly. You can use these functions  to create a captcha image or a add banner on the fly.</p>
<pre class="brush: php;">
&lt;?php
$new_image = imagecreate( 400, 200 );
$apply_background = imagecolorallocate( $my_img, 0, 0, 255 );
$text_colour = imagecolorallocate( $new_image, 255, 255, 0 );
$line_colour = imagecolorallocate( $new_image, 128, 255, 0 );
imagestring( $new_image, 4, 30, 25, &quot;Text Displayed in Captcha&quot;,
  $text_colour );
imagesetthickness ( $new_image, 5 );
imageline( $new_image, 30, 45, 165, 45, $line_colour );

header( &quot;Content-type: image/jpeg&quot; );
imagejpeg( $new_image );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $new_image );?&gt;
</pre>
<h4>Create Image</h4>
<p>Create image using the PHP function createimage(), function will create image with the dimensions of the image, namely its width and height in that order</p>
<h4>Apply Colors</h4>
<p>Next thing is to apply colors using the imagecolorallocate() function.<br />
Colours are allocated using the imagecolorallocate() function. This function will automatically fill the background of the image with the colours you specified, and return an identifier for that particular colour. Subsequent calls to imagecolorallocate() will  create a colour identifier for your colour.<br />
imagecolorallocate() returns FALSE if the function fails for any reason. </p>
<h4>Write Text On Image</h4>
<p>We can write text on images using the function imagestring().<br />
imagestring  ( resource $image  , int $font  , int $x  , int $y  , string $string  , int $color  );<br />
1] $image is image source<br />
2] Font Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding<br />
3] x-coordinate of the upper left corner.<br />
4] y-coordinate of the upper left corner.<br />
5] The string to be written.<br />
6] A color identifier created with imagecolorallocate(). </p>
<h4>Display Image</h4>
<p>Image is created using <a href="http://in2.php.net/manual/en/function.imagejpeg.php" title="imagejpeg()">imagejpeg()</a><br />
In this example i passed header( &#8220;Content-type: image/jpeg&#8221; ) as i want to create a jpg image.<br />
Other functions are<br />
1]<a href="http://in2.php.net/manual/en/function.imagepng.php" title="imagepng">imagepng() </a><br />
2]<a href="http://in2.php.net/manual/en/function.imagegif.php" title="imagegif()">imagegif() </a></p>
<h4>Free Resources</h4>
<p>Free individual resources which are created using the imagecolordeallocate() function and the image resource using the imagedestroy() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/php/create-image-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different single post template per category wordpress</title>
		<link>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/different-single-post-template-per-category-wordpress/</link>
		<comments>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/different-single-post-template-per-category-wordpress/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 08:02:45 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Wordpress Hacks and Tricks]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=586</guid>
		<description><![CDATA[If you want to display single post page using different single post template, then wordpress in_category() function will help to create different single post template.
First thing you have to create different single post template like

single_portfolio.php
single_news.php
single_wordpress.php
single_default.php //For default single post template  for post other than above categories.

Above three files i create because i want to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fdifferent-single-post-template-per-category-wordpress%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fdifferent-single-post-template-per-category-wordpress%2F" height="61" width="51" /></a></div><p>If you want to display single post page using different single post template, then wordpress <a href="http://codex.wordpress.org/Function_Reference/in_category" title="in_category()">in_category()</a> function will help to create different single post template.</p>
<p>First thing you have to create different single post template like</p>
<pre class="brush: php;">
single_portfolio.php
single_news.php
single_wordpress.php
single_default.php //For default single post template  for post other than above categories.
</pre>
<p>Above three files i create because i want to use different single post page template for my portfolio,news and wordpress category respectively.</p>
<p>You can simply create copy of your single.php file and rename it with new template and do the changes that you want for each category.</p>
<p>After that open your single.php file remove all code and add following code</p>
<pre class="brush: php;">
&lt;?php
  $post = $wp_query-&gt;post;
  if (in_category('portfolio')) {
      include(TEMPLATEPATH.'/single_portfolio.php');
  } elseif (in_category('news')) {
      include(TEMPLATEPATH.'/single_news.php');
  } elseif(in_category('wordpress')) {
      include(TEMPLATEPATH.'/single_wordpress.php');
  }
  else{
      include(TEMPLATEPATH.'/single_default.php');
  }
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/different-single-post-template-per-category-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress get all subpages of current page&#8217;s parent page</title>
		<link>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-get-all-subpages-of-current-pages-parent-page/</link>
		<comments>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-get-all-subpages-of-current-pages-parent-page/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 19:06:40 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Wordpress Hacks and Tricks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=583</guid>
		<description><![CDATA[Following code will display all the subpages of same parent page. also displays the subpages of current page if it is not a  subpage.

&#60;?php
// Get Parent of current page....
$parents_id = $wpdb-&#62;get_row(&#34;SELECT post_parent	FROM $wpdb-&#62;posts WHERE id = &#34;.$post-&#62;ID.&#34;	AND post_type = 'page' ORDER BY menu_order&#34;, 'OBJECT');	

if($parents_id-&#62;post_parent &#62;0) // If this page have parent
{
	// Get all the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-get-all-subpages-of-current-pages-parent-page%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-get-all-subpages-of-current-pages-parent-page%2F" height="61" width="51" /></a></div><p>Following code will display all the subpages of same parent page. also displays the subpages of current page if it is not a  subpage.</p>
<pre class="brush: php;">
&lt;?php
// Get Parent of current page....
$parents_id = $wpdb-&gt;get_row(&quot;SELECT post_parent	FROM $wpdb-&gt;posts WHERE id = &quot;.$post-&gt;ID.&quot;	AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT');	

if($parents_id-&gt;post_parent &gt;0) // If this page have parent
{
	// Get all the subpages of the parent page.
	$child_pages = $wpdb-&gt;get_results(&quot;SELECT *	FROM $wpdb-&gt;posts WHERE post_parent = &quot;.$parents_id-&gt;post_parent.&quot;	AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT');
if(count($child_pages))// If count is greater than 0
{
?&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;?php echo get_the_title( $parents_id-&gt;post_parent);?&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild ); ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo $pageChild-&gt;guid; ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&quot;&gt;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; endif;?&gt;
&lt;/ul&gt;
&lt;?php
}
}
else
{
	//If the current page is a top level page and it is not a subpage.
	//Get the subpages of the current page
	$child_pages = $wpdb-&gt;get_results(&quot;SELECT *	FROM $wpdb-&gt;posts WHERE post_parent = &quot;.$post-&gt;ID.&quot;	AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT');
	if(count($child_pages))
{
?&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;?php echo get_the_title( $post-&gt;ID);?&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild ); ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo $pageChild-&gt;guid; ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&quot;&gt;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;?php endforeach; endif;?&gt;
&lt;/ul&gt;
&lt;?php
}
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-get-all-subpages-of-current-pages-parent-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>get all file names from folder PHP</title>
		<link>http://www.snilesh.com/resources/php/get-all-file-names-from-folder-php/</link>
		<comments>http://www.snilesh.com/resources/php/get-all-file-names-from-folder-php/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 12:40:49 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=579</guid>
		<description><![CDATA[Following code will retrieve all file names from a specified folder.

&#60;?php
$filePath = &#34;/var/www/public_html/mysite/images&#34;;/* Enter path to the folder */
$string=&#34;&#34;;
$fileCount=0;

$dir = opendir($filePath);
while ($file = readdir($dir)) {
  if (eregi(&#34;\.png&#34;,$file)) { /* Look for files with .png extension */
    $string .= &#34;$file&#60;br /&#62;&#34;;
    $fileCount++;
  }
}
if ($fileCount &#62; 0) {
  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fget-all-file-names-from-folder-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fget-all-file-names-from-folder-php%2F" height="61" width="51" /></a></div><p>Following code will retrieve all file names from a specified folder.</p>
<pre class="brush: php;">
&lt;?php
$filePath = &quot;/var/www/public_html/mysite/images&quot;;/* Enter path to the folder */
$string=&quot;&quot;;
$fileCount=0;

$dir = opendir($filePath);
while ($file = readdir($dir)) {
  if (eregi(&quot;\.png&quot;,$file)) { /* Look for files with .png extension */
    $string .= &quot;$file&lt;br /&gt;&quot;;
    $fileCount++;
  }
}
if ($fileCount &gt; 0) {
  echo sprintf(&quot;&lt;h2&gt;All Files in %s&lt;/h2&gt;&lt;br /&gt;%s&lt;strong&gt;Total Files: %s&lt;/strong&gt;&quot;,$filePath,$string,$fileCount);
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/php/get-all-file-names-from-folder-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Dynamic SelectBox</title>
		<link>http://www.snilesh.com/resources/jquery/jquery-dynamic-selectbox/</link>
		<comments>http://www.snilesh.com/resources/jquery/jquery-dynamic-selectbox/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 11:11:14 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=568</guid>
		<description><![CDATA[On Internet you would have come across many html forms where the value of certain fields depends on the values selected in the first select box. 
So if we  create this using server side script then many page loads will be needed. So if you want to create this at client side then you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fjquery%2Fjquery-dynamic-selectbox%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fjquery%2Fjquery-dynamic-selectbox%2F" height="61" width="51" /></a></div><p>On Internet you would have come across many html forms where the value of certain fields depends on the values selected in the first select box. </p>
<p>So if we  create this using server side script then many page loads will be needed. So if you want to create this at client side then you can create this using <a href="http://www.jquery.com" title="Jquery">Jquery</a>.</p>
<p>Example will be a country,state dropdown where the values in the state selectbox will depends on the value selected in the Country selectbox.</p>
<p>You can simply edit this script and use it as your needs.</p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.snilesh.com/demo/dynamic_selectbox/" title="Jquery Dynamic SelectBox" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.snilesh.com/demo/dynamic_selectbox.zip" title="Jquery galleriffic" class="download_new" target="_blank"></a>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/jquery/jquery-dynamic-selectbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress &#8211; File type does not meet security guidelines. Try another. Error</title>
		<link>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-file-type-does-not-meet-security-guidelines-try-another-error/</link>
		<comments>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-file-type-does-not-meet-security-guidelines-try-another-error/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 07:25:00 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Wordpress Hacks and Tricks]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=555</guid>
		<description><![CDATA[This Error message comes when you are trying to upload image,music or video files which are not supported by wordpress.
Wordpress have some whitelist of file types which are allowed to upload, Other files are not allowed to upload  due to the security reasons.

Accepted Filetypes
Images

.jpg
.jpeg
.png
.gif

For More information Read Wordpress Images
Videos

.mp4
.mov
.wmv
.avi
.mpg
.m4v

Audio

.mp3
.m4a
.ogg
.wav

Documents

.pdf (Portable Document Format; Adobe Acrobat)
.doc, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-file-type-does-not-meet-security-guidelines-try-another-error%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-file-type-does-not-meet-security-guidelines-try-another-error%2F" height="61" width="51" /></a></div><p>This Error message comes when you are trying to upload image,music or video files which are not supported by wordpress.</p>
<p>Wordpress have some whitelist of file types which are allowed to upload, Other files are not allowed to upload  due to the security reasons.</p>
<p><img src="http://www.snilesh.com/wp-content/uploads/2010/01/not_supported_file_type.jpg" alt="" title="not_supported_file_type" width="500" height="204" class="aligncenter size-full wp-image-556" /></p>
<h3>Accepted Filetypes</h3>
<h4>Images</h4>
<ol>
<li>.jpg</li>
<li>.jpeg</li>
<li>.png</li>
<li>.gif</li>
</ol>
<p>For More information Read <a href="http://en.support.wordpress.com/images/">Wordpress Images</a></p>
<h4>Videos</h4>
<ol>
<li>.mp4</li>
<li>.mov</li>
<li>.wmv</li>
<li>.avi</li>
<li>.mpg</li>
<li>.m4v</li>
</ol>
<h4>Audio</h4>
<ol>
<li>.mp3</li>
<li>.m4a</li>
<li>.ogg</li>
<li>.wav</li>
</ol>
<h4>Documents</h4>
<ol>
<li>.pdf (Portable Document Format; Adobe Acrobat)</li>
<li>.doc, .docx (Microsoft Word Document)</li>
<li>.ppt, .pptx (Microsoft PowerPoint Presentation)</li>
<li>.odt (OpenDocument Text Document)</li>
</ol>
<p>For more information Read <a href="http://en.support.wordpress.com/accepted-filetypes/">Wordpress Supported fietypes</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-file-type-does-not-meet-security-guidelines-try-another-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress Popular Post</title>
		<link>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-popular-post/</link>
		<comments>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-popular-post/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 16:51:34 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Wordpress Hacks and Tricks]]></category>
		<category><![CDATA[wordpress hacks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=553</guid>
		<description><![CDATA[If you want to display most commented post or most popular post on your blog, you can display that using following code.
Wordpress Popular Post or Most Commented Post without a Plugin

&#60;h2&#62;Popular Posts&#60;/h2&#62;
&#60;ul&#62;
&#60;?php $result = $wpdb-&#62;get_results(&#34;SELECT comment_count,ID,post_title FROM $wpdb-&#62;posts ORDER BY comment_count DESC LIMIT 0 , 5&#34;);
foreach ($result as $post) {
setup_postdata($post);
$postid = $post-&#62;ID;
$title = $post-&#62;post_title;
$commentcount = [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-popular-post%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-popular-post%2F" height="61" width="51" /></a></div><p>If you want to display most commented post or most popular post on your blog, you can display that using following code.</p>
<h1>Wordpress Popular Post or Most Commented Post without a Plugin</h1>
<pre class="brush: php;">
&lt;h2&gt;Popular Posts&lt;/h2&gt;
&lt;ul&gt;
&lt;?php $result = $wpdb-&gt;get_results(&quot;SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 5&quot;);
foreach ($result as $post) {
setup_postdata($post);
$postid = $post-&gt;ID;
$title = $post-&gt;post_title;
$commentcount = $post-&gt;comment_count;
if ($commentcount != 0) { ?&gt;
&lt;li&gt;&lt;a href=&quot;&lt;?php echo get_permalink($postid); ?&gt;&quot; title=&quot;&lt;?php echo $title ?&gt;&quot;&gt;

&lt;?php echo $title ?&gt;&lt;/a&gt; {&lt;?php echo $commentcount ?&gt;}&lt;/li&gt;
&lt;?php } } ?&gt;
&lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-popular-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get Image width height type using PHP</title>
		<link>http://www.snilesh.com/resources/php/get-image-width-height-type-using-php/</link>
		<comments>http://www.snilesh.com/resources/php/get-image-width-height-type-using-php/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 11:52:23 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=548</guid>
		<description><![CDATA[This is excellent php function which can be used to get Width,Height,Type of a Image using PHP. for more information read PHP.net

list($width, $height, $type, $attr) = getimagesize(&#34;image_name.jpg&#34;);

echo &#34;Image Properties&#34;;
echo &#34;Width &#34; .$width;
echo &#34;&#60;br/&#62;&#34;;
echo &#34;Height &#34; .$height;
echo &#34;&#60;br/&#62;&#34;;
echo &#34;Type &#34; .$type;
echo &#34;&#60;br/&#62;&#34;;
echo &#34;Attribute &#34; .$attr;





Type of the image













1 = GIF
5 = PSD
9 = JPC
13 = SWC


2 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fget-image-width-height-type-using-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fphp%2Fget-image-width-height-type-using-php%2F" height="61" width="51" /></a></div><p>This is excellent php function which can be used to get Width,Height,Type of a Image using PHP. for more information read <a href="http://in2.php.net/manual/en/function.getimagesize.php">PHP.net</a></p>
<pre class="brush: php;">
list($width, $height, $type, $attr) = getimagesize(&quot;image_name.jpg&quot;);

echo &quot;Image Properties&quot;;
echo &quot;Width &quot; .$width;
echo &quot;&lt;br/&gt;&quot;;
echo &quot;Height &quot; .$height;
echo &quot;&lt;br/&gt;&quot;;
echo &quot;Type &quot; .$type;
echo &quot;&lt;br/&gt;&quot;;
echo &quot;Attribute &quot; .$attr;
</pre>
</pre>
<table border="0" cellspacing="1" cellpadding="0" width="100%" bgcolor="#f4f9fb">
<tbody>
<tr>
<td width="99%"><strong>Type of the image</strong></td>
</tr>
<tr>
<td colspan="2" bgcolor="#eeeeee"><img src="http://www.phpeasystep.com/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td colspan="2" valign="top">
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td width="25%">1 = GIF</td>
<td width="35%">5 = PSD</td>
<td>9 = JPC</td>
<td>13 = SWC</td>
</tr>
<tr>
<td>2 = JPG</td>
<td>6 = BMP</td>
<td>10 = JP2</td>
<td>14 = IFF</td>
</tr>
<tr>
<td>3 = PNG</td>
<td>7 = TIFF(intel byte order)</td>
<td>11 = JPX</td>
<td>15 = WBMP</td>
</tr>
<tr>
<td>4 = SWF</td>
<td>8 = TIFF(motorola byte order)</td>
<td>12 = JB2</td>
<td>16 = XBM</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/php/get-image-width-height-type-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jquery Slideshow / Gallery Plugins</title>
		<link>http://www.snilesh.com/resources/jquery/jquery-slideshow-gallery-plugins/</link>
		<comments>http://www.snilesh.com/resources/jquery/jquery-slideshow-gallery-plugins/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 08:25:40 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=473</guid>
		<description><![CDATA[JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
Below you will find most powerful, the most creative and most versatile of jQuery plugins and tutorials built using jQuery.
1] Jquery InnerFade
InnerFade [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fjquery%2Fjquery-slideshow-gallery-plugins%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fjquery%2Fjquery-slideshow-gallery-plugins%2F" height="61" width="51" /></a></div><p>JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.</p>
<p>Below you will find most powerful, the most creative and most versatile of jQuery plugins and tutorials built using jQuery.</p>
<h4>1] Jquery InnerFade</h4>
<p>InnerFade is a small plugin for the jQuery-JavaScript-Library. It&#8217;s designed to fade you any element inside a container in and out.<br />
These elements could be anything you want, e.g. images, list-items, divs. Simply produce your own slideshow for your portfolio or advertisings. Create a newsticker or do an animation.</p>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/jquery_innerfade.jpg" alt="" title="jquery_innerfade" width="500" height="178" class="aligncenter size-full wp-image-477" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://medienfreunde.com/lab/innerfade/" title="Jquery InnerFade" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://medienfreunde.com/lab/innerfade/" title="Jquery InnerFade" class="view_new" target="_blank"></a>
</div>
</div>
<div class="border_p"></div>
<h4>2] Galleriffic</h4>
<p>Galleriffic is a jQuery plugin that provides a rich, post-back free experience optimized to handle high volumes of photos while conserving bandwidth.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/Galleriffic.jpg" alt="" title="Galleriffic" width="500" height="178" class="aligncenter size-full wp-image-482" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.twospy.com/galleriffic/example-2.html" title="Jquery galleriffic" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.twospy.com/galleriffic/" title="Jquery galleriffic" class="view_new" target="_blank"></a>
</div>
</div>
<h4>3] Popeye &#8211; an inline lightbox alternative</h4>
<p>Popeye generates an inline image gallery from an unordered list of images. The gallery features clever inline image enlargement, i.e. the enlarged image stretches out over the site content without adding a visual overlay of the whole site.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/jquery_popye.jpg" alt="" title="jquery_popye" width="500" height="178" class="aligncenter size-full wp-image-484" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://dev.herr-schuessler.de/examples/jquery-popeye-1-0/" title="jquery-popeye" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://herr-schuessler.de/blog/jquery-popeye-1-0-released/" title="jquery-popeye" class="view_new" target="_blank"></a>
</div>
</div>
<h4>4] ShowCase</h4>
<p>This plugin builds an autoscrolling, navigable image gallery, perfect to do a modern showcase in a portfolio web site.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/jquery_showcase.jpg" alt="" title="jquery_showcase" width="500" height="178" class="aligncenter size-full wp-image-486" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.recoding.it/wp-content/uploads/demos/showcase-demo.htm" title="jquery Showcase" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.recoding.it/?p=242" title="jquery Showcase" class="view_new" target="_blank"></a>
</div>
</div>
<h4>5] PictureSlides</h4>
<p>PictureSlides is a plugin for jQuery, and it is a highly customizable JavaScript-based way to easily turn your images into a collection viewable as a slideshow, and with fading effects<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/picture_slides.jpg" alt="" title="picture_slides" width="500" height="178" class="aligncenter size-full wp-image-489" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.robertnyman.com/picture-slides/demo-packages/gallery/index.html" title="jquery Picture Slides" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.robertnyman.com/picture-slides/index.htm" title="jquery Picture Slides" class="view_new" target="_blank"></a>
</div>
</div>
<h4>6] Jquery ImageSwitch</h4>
<p>Jquery ImageSwitch is easy-to-use, simple and fast plug-in to create effect when you switch between images.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/jquery_imageswitch.jpg" alt="" title="jquery_imageswitch" width="500" height="178" class="aligncenter size-full wp-image-491" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.hieu.co.uk/blog/index.php/imageswitch/" title="jquery ImageSwitch" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.hieu.co.uk/blog/index.php/imageswitch/" title="jquery ImageSwitch" class="view_new" target="_blank"></a>
</div>
</div>
<h4>7] S3Slider</h4>
<p>The s3Slider jQuery plugin is made by example of jd`s smooth slide show script.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/s3slider.jpg" alt="" title="s3slider" width="500" height="178" class="aligncenter size-full wp-image-496" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.serie3.info/s3slider/demonstration.html" title="jquery S3Slider" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.serie3.info/s3slider/" title="jquery S3Slider" class="view_new" target="_blank"></a>
</div>
</div>
<h4>8] Gallery View</h4>
<p>GalleryView aims to provide jQuery users with a flexible, attractive content gallery that is both easy to implement and a snap to customize.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/galleryview.jpg" alt="" title="galleryview" width="500" height="178" class="aligncenter size-full wp-image-498" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://spaceforaname.com/gallery-light.html" title="jquery galleryview" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://spaceforaname.com/galleryview" title="jquery galleryview" class="view_new" target="_blank"></a>
</div>
</div>
<h4>9] Galleria</h4>
<p>Galleria is a javascript image gallery written in jQuery. It loads the images one by one from an unordered list and displays thumbnails when each image is loaded.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/galleria.jpg" alt="" title="galleria" width="500" height="178" class="aligncenter size-full wp-image-500" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://devkick.com/lab/galleria/demo_01.htm#img/lotus.jpg" title="jquery galleria" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://devkick.com/lab/galleria/" title="jquery galleria" class="view_new" target="_blank"></a>
</div>
</div>
<h4>10] CrossSlide</h4>
<p>CrossSlide is a jQuery plugin that implements in Javascript some common slide-show animations, traditionally only available to the web developer via Adobe Flash™ or other proprietary plugins.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/crossslide.jpg" alt="" title="crossslide" width="500" height="178" class="aligncenter size-full wp-image-502" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.gruppo4.com/~tobia/cross-slide.shtml" title="jquery Crossslide" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.gruppo4.com/~tobia/cross-slide.shtml" title="jquery crossslide" class="view_new" target="_blank"></a>
</div>
</div>
<h4>11] A Simple jQuery Slideshow</h4>
<p>This is a nice tutorial to create  simple Jquery slideshow.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/jquery_slideshow.jpg" alt="" title="jquery_slideshow" width="500" height="178" class="aligncenter size-full wp-image-504" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://jonraasch.com/blog/a-simple-jquery-slideshow" title="jquery Simple slideshow" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://jonraasch.com/blog/a-simple-jquery-slideshow" title="jquery Simple slideshow" class="view_new" target="_blank"></a>
</div>
</div>
<h4>12] Smooth Div Scroll</h4>
<p>Smooth Div Scroll is a jQuery plugin that scrolls content horizontally left or right. Apart from many of the other scrolling plugins that have been written for jQuery, Smooth Div Scroll does not limit the scroling to distinct steps. </p>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/smooth_div.jpg" alt="" title="smooth_div" width="500" height="178" class="aligncenter size-full wp-image-506" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.maaki.com/thomas/SmoothDivScroll/" title="jquery Smooth Div scroll" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.maaki.com/thomas/SmoothDivScroll/" title="jquery Smooth Div Scroll" class="view_new" target="_blank"></a>
</div>
</div>
<h4>13] Simple Controls Gallery</h4>
<p>Simple Controls Gallery rotates and displays an image by fading it into view over the previous one, with navigation controls that pop up when the mouse rolls over the Gallery.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/simple.jpg" alt="" title="simple" width="500" height="178" class="aligncenter size-full wp-image-508" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm" title="Simple Controls Gallery" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm" title="Simple Controls Gallery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>14] Sliding Image Gallery</h4>
<p>The idea behind this plug-in is to display a varying number of images in an attractive and easy to use manner. </p>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/sliding_image_gallery.jpg" alt="" title="sliding_image_gallery" width="500" height="178" class="aligncenter size-full wp-image-510" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.meadmiracle.com/SlidingGalleryDemo1.htm" title="Sliding Image Gallery" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.meadmiracle.com/SlidingGallery.aspx" title="Sliding Image Gallery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>15] Flickr Photo Gallery</h4>
<p>flickrGallery is an open-source photo gallery for jQuery that allows you to dynamically pull images from a photoset in Flickr. </p>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/flickr_photo_gallery.jpg" alt="" title="flickr_photo_gallery" width="500" height="178" class="aligncenter size-full wp-image-512" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.userfriendlythinking.com/Blog/BlogDetail.asp?p1=7013&#038;p2=101&#038;p7=3001" title="Flickr Photo Gallery" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.userfriendlythinking.com/Blog/BlogDetail.asp?p1=7013&#038;p2=101&#038;p7=3001" title="Flickr Photo Gallery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>16] Pikachoose</h4>
<p>Pikachoose is a lightweight Jquery plugin that allows easy presentation of photos with options for slideshows, navigation buttons, and auto play.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/pikachoose.jpg" alt="" title="pikachoose" width="500" height="178" class="aligncenter size-full wp-image-514" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://pikachoose.com/demo/" title="Pikachoose" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://pikachoose.com/" title="Pikachoose" class="view_new" target="_blank"></a>
</div>
</div>
<h4>17] EOGallery </h4>
<p>EOGallery is a web animated slideshow gallery maid with jQuery. It only uses basic jQuery functions and Cody Lindley&#8217;s Thickbox to display larger pictures.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/EOGallery.jpg" alt="" title="EOGallery" width="500" height="178" class="aligncenter size-full wp-image-516" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.eogallery.com/" title="EOGallery " class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.eogallery.com/" title="EOGallery " class="view_new" target="_blank"></a>
</div>
</div>
<h4>18] Full Screen Image Gallery Jquery and Flickr</h4>
<p>full screen image gallery that automatically scales the image with kept aspect ratio to fill the browser background.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/full_screen.jpg" alt="Full Screen Image Gallery Jquery and Flickr" title="Full Screen Image Gallery Jquery and Flickr " width="500" height="178" class="aligncenter size-full wp-image-520" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://devkick.com/lab/fsgallery/" title="Full Screen Image Gallery Jquery and Flickr " class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://devkick.com/blog/full-screen-image-gallery-using-jquery-and-flickr/" title="Full Screen Image Gallery Jquery and Flickr" class="view_new" target="_blank"></a>
</div>
</div>
<h4>19] jQuery morphing gallery</h4>
<p>Image grids that smoothly scale at the simple drag of a slider are no longer confined to desktop apps like iPhoto or Picasa.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/morfing_gallery1.jpg" alt="jQuery morphing gallery" title="jQuery morphing gallery" width="500" height="178" class="aligncenter size-full wp-image-525" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://demos.webdesignledger.com/jquery_image_grid/example2.htm" title="jQuery morphing gallery " class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://webdesignledger.com/tutorials/create-a-resizable-image-grid-with-jquery" title="jQuery morphing gallery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>20] Simple JQuery Image Slide Show with Semi-Transparent Caption</h4>
<p>simple image slide show with a semi-transparent caption with jQuery. This example is suitable to display news headlines, or a image slide show in your website frontpage.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/simple_transparent.jpg" alt="" title="simple_transparent" width="500" height="178" class="aligncenter size-full wp-image-527" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.queness.com/resources/html/slideshow/jquery-slideshow.html" title="jQuery morphing gallery " class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.queness.com/post/152/simple-jquery-image-slide-show-with-semi-transparent-caption" title="jQuery morphing gallery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>21] Slick and Accessible Slideshow Using jQuery</h4>
<p>Create a usable and web accessible slideshow widget for your site using HTML, CSS, and JavaScript (jQuery).<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/15-01_slick_accessible_leading_image.jpg" alt="" title="15-01_slick_accessible_leading_image" width="500" height="180" class="aligncenter size-full wp-image-529" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://sixrevisions.com/demo/slideshow/final.html" title="Slick and Accessible Slideshow Using jQuery" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://sixrevisions.com/tutorials/javascript_tutorial/create-a-slick-and-accessible-slideshow-using-jquery/" title="Slick and Accessible Slideshow Using jQuery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>22] Ultimate Fade-in slideshow (v2.1)</h4>
<p>This is a robust, cross browser fade in slideshow script that incorporates some of your most requested features all rolled into one.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/fade_slideshow1.jpg" alt="" title="fade_slideshow" width="500" height="178" class="aligncenter size-full wp-image-533" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm" title="Ultimate Fade-in slideshow" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm" title="Ultimate Fade-in slideshow" class="view_new" target="_blank"></a>
</div>
</div>
<h4>23] AD Gallery, gallery plugin for jQuery</h4>
<p>A highly customizable gallery/showcase plugin for jQuery.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/ad_gallery.jpg" alt="" title="ad_gallery" width="500" height="178" class="aligncenter size-full wp-image-535" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://coffeescripter.com/code/ad-gallery/" title="AD Gallery, gallery plugin for jQuery" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/" title="AD Gallery, gallery plugin for jQuery" class="view_new" target="_blank"></a>
</div>
</div>
<h4>24] Jquery Panel Gallery Plugin 1.1</h4>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/panel_gallery.jpg" alt="Jquery Panel Gallery Plugin 1.1" title="Jquery Panel Gallery Plugin 1.1" width="500" height="178" class="aligncenter size-full wp-image-537" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.catchmyfame.com/2009/05/02/jquery-panel-gallery-plugin/" title="Jquery Panel Gallery Plugin 1.1" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.catchmyfame.com/2009/05/02/jquery-panel-gallery-plugin/" title="Jquery Panel Gallery Plugin 1.1" class="view_new" target="_blank"></a>
</div>
</div>
<h4>25] SlideViewerPro 1.0</h4>
<p>slideViewerPro is a fully customizable jQuery image gallery engine wich allows to create outstanding sliding image galleries for your projects and/or interactive galleries within blog posts.<br />
<img src="http://www.snilesh.com/wp-content/uploads/2009/12/slideview.jpg" alt="" title="slideview" width="500" height="178" class="aligncenter size-full wp-image-540" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html" title="slideViewerPro 1.0" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html" title="slideViewerPro 1.0" class="view_new" target="_blank"></a>
</div>
</div>
<h4>26] Easy Image Preview with jQuery</h4>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/easy_image_preview.jpg" alt="" title="easy_image_preview" width="500" height="178" class="aligncenter size-full wp-image-543" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://www.webinventif.fr/wp-content/uploads/projets/tooltip/02/" title="slideViewerPro 1.0" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.catswhocode.com/blog/how-to-create-a-fancy-image-gallery-with-jquery" title="slideViewerPro 1.0" class="view_new" target="_blank"></a>
</div>
</div>
<h3>Some Other Slideshow Scripts</h3>
<h4>Animated JavaScript Slideshow </h4>
<p><img src="http://www.snilesh.com/wp-content/uploads/2009/12/javascript-slideshow.jpg" alt="" title="javascript-slideshow" width="459" height="200" class="aligncenter size-full wp-image-545" /></p>
<div class="option_div_1">
<div class="dm">
<a href="http://sandbox.leigeber.com/javascript-slideshow/" title="http://www.leigeber.com/2008/12/javascript-slideshow/" class="demo_new" target="_blank"></a></div>
<div class="dw">
<a href="http://www.leigeber.com/2008/12/javascript-slideshow/" title="http://www.leigeber.com/2008/12/javascript-slideshow/" class="view_new" target="_blank"></a>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/jquery/jquery-slideshow-gallery-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Show title and excerpt of child pages on Parent page</title>
		<link>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-show-title-and-excerpt-of-child-pages-on-parent-page/</link>
		<comments>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-show-title-and-excerpt-of-child-pages-on-parent-page/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 13:59:39 +0000</pubDate>
		<dc:creator>snilesh</dc:creator>
				<category><![CDATA[Wordpress Hacks and Tricks]]></category>

		<guid isPermaLink="false">http://www.snilesh.com/?p=469</guid>
		<description><![CDATA[When you want to display all the child pages title and excerpt of current parent page then you can display by adding following code in your page template file

&#60;?php
$child_pages = $wpdb-&#62;get_results(&#34;SELECT *	FROM $wpdb-&#62;posts WHERE post_parent = &#34;.$post-&#62;ID.&#34;	AND post_type = 'page' ORDER BY menu_order&#34;, 'OBJECT');	?&#62;
&#60;?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-show-title-and-excerpt-of-child-pages-on-parent-page%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.snilesh.com%2Fresources%2Fwordpress%2Fwordpress-hacks-and-tricks%2Fwordpress-show-title-and-excerpt-of-child-pages-on-parent-page%2F" height="61" width="51" /></a></div><p>When you want to display all the child pages title and excerpt of current parent page then you can display by adding following code in your page template file</p>
<pre class="brush: php;">
&lt;?php
$child_pages = $wpdb-&gt;get_results(&quot;SELECT *	FROM $wpdb-&gt;posts WHERE post_parent = &quot;.$post-&gt;ID.&quot;	AND post_type = 'page' ORDER BY menu_order&quot;, 'OBJECT');	?&gt;
&lt;?php if ( $child_pages ) : foreach ( $child_pages as $pageChild ) : setup_postdata( $pageChild ); ?&gt;
&lt;h2 class=&quot;subpagetitle&quot;&gt;&lt;a href=&quot;&lt;?php echo $pageChild-&gt;guid; ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&quot;&gt;&lt;?php echo $pageChild-&gt;post_title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;?php the_excerpt();?&gt;
&lt;?php endforeach; endif;
?&gt;
</pre>
<p>If you don&#8217;t want to display child pages on every page then you can use <a href="http://codex.wordpress.org/Conditional_Tags">Wordpress Conditional Tags</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.snilesh.com/resources/wordpress/wordpress-hacks-and-tricks/wordpress-show-title-and-excerpt-of-child-pages-on-parent-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
