<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>php genious</title>
	
	<link>http://www.phpgenious.com</link>
	<description />
	<lastBuildDate>Fri, 01 Feb 2013 19:08:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/PhpGenious" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="phpgenious" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>URL rewriting in Magento</title>
		<link>http://www.phpgenious.com/2011/09/url-rewriting-in-magento/</link>
		<comments>http://www.phpgenious.com/2011/09/url-rewriting-in-magento/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 20:53:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[magneto]]></category>
		<category><![CDATA[URL Rewriting in magento]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=574</guid>
		<description><![CDATA[Hi Friends.. Currently I am working in Magento. Its a great experience for me to learn Magento. Since many time, I want to learn Magento and I got Opportunity to [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Friends.. Currently I am working in Magento. Its a great experience for me to learn Magento. Since many time, I want to learn Magento and I got Opportunity to work on one live project in magento. I am really very happy to work on magento and learn magento. When I have started work on magento, I faced many issues in magento like understanding structure, theme structure and many things. I will write here  about my experience with mangento every day.</p>
<p><span id="more-574"></span>Here in this post, I am going to show you all that how to enable URL rewriting in Magento ? Its a simple thing but its very important in any online store. Because URL rewriting is useful in Search Engine Optimization.</p>
<p>So in magento if you want to start URL rewriting in magento, you have to take care of below steps :</p>
<p><strong>1)</strong> First check on server that <strong>mod_rewrite</strong> is enabled.</p>
<p><strong>2)</strong> After that when you are installing magento, Check the checkbox for url rewriting.</p>
<p><strong>3)</strong> And mail task is when you have completed installation, then go to <strong>admin-&gt;system-&gt;index management </strong>and check all the checkboxes and select <strong>reindex </strong>from dropdown and click on save.</p>
<ul></ul>
<p>Thats it.. Now check your front end. I bet it will works fine now. If you have any issue or any suggestion then you can comment on this.</p>
<p>Thanks a lot !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2011/09/url-rewriting-in-magento/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add new widget in wordpress</title>
		<link>http://www.phpgenious.com/2011/09/add-new-widget-in-wordpress/</link>
		<comments>http://www.phpgenious.com/2011/09/add-new-widget-in-wordpress/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 19:19:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[add widget]]></category>
		<category><![CDATA[wordpress sidebar]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=563</guid>
		<description><![CDATA[Hi Friends !! I am back in blogging after long time. Are you looking for adding new widget in wordpress ? I had this requirement few days ago and I found [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Friends !! I am back in blogging after long time. Are you looking for adding new widget in wordpress ? I had this requirement few days ago and I found a solution for this. I have done some custom code  in wordpress and I got my solution.</p>
<p>Do you want to add different widget for different template page ? Are you finding about how to show dynamic widget in template ?<br />
Then your search end here. I will show you today that how you can add new widget and how you can call it in template.</p>
<p><span id="more-563"></span></p>
<p>First find <strong>functions.php </strong>in your theme folder. If not then create  <strong>functions.php. </strong>Then add below code in that file :</p>
<p><code> </code></p>
<p><code></p>
<div id="_mcePaste" style="padding-left: 30px;">register_sidebar( array(<br />
<span style="font-family: monospace;">'name' =&gt; __( 'Test Sidebar', 'twentyeleven' ),<br />
</span><span style="font-family: monospace;">'id' =&gt; 'sidebar-6',</span></div>
<div id="_mcePaste" style="padding-left: 30px;">'description' =&gt; __( 'This is a test sidebar', 'twentyeleven' ),</div>
<div id="_mcePaste" style="padding-left: 30px;">'before_widget' =&gt; '&lt;aside id="%1$s"&gt;',</div>
<div id="_mcePaste" style="padding-left: 30px;">'after_widget' =&gt; "&lt;/aside&gt;",</div>
<div id="_mcePaste" style="padding-left: 30px;">'before_title' =&gt; '&lt;h3&gt;',</div>
<div id="_mcePaste" style="padding-left: 30px;">'after_title' =&gt; '&lt;/h3&gt;',</div>
<div id="_mcePaste" style="padding-left: 30px;">) );</div>
<p></code></p>
<p>After adding this in your <strong>function.php, </strong>in admin, you can see one sidebar block in widget.</p>
<p>Now How to show this particular sidebar in template ? Its also an easy task. Open template file (you can also put this in page.php).</p>
<p>And place below code in at location where you want to show that widget:<br />
<code><br />
&lt;?php if ( is_active_sidebar( 'sidebar-6' ) ) : ?&gt;</code></p>
<p><code><span style="white-space: pre;"> </span>&lt;div id="first" class="widget-area" role="complementary"&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;?php dynamic_sidebar( 'sidebar-6' ); ?&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;/div&gt;</p>
<p></code></p>
<p><code><span style="white-space: pre;"> </span>&lt;?php endif; ?&gt;<br />
</code></p>
<p>Thats it !! You can add as many widgets as you want in your site. You can make unique look.</p>
<p>If you have any doubt or any query then comment on this or you can directly contact me via contact form.</p>
<p>Thanks!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2011/09/add-new-widget-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Put CMS pages in Header Menu in Magento</title>
		<link>http://www.phpgenious.com/2011/06/put-cms-pages-in-header-menu-in-magento/</link>
		<comments>http://www.phpgenious.com/2011/06/put-cms-pages-in-header-menu-in-magento/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 17:54:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento header]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=556</guid>
		<description><![CDATA[Hi Friends !! After long time, I am back in blogging and posting some interesting stuffs for you. Today I will show you that how you can change your header [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Friends !! After long time, I am back in blogging and posting some interesting stuffs for you.</p>
<p>Today I will show you that how you can change your header menu in magento and how you can put CMS pages in header dynamic menu.</p>
<p>In one of my project, I have faced the problem that how to change mail menu and how to put CMS pages in main menu.</p>
<p>After long search in google, i found the solution which I want  to share with you. If you want to change you header in Magento, Please follow below steps :<span id="more-556"></span></p>
<p><strong>First</strong> open <strong>top.phtml</strong> file of your template. My path for this file is <strong>/public_html/app/design/frontend/default/hellostyle/template/catalog/navigation/top.phtml.</strong></p>
<p>Now after this, Remove default menu code like this :</p>
<p><code>&lt;?php $_menu = $this-&gt;renderCategoriesMenuHtml(0,'level-top') ?&gt;<br />
&lt;?php if($_menu): ?&gt;<br />
&lt;ul id="nav"&gt;<br />
&lt;?php echo $_menu ?&gt;<br />
&lt;/ul&gt;<br />
&lt;?php endif ?&gt;</code></p>
<p>And Add this code here :</p>
<p><code>&lt;?php $collection = Mage::getModel('cms/page')-&gt;getCollection()-&gt;addStoreFilter(Mage::app()-&gt;getStore()-&gt;getId());?&gt;<br />
&lt;?php  $collection-&gt;getSelect()<br />
-&gt;where('is_active = 1'); ?&gt;<br />
&lt;ul id="nav"&gt;<br />
&lt;?php foreach ($collection as $page): ?&gt;<br />
&lt;?php $PageData = $page-&gt;getData(); ?&gt;<br />
&lt;?php if($PageData['identifier']!='no-route' &amp;&amp; $PageData['identifier']!='enable-cookies' &amp;&amp; $PageData['identifier']!='home2') { ?&gt;<br />
&lt;li&gt;<br />
&lt;a href="/&lt;?php echo $PageData['identifier']?&gt;"&gt;&lt;span&gt;&lt;?php echo $PageData['title'] ?&gt;&lt;/span&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php } ?&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/ul&gt;</code></p>
<p>Thats it ! Now you can see all the CMS pages in header.</p>
<p>If you have any problem or any query in this or if you want any help from myside, just comment on this.</p>
<p>Thanks !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2011/06/put-cms-pages-in-header-menu-in-magento/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Show wordpress blog posts in any other CMS (EE, joomla)</title>
		<link>http://www.phpgenious.com/2011/03/show-wordpress-blog-posts-in-any-other-cms-ee-joomla/</link>
		<comments>http://www.phpgenious.com/2011/03/show-wordpress-blog-posts-in-any-other-cms-ee-joomla/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 19:17:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress in EE]]></category>
		<category><![CDATA[wordpress posts in joomla]]></category>
		<category><![CDATA[wordpress posts in other CMS]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=522</guid>
		<description><![CDATA[Hi Friends !! After long tine, I am back for posting. Today I had a great experience. Currently since from few weeks, I am working with Expression Engine. Now you [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Friends !!</p>
<p>After long tine, I am back for posting. Today I had a great experience.</p>
<p>Currently since from few weeks, I am working with <strong>Expression Engine</strong>. Now you thought that what is <strong>Expression Engine.</strong></p>
<p>Now let me explain you in little brief. Expression Engine is one of the great CMS software like wordpress, Jommla, Drupal etc.</p>
<p>So when I was working with this, I faced one requirement like show latest posts of wordpress blog into Expression Engine site.<br />
<span id="more-522"></span><br />
So I am wondering at that time that how it would be possible ? But I believe that in Web World, There is nothing impossible.</p>
<p>After long research, I found solution and this technique is works in any other CMS like joomla, Drupan etc. I explain here how it works.</p>
<p>We have to use SimplePie for this technoque. Now what is simplepie ? SimplePie is a RSS feed parsing in PHP. Just copy and paste below code :</p>
<div class="code">
<div id="_mcePaste"><span style="font-family: monospace;">&lt;?php $feed = new SimplePie(&#8216;http://wordpress.org/news/feed/&#8217;); ?&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;?php foreach ($feed-&gt;get_items(0, 3) as $item): ?&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;div&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;a href=&#8221;&lt;?php print $item-&gt;get_permalink(); ?&gt;&#8221;&gt; &lt;?php print $item-&gt;get_title(); ?&gt;&lt;/a&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;p&gt;&lt;?php echo shorten($item-&gt;get_description(), 100);?&gt; &lt;/p&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;/div&gt;</span></div>
<div id="_mcePaste"><span style="font-family: monospace;">&lt;?php endforeach; ?&gt;</span></div>
<p><span style="font-family: monospace;">&lt;?php $feed = new SimplePie(&#8216;http://wordpress.org/news/feed/&#8217;); ?&gt;<br />
&lt;?php foreach ($feed-&gt;get_items(0, 3) as $item): ?&gt;<br />
&lt;div&gt;<br />
&lt;a href=&#8221;&lt;?php print $item-&gt;get_permalink(); ?&gt;&#8221;&gt; &lt;?php print $item-&gt;get_title(); ?&gt;&lt;/a&gt;<br />
&lt;p&gt;&lt;?php echo shorten($item-&gt;get_description(), 100);?&gt; &lt;/p&gt;<br />
&lt;/div&gt;<br />
&lt;?php endforeach; ?&gt;</span></p>
</div>
<p>Thats it !! If you think that this post is useful for you or if you have any issue or any problem then just comment me on this post.</p>
<p>Thanks !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2011/03/show-wordpress-blog-posts-in-any-other-cms-ee-joomla/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to use custom menu in WordPress 3.0.X</title>
		<link>http://www.phpgenious.com/2010/10/how-to-use-custom-menu-in-wordpress-3-0-x/</link>
		<comments>http://www.phpgenious.com/2010/10/how-to-use-custom-menu-in-wordpress-3-0-x/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 20:11:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress custom menu]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=501</guid>
		<description><![CDATA[Hi Friends !! Currently I pass my lots of time to work with wordpress. And today I want to share with you that how to use custom menu section in [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Friends !!</p>
<p>Currently I pass my lots of time to work with wordpress. And today I want to share with you that how to use custom menu section in wordpress 3.0 or later.</p>
<p>I think most of people heard about this but didnt know how to use this. Today I want to share with you the usage guide of custom menu section.</p>
<p>First of all I want to clear with you that this is a new feature in wordpress 3.0 and later version. Using this feature you can create your own navigation for frontend with dropdown facility. Let us see the steps of how to do this :</p>
<p><span id="more-501"></span></p>
<p>1) First of all go to your admin-&gt;appearance-&gt;menus.</p>
<p><a href="http://www.phpgenious.com/wp-content/uploads/2010/10/menu1.png"><img class="lazy alignnone size-large wp-image-502" title="menu1" src="http://www.phpgenious.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif" data-original="http://www.phpgenious.com/wp-content/uploads/2010/10/menu1-1024x308.png" alt="" width="1024" height="308" /><noscript><img class="alignnone size-large wp-image-502" title="menu1" src="http://www.phpgenious.com/wp-content/uploads/2010/10/menu1-1024x308.png" alt="" width="1024" height="308" /></noscript></a></p>
<p>2) When you add new menu, you can see added menu in left &#8220;Primary Navigation&#8221;. Now you can add menu items from &#8220;custom links&#8221;, &#8220;Pages&#8221; and &#8220;Categories&#8221;.</p>
<p>3) When you add menuitems, you can see that item in right side. You can see &#8220;Yahoo&#8221; in above image. Its an external link menu item. If you want to make any menu item as achild page of any other menu item, just drag that menu link and place below parent. See above image. in Above image, &#8220;uncategorized&#8221; is a child of  &#8220;yahoo&#8221;.</p>
<p>4) You can create as many menus as you want. But you can show menus as compatible with your theme. The default twenty-ten theme supports only one custom menu. So for default theme, you have to select menu from &#8220;Primary location&#8221;.</p>
<p>5) Thats it. Now you can see your choosen menu in frontend.</p>
<p>If you like this post or if you have any suggestion or any confusion then just comment me. I will defenately solve your issue.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/10/how-to-use-custom-menu-in-wordpress-3-0-x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WordPress-Add new Custom Post section</title>
		<link>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/</link>
		<comments>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 09:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[new section in wordpress]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=456</guid>
		<description><![CDATA[Hello Friends !! Today, wordpress is widely used opensource. And in wordpress 3.0 and later versions, there are many new features which are not in later versions. Yes, today I [...]]]></description>
				<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>Today, wordpress is widely used opensource. And in wordpress 3.0 and later versions, there are many new features which are not in later versions.</p>
<p>Yes, today I will share with you one new feature .  Do you know How you can add new custom post section in wordpress ?</p>
<p>Understand what I mean ? Ok, dont take tension. I will show you want I mean and what i want to share with you. Please see image :</p>
<p><span id="more-456"></span></p>
<p><a href="http://www.phpgenious.com/wp-content/uploads/2010/09/custom.jpg"><img class="lazy alignnone size-full wp-image-457" title="custom" src="http://www.phpgenious.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif" data-original="http://www.phpgenious.com/wp-content/uploads/2010/09/custom.jpg" alt="" width="169" height="227" /><noscript><img class="alignnone size-full wp-image-457" title="custom" src="http://www.phpgenious.com/wp-content/uploads/2010/09/custom.jpg" alt="" width="169" height="227" /></noscript></a></p>
<p>See above image. In this, I have added two new section <strong>Deals</strong> and <strong>Podcast</strong>. I am going to share with you that how can you make this ?</p>
<p>First of all, open <strong>post.php</strong> file which it located in <strong>wp-include</strong> folder.</p>
<p>After that find <strong>function create_initial_post_types() </strong>and place below code in this function :</p>
<div class="code">register_post_type(&#8216;podcast&#8217;, array(<br />
&#8216;label&#8217; =&gt; __(&#8216;Podcast&#8217;),<br />
&#8216;singular_label&#8217; =&gt; __(&#8216;Podcast&#8217;),<br />
&#8216;public&#8217; =&gt; true,<br />
&#8216;show_ui&#8217; =&gt; true,<br />
&#8216;capability_type&#8217; =&gt; &#8216;post&#8217;,<br />
&#8216;hierarchical&#8217; =&gt; false,<br />
&#8216;rewrite&#8217; =&gt; false,<br />
&#8216;query_var&#8217; =&gt; false,<br />
&#8216;supports&#8217; =&gt; array( &#8216;title&#8217;, &#8216;editor&#8217;, &#8216;thumbnail&#8217;, &#8216;excerpt&#8217;, &#8216;custom-fields&#8217; )<br />
));</div>
<p>more details, click below :<br />
<!--adsense#cronjob--></p>
<p>Above code registers new custom post type <strong>podcast </strong>in your admin. You can see it in your admin. For insert posts in this section, place below code after completion <strong>function create_initial_post_types().</strong></p>
<div class="code">add_action(&#8220;manage_posts_custom_column&#8221;, &#8220;my_custom_columns&#8221;);<br />
add_filter(&#8220;manage_edit-podcast_columns&#8221;, &#8220;my_podcast_columns&#8221;);</p>
<p>function my_podcast_columns($columns)<br />
{<br />
$columns = array(<br />
&#8220;cb&#8221; =&gt; &#8220;&lt;input type=\&#8221;checkbox\&#8221; /&gt;&#8221;,<br />
&#8220;title&#8221; =&gt; &#8220;Podcast Title&#8221;,<br />
&#8220;description&#8221; =&gt; &#8220;Description&#8221;,<br />
&#8220;length&#8221; =&gt; &#8220;Length&#8221;,<br />
&#8220;speakers&#8221; =&gt; &#8220;Speakers&#8221;,<br />
&#8220;comments&#8221; =&gt; &#8216;Comments&#8217;<br />
);<br />
return $columns;<br />
}</p>
<p>function my_custom_columns($column)<br />
{<br />
global $post;<br />
if (&#8220;ID&#8221; == $column) echo $post-&gt;ID;<br />
elseif (&#8220;description&#8221; == $column) echo $post-&gt;post_content;<br />
elseif (&#8220;length&#8221; == $column) echo &#8220;63:50&#8243;;<br />
elseif (&#8220;speakers&#8221; == $column) echo &#8220;admin&#8221;;<br />
}</p>
</div>
<p>Now you can add posts in this new section. Enjoy this new magic. But one question will be in your mind that how can i display these posts in front end ? Am I right ? Don&#8217;t worry. I also give you the code by which you can list these posts in front end. Just copy paste below code where you want to display losts in front end:</p>
<div class="code">&lt;?php $loop = new WP_Query( array( &#8216;post_type&#8217; =&gt; &#8216;podcast&#8217;, &#8216;posts_per_page&#8217; =&gt; 10 ) );<br />
while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post();<br />
the_title();</p>
<p>the_content();</p>
<p>endwhile; ?&gt;</p>
</div>
<p>Thats it !! If you like this post or if you have any query in wordpress on in PHP, feel free to comment me or contact me.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/09/wordpress-add-new-custom-post-section/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress Magic- Different post page for different category post</title>
		<link>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/</link>
		<comments>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 13:32:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[multiple singe.php pages]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=451</guid>
		<description><![CDATA[Hello Friends !! Since last many time, I am working with wordpress and I got lot of challenges with wordpress customization. Recently, I have a confusion that how can I [...]]]></description>
				<content:encoded><![CDATA[<p>Hello Friends !! Since last many time, I am working with wordpress and I got lot of challenges with wordpress customization.</p>
<p>Recently, I have a confusion that how can I make different single.php file for different posts ? After long research, I got a solution of this problem.</p>
<p>You can create as many single.php files as you want and you also can apply it to different posts. For example, In your site News section has a different layout then blog posts. At that time, this post helps to you .</p>
<p>Here I give you example that how you can do this.<span id="more-451"></span></p>
<p>First , create one file called <em><strong>single-categoryID.php</strong></em> in theme folder.</p>
<p>After creating this please go to single.php, file which shows you full article.</p>
<p>for more details click below:<br />
<!--adsense#wordpress_single_php--></p>
<p>After header, write below code:</p>
<div class="code">if (in_category(&#8217;9&#8242;))<br />
{<br />
include (TEMPLATEPATH . &#8216;/single-9.php&#8217;);<br />
}<br />
elseif (in_category(&#8217;10&#8242;))<br />
{<br />
include (TEMPLATEPATH . &#8216;/single-10.php&#8217;);<br />
}<br />
else<br />
{<br />
rest of the code&#8230;&#8230;.<br />
}</div>
<p>You can create as many templates as you want. You can also create multiple headers like this and include like a\same above code.</p>
<p>Thats It !! Enjoy different template for different posts.</p>
<p>If you have any wordpress customization query or any confusion, feel free to ask me or comment me.</p>
<p>Thanks,</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/08/wordpress-magic-different-post-page-for-different-category-post/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Gmail New Feature – Import mail &amp; contacts</title>
		<link>http://www.phpgenious.com/2010/08/gmail-new-feature-import-mail-contacts/</link>
		<comments>http://www.phpgenious.com/2010/08/gmail-new-feature-import-mail-contacts/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 12:14:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Gmail]]></category>
		<category><![CDATA[New Features of Gmail]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=444</guid>
		<description><![CDATA[Hello Friends !! Today I will show you the new feature released in Gmail. Everyone knows that Google team make everyday new features. The new feature is that, now you [...]]]></description>
				<content:encoded><![CDATA[<div id="_mcePaste">Hello Friends !!</div>
<div id="_mcePaste">Today I will show you the new feature released in Gmail. Everyone knows that Google team make everyday new features.</div>
<div id="_mcePaste">The new feature is that, now you can chat with your yahoo, AOL,Hotmail friends from Gmail. Srange ? Let me explain.</div>
<div id="_mcePaste">When you login into your google account, you can see one new feature on top-right corner called <strong><span style="color: #ff0000;">Import mail &amp; contacts</span></strong>.</div>
<div id="_mcePaste">When you click on this, you can see one page from which you can import your friends from AOL,yahoo,hotmail etc.</div>
<p><span id="more-444"></span></p>
<div id="_mcePaste">Please see below image:</div>
<div><a href="http://www.phpgenious.com/wp-content/uploads/2010/08/Gmail-Settings-timir999@gmail.com-Google-Chrome.jpg"><img class="lazy alignnone size-large wp-image-445" title="Gmail - Settings - timir999@gmail.com - Google Chrome" src="http://www.phpgenious.com/wp-content/plugins/jquery-image-lazy-loading/images/grey.gif" data-original="http://www.phpgenious.com/wp-content/uploads/2010/08/Gmail-Settings-timir999@gmail.com-Google-Chrome-1024x498.jpg" alt="" width="700" height="290" /><noscript><img class="alignnone size-large wp-image-445" title="Gmail - Settings - timir999@gmail.com - Google Chrome" src="http://www.phpgenious.com/wp-content/uploads/2010/08/Gmail-Settings-timir999@gmail.com-Google-Chrome-1024x498.jpg" alt="" width="700" height="290" /></noscript></a></div>
<div id="_mcePaste">After that you can do whatever you want to do. Enjoy !!</div>
<div id="_mcePaste">If you like my post then please give comment on it.</div>
<div id="_mcePaste">if you have any query in any PHP related topinc, feel free to ask a question.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/08/gmail-new-feature-import-mail-contacts/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>Image upload/display problem in FCK editor-solution</title>
		<link>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/</link>
		<comments>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 06:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[CK editor]]></category>
		<category><![CDATA[fckeditor]]></category>
		<category><![CDATA[Image uploading]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=436</guid>
		<description><![CDATA[Hello friends !! We generally use FCK Editor for the editor purpose in our website. But In many occation, every one has faced I mage uploading problem or Image not [...]]]></description>
				<content:encoded><![CDATA[<p>Hello friends !!</p>
<p>We generally use FCK Editor for the editor purpose in our website. But In many occation, every one has faced I mage uploading problem or Image not shown in frontend. Its an common errors of FCK editor.</p>
<p>For resolving these errors you have to set some parameters in the fck config file.<span id="more-436"></span><br />
click below for more details :<br />
<!--adsense#link--></p>
<p>If you have a problem of Image uploading, then follow below steps :</p>
<p>Go through this file FCKeditor\editor\filemanager\connectors\php\config.php and set absolute path of your directory. I think you all are know about absolute and relative path. Please set below path in your config file.</p>
<p>$Config['UserFilesPath'] = &#8216;http://www.abcd.com/userfiles/&#8217; ;</p>
<p>$Config['UserFilesAbsolutePath'] = &#8216;directody path of userfiles folder/&#8217; ; // like home/htdocs/..</p>
<p>Using above step, your image upload problem and Image display problem will be solved. I have already faced these problems and also solved this problems.</p>
<p>If you have any suggestion or any query the feel free to comment on this.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/07/image-uploaddisplay-problem-in-fck-editor-solution/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Send mail from your localhost</title>
		<link>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/</link>
		<comments>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 18:44:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[MAil from localhost]]></category>
		<category><![CDATA[SMTP mail]]></category>

		<guid isPermaLink="false">http://www.phpgenious.com/?p=434</guid>
		<description><![CDATA[Hello Friends !! When you developing your site then you are facing a problem that how to send mail from your local host ? Because when you are testing your [...]]]></description>
				<content:encoded><![CDATA[<p>Hello Friends !!</p>
<p>When you developing your site then you are facing a problem that how to send mail from your local host ?</p>
<p>Because when you are testing your project/site in localhost then this problem occurred. At that time you think about upload your site on server.</p>
<p>If you don&#8217;t want this type of uploading work and you want to test your mail form your localhost then here is the solution.<span id="more-434"></span><br />
<!--adsense#link--><br />
First of all open your <strong>xamp</strong> or <strong>wamp</strong> installed directory.<br />
Then open php directory and find <strong>php.ini.</strong></p>
<p><strong> </strong>Then open this php.ini in notepad and find <strong>[mail function] </strong>in that file.</p>
<p>When you find it, remove semi colon before <strong>SMTP,smtp_port</strong> and <strong>sendmail_from.</strong></p>
<p>Set this parameters like this :</p>
<p><strong>SMTP=mail.test.com  //it indicates mail server</strong></p>
<p><strong>smtp_port=25            // it indicates port address</strong></p>
<p><strong>sendmail_from=test@test.com   // it indicates mail id from which you want to send mail</strong></p>
<p>After this, please stop you xamp/wamp services, do refresh and start it again.</p>
<p>Thats it.. Now you can send mail from your localhost..</p>
<p>If you have any query or any confusion then feel free to comment me.</p>
<p>Thanks !!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpgenious.com/2010/07/send-mail-from-your-localhost/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss><!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
