<?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/" xmlns:series="http://unfoldingneurons.com/" ><channel><title>Ruhani Rabin &#187; PHP</title> <atom:link href="http://www.ruhanirabin.com/category/development/php/feed/" rel="self" type="application/rss+xml" /><link>http://www.ruhanirabin.com</link> <description>Tech, Life and Thoughts</description> <lastBuildDate>Thu, 29 Jul 2010 09:11:44 +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>How to &#8211; Add Facebook LIKE button to WordPress Posts</title><link>http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/</link> <comments>http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/#comments</comments> <pubDate>Thu, 22 Apr 2010 06:40:40 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Articles]]></category> <category><![CDATA[code]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[social networking]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=1614</guid> <description><![CDATA[Facebook does made it pretty easy to Implement the "Like" button code on your site. How about a blog Post? This is where you will need this "hack" to make it work!<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.9" /></div><div>Rating: 8.9/<strong>10</strong> (100 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/integrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria/' rel='bookmark' title='Permanent Link: Integrate social networking in wordpress using facebook connect api and WordPress plugin tutorial'>Integrate social networking in wordpress using facebook connect api and WordPress plugin tutorial</a></li><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/how-to-add-a-twitthis-button-with-tinyurl-or-bitly-api/' rel='bookmark' title='Permanent Link: How to add a tweet this button with auto TinyURL or Bit.ly shortening'>How to add a tweet this button with auto TinyURL or Bit.ly shortening</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fhow-to-add-facebook-like-button-to-wordpress-posts%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F9CLDD0%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20-%20Add%20Facebook%20LIKE%20button%20to%20WordPress%20Posts%22%20%7D);"></div><p><img src="http://www.ruhanirabin.com/userfiles/2010/04/facebook_like1.jpg" alt="" title="Facebook LIKE button" width="554" height="125" class="alignnone size-full wp-image-1620" /><br /> Facebook introduced more social interactions with their new &#8220;<strong>Like</strong>&#8221; or &#8220;<strong>Recommend</strong>&#8221; Button. This <a href="http://developers.facebook.com/docs/reference/plugins/like" target="_blank">Facebook button</a> enables the user to interact with a site or page. Additionally share it with his/her friends at their own Facebook profile.</p><p>Well, Facebook does made it pretty easy to Implement the &#8220;Like&#8221; button code on your site. The complexity comes when it is not a single page website. How about a blog Post? This is where you will need this hack to make it work!<br /> <span id="more-1614"></span><br /> Do not use the code provided by Facebook because that will not work on Blog posts. Here is the hacked code designed for WordPress!</p><p>Open up your <strong>single.php</strong> and look for <strong>the_content()</strong>. Paste the code you see below&#8230; either before or after <strong>the_content()</strong>..</p><div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">// start of fb like code<br /> <br /> &lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;amp;layout=standard&amp;amp;show_faces=false&amp;amp;width=450&amp;amp;action=like&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; overflow:hidden; width:450px; height:60px&quot;&gt;&lt;/iframe&gt;<br /> <br /> // end of fb like code<br /> <br /> &lt;?php the_content(); ?&gt;</div></td></tr></tbody></table></div><h3>Optional Settings:</h3><p>If you like to show the faces of your friends, change the part &#8220;<strong>show_faces=fals</strong>e&#8221; to &#8220;<strong>show_faces=true</strong>&#8221;</p><p>If you like to show the label of the button as &#8220;<strong>Recommend</strong>&#8220;, change the part of the code &#8220;<strong>action=like</strong>&#8221; to &#8220;<strong>action=recommend</strong>&#8221;</p><p>I hope this will help you to implement the &#8220;Like&#8221; button on your WordPress Posts! Have fun and drop me a line at <a href="http://twitter.com/ruhanirabin">twitter</a> or you can click on the &#8220;<strong>Like</strong>&#8221; button on the top of this post <img src='http://www.ruhanirabin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><h3>Resources (Plugins for WordPress):</h3><p>Thanks to my Readers <img src='http://www.ruhanirabin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><ul><li><strong><a href="http://wordpress.org/extend/plugins/like">Facebook Like plugin</a> including support for Open Graph (XFBML)</strong></li><li><a href="http://blog.gunnjerkens.com/2010/04/facebook-like-plugin-for-wordpress/" target="_blank"><strong>Facebook Like Plugin from Smoking Gunn</strong></a> (<a href="http://blog.steffanantonas.com/how-to-get-a-facebook-like-button-for-your-wordpress-blog-plugin.htm" target="_blank">Features Live Preview, Thanks Stefan</a> to introduce that).<li>Alternatively &#8230; <a href="http://www.kouguu.net/?p=1" target="_blank"><strong>Kouguu FB Like WordPress Plugin</strong></a> with Configurable Admin Screen</li><p> Those who doesn&#8217;t want to do code hacking, this one is for them <img src='http://www.ruhanirabin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></li><li>This is how to <strong><a href="http://thewellrunsite.com/2010/04/22/adding-a-facebook-like-button-thesis/" target="_blank">Implement in Thesis WordPress theme</a></strong></li></ul><p>And.. I&#8217;m spent&#8230;</p><p>Don&#8217;t forget to rate the post too!</p><p>_</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.9" /></div><div>Rating: 8.9/<strong>10</strong> (100 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/integrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria/' rel='bookmark' title='Permanent Link: Integrate social networking in wordpress using facebook connect api and WordPress plugin tutorial'>Integrate social networking in wordpress using facebook connect api and WordPress plugin tutorial</a></li><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/how-to-add-a-twitthis-button-with-tinyurl-or-bitly-api/' rel='bookmark' title='Permanent Link: How to add a tweet this button with auto TinyURL or Bit.ly shortening'>How to add a tweet this button with auto TinyURL or Bit.ly shortening</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/feed/</wfw:commentRss> <slash:comments>139</slash:comments> </item> <item><title>Alternative Free but Useful PHP Forums and Discussion Boards</title><link>http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/</link> <comments>http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/#comments</comments> <pubDate>Mon, 06 Jul 2009 17:29:13 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[alternative]]></category> <category><![CDATA[discussion boards]]></category> <category><![CDATA[forum]]></category> <category><![CDATA[free]]></category> <category><![CDATA[open source]]></category> <category><![CDATA[scripts]]></category> <category><![CDATA[useful]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/</guid> <description><![CDATA[Few of the Most popular PHP driven forums are PHPBB, Invision Board and VBulletin. But today I'm not here to talk about those popular packages; I'm here to list out the possible alternative quality PHP forums available around the globe.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (2 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/' rel='bookmark' title='Permanent Link: Elegant Useful and Free PHP Graph/Chart Libraries'>Elegant Useful and Free PHP Graph/Chart Libraries</a></li><li><a href='http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/' rel='bookmark' title='Permanent Link: Free but Useful PHP Form Processor Scripts'>Free but Useful PHP Form Processor Scripts</a></li><li><a href='http://www.ruhanirabin.com/best-windows-freeware-databases/' rel='bookmark' title='Permanent Link: Best Windows Freeware &#8211; Databases'>Best Windows Freeware &#8211; Databases</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Falternative-free-useful-php-forums-and-discussion-boards%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Alternative%20Free%20but%20Useful%20PHP%20Forums%20and%20Discussion%20Boards%22%20%7D);"></div><p><img height="227" alt="php forum fuzzylimeboard" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-fuzzylimeboard-1.jpg" width="450" /></p><p>What is a forum? Early Internet forums could be described as a web version of a newsgroup or electronic mailing list (many of which were commonly called Usenet) ; allowing people to post messages and comment on other messages. Later developments emulated the different newsgroups or individual lists, providing more than one forum, dedicated to a particular topic.</p><p>Forums perform a function similar to that of dial-up bulletin board systems and Usenet networks that were common from the late 1970s to the 1990s. Early web-based forums date back as far as 1996. A sense of virtual community often develops around forums that have regular users. Technology, computer games and/or video games, sports, music, fashion, religion, and politics are popular areas for forum themes, but there are forums for a huge number of topics. Internet slang and image macros popular across the Internet are abundant and widely used in Internet forums.</p><p>Few of the Most popular PHP driven forums are PHPBB, Invision Board and VBulletin. But today I&#8217;m not here to talk about those popular packages; I&#8217;m here to list out the possible alternative quality PHP forums available around the globe.<span id="more-1074"></span><br /><h3>bbPress</h3><p><img height="339" alt="php forum bbpress" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-bbpress.jpg" width="450" /></p><p>bbPress is forum software with a twist from the creators of WordPress.</p><p>Have you ever been frustrated with forum or bulletin board software that was slow, bloated and always got your server hacked?</p><p>bbPress is focused on web standards, ease of use, ease of integration, and speed. We&rsquo;re keeping things as small and light as possible while still allowing for great add on features through our extensive plugin system.</p><p>What does all that mean? bbPress is lean, mean and ready to take on any job you throw at it.</p><p><a href="http://bbpress.org/download/" target="_blank">Download</a> | <a href="http://bbpress.org/plugins/" target="_blank">Extend</a> | <a href="http://bbpress.org/forums/" target="_blank">Forum</a> | <a href="http://bbpress.org/about/examples/" target="_blank">Examples</a> | <a href="http://bbpress.org/documentation/" target="_blank">Documentation</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>Simple Machines Forum (SMF)</h3><p><img height="245" alt="php forum simplemachines" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-simplemachines.jpg" width="450" /> &nbsp;</p><p>Simple Machines Forum &mdash; SMF in short &mdash; is a free, professional grade software package that allows you to set up your own online community within minutes.</p><p>Its powerful custom made template engine puts you in full control of the lay-out of your message board and with our unique SSI &#8211; or Server Side Includes &#8211; function you can let your forum and your website interact with each other.</p><p>SMF is written in the popular language PHP and uses a MySQL database. It is designed to provide you with all the features you need from a bulletin board while having an absolute minimal impact on the resources of the server. SMF is the next generation of forum software &#8211; and best of all it is and will always remain completely free!</p><p><a href="http://download.simplemachines.org/" target="_blank">Download</a> | <a href="http://www.simplemachines.org/community/index.php" target="_blank">Demo</a> | <a href="http://docs.simplemachines.org/" target="_blank">Documents</a> | <a href="http://custom.simplemachines.org/" target="_blank">Customize</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>Phorum</h3><p><img height="258" alt="php forum phorum" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-phorum.jpg" width="450" /> &nbsp;</p><p>Started in 1998, Phorum was the original PHP and MySQL based Open Source forum software. Phorum&#8217;s developers pride themselves on creating message board software that is designed to meet different needs of different web sites while not sacrificing performance or features.</p><p><a href="http://www.phorum.org/downloads.php" target="_blank">Download</a> | <a href="http://www.phorum.org/demo/" target="_blank">Demo</a> | <a href="http://www.phorum.org/phorum5/index.php" target="_blank">Community</a> | <a href="http://www.phorum.org/docs/html/" target="_blank">Docs</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>The Ultimate PHP Board (MyUPB)</h3><p><img height="254" alt="php forum myupb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-myupb.jpg" width="450" /> &nbsp;</p><p>Your ultimate and free bulletin board resource. MyUPB is a flat file bulletin board powered by TextDB engine so it doesn&#8217;t require MySQL Database to run.</p><p><a href="https://sourceforge.net/projects/textmb/" target="_blank">Download</a> | <a href="http://forum.myupb.com/" target="_blank">Demo</a> | <a href="http://forum.myupb.com/" target="_blank">Community</a> | <a href="http://www.myupb.com/wiki" target="_blank">Docs</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>W-Agora Board</h3><p><img height="327" alt="php forum wagora" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-wagora.jpg" width="450" /> &nbsp;</p><p>w-agora is Opens In a New Window open source software, you can download, install and even freely modify the code, all free of charge</p><p>Versatile: w-agora is one of the most customizable forum packages. Designed to be adapted to various needs, w-agora offers an evolutive solution that will meet various needs</p><p>Easy: to install and easy to use: All you need is a simple WEB browser and 5 spare minutes in order to install. The whole interface can be edited with a simple WEB browser</p><p>Full featured: w-agora has all the features that you expect from a today&#8217;s professional forum software: full WEB based administration, users management, authentication, Online registration, email subscription and much more</p><p>Reliable : For more than 5 years, w-agora has been used by a wide and continuously increasing number of sites in France and all over the world.</p><p><a href="http://www.w-agora.net/en/download.php" target="_blank">Download</a> | <a href="http://www.w-agora.net/en/references.php" target="_blank">Docs</a> | <a href="http://www.w-agora.net/en/demos.php" target="_blank">Demo</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>XMB Forum</h3><p>&nbsp;</p><p><img height="306" alt="php forum xmb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-xmb.jpg" width="450" /></p><p>XMB is a lightweight PHP forum software with all the features you need to support a growing community. With outstanding community support and contribution, you will find XMB to be easy to setup, customize, and enhance.</p><p>Though XMB is lightweight out of the box, it offers the key features you need to get your message board up and running</p><p>&nbsp;</p><ul><li>Forum Organization with Categories, Forums &amp; Sub-Forums</li><li>Easy to use Member Management</li><li>Anti-spam image verification for registration and anonymous posting</li><li>U2U Private Messaging</li><li>Inline Mass Moderation</li><li>Easy-to-use Theming Interface</li><li>Board Rules &amp; FAQ System</li></ul><p><a href="http://www.xmbforum.com/download/" target="_blank">Download</a>| <a href="http://forums.xmbforum.com/forumdisplay.php?fid=428" target="_blank">Mods</a> | <a href="http://forums.xmbforum.com/forumdisplay.php?fid=348" target="_blank">Themes</a> | <a href="http://www.xmbforum.com/docs" target="_blank">Docs</a> | <a href="http://forums.xmbforum.com/" target="_blank">Demo</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>PunBB</h3><p><img height="272" alt="php forum punbb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-punbb.jpg" width="450" /> &nbsp;</p><p>PunBB is a fast and lightweight PHP-powered discussion board. It is released under the GNU General Public License. Its primary goals are to be faster, smaller and less graphically intensive as compared to other discussion boards. PunBB has fewer features than many other discussion boards, but is generally faster and outputs smaller, semantically correct XHTML-compliant pages. PunBB is written in PHP and thus requires the PHP: Hypertext Preprocessor. PunBB also requires a database in which all forum data is stored. For that purpose PunBB supports MySQL, PostgreSQL and SQLite.</p><p>Developing software to &#8220;please the masses&#8221; isn&#8217;t difficult. Just cram in every possible feature you can think of and most people will love it. Some people, however, will hate it and look for alternatives. The problem with developing for that other group of people is having to make decisions on whether to implement a feature or not. What is a &#8220;must-have&#8221; and what is not?</p><p>Some features that I have so far chosen not to implement are: private messaging, file attachments, polls, linking to off-site avatars, advanced text formatting controls, subforums etc etc. The jury is still out on some of these features, but don&#8217;t expect them to pop up anytime soon. It should however be noted that most, if not all of these features have been realized in the form of third-party mods.</p><p><a href="http://punbb.informer.com/downloads.php" target="_blank">Download</a> | <a href="http://punbb.informer.com/forums/" target="_blank">Demo</a> | <a href="http://punbb.informer.com/wiki/start" target="_blank">Docs</a> | <a href="http://punbb.informer.com/extensions/" target="_blank">Extensions</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>miniBB</h3><p><img height="297" alt="php forum minibb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-minibb.jpg" width="450" /> &nbsp;</p><p>miniBB is a software for building Your own forum, but not from &#8220;yet another&#8221; series. It&#8217;s designed with purpose to make a unique forum, which will be different from others by many aspects. It&#8217;s the first forum software of choice, which makes possible to save on hosting expenses, computer resources, forum moderation time, and visibly increase forum traffic speed, still running a fully functional script. The secret is that You choose and decide on every option and function available for Your forum. You is the key to your forum success, and miniBB tries to bring up your hidden abilities in this aspect, providing an ultra-optimized handmade programming code and carefully thought interfaces.</p><p><a href="http://www.minibb.com/features.html" target="_blank">Features</a> | <a href="http://www.minibb.com/download.html" target="_blank">Download</a> | <a href="http://www.minibb.com/forums/manual.html" target="_blank">Manual</a> | <a href="http://minibbtest.virtualis.lv/" target="_blank">Demo</a> | <a href="http://www.minibb.com/forums/index.html" target="_blank">Community</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>freeForum</h3><p><img height="263" alt="php forum freeforum" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-freeforum.jpg" width="450" /> &nbsp;</p><p>Not everyone needs a full featured bulletin board such as phpBB. freeForum is a GPL, free, and simple discussion board script which can be fully integrated with your existing page layout. It concentrates on the main features of typical forum scripts, and does it well. Above all, you&#8217;ll need less than 3 minutes to get it working!</p><p>Freedom</p><p>&nbsp;</p><ul><li>Post: you are free to post in open categories.</li><li>Categories: unlimited number of categories.</li><li>Layout: layout is fully template and css based, feel free to change it.</li><li>Cost: as in beer, it&#8217;s licensed under the GPL.</li></ul><p>Simple</p><p>&nbsp;</p><p>&nbsp;</p><ul><li>No image, no avatar, no smilies.</li><li>No useless statistics.</li><li>CSS and template based.</li></ul><p>Administration</p><p>&nbsp;</p><p>&nbsp;</p><ul><li>Backup and restore functions.</li><li>Anti-spam: captcha images, smart forms, IP banning, flood protection.</li><li>Open and closed categories.</li><li>Reserved user names.</li><li>Edit previous posts.</li></ul><p><a href="http://soft.zoneo.net/freeForum/Files/index.php" target="_blank">Download</a>| <a href="http://soft.zoneo.net/freeForum/use.php" target="_blank">Usage</a> | <a href="http://soft.zoneo.net/freeForum/forum.php" target="_blank">Community</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>MyBB</h3><p><img height="241" alt="php forum mybb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-mybb.jpg" width="450" /> &nbsp;</p><p>MyBB is a discussion board that has been around for a while; it has evolved from other bulletin boards into the forum package it is today. Therefore, it is a professional and efficient discussion board, developed by an active team of developers. The MyBB history has been recorded and is available for the interested to read. You can also read more about the MyBB team and why they develop MyBB in their spare time. We also like to highlight the most active and contributing fansites of the MyBB community.</p><p>Security<br /> MyBB puts your board&#8217;s security first. Extensive measures have been put in place to guarantee MyBB&#8217;s security on your web server. We&#8217;ve performed security audits and rewritten code to make sure that no vulnerabilities are left unpatched in MyBB. In the off chance that a vulnerability is found, you can be confident that we&#8217;re already preparing a patch for immediate release.</p><p>Speed<br /> So fast you&#8217;ll have to chase it. MyBB has been optimized to be speedy on any occasion; be it a large or small forum. Whenever we make a change to the core workings of MyBB, we first ensure that it will not cause a disturbance in the speed of your board. Several features have been rewritten to be optimized for larger boards while still working on smaller boards. Regardless of whether your forum is big or small, you can be guaranteed MyBB will provide you with the speed you need to get your forum running.</p><p>AJAX<br /> MyBB makes use of AJAX to enhance its features. MyBB uses AJAX technology throughout to make its features quicker and easier to use. In MyBB 1.2, inline editing was added to allow for faster editing of posts from the thread page and thread titles from the forum page, and keeps you from having to load an entire page to make one small edit. In addition, auto completion was added to private messages to make finding the user you want to write to easier. MyBB 1.4 added still more AJAX-based features, such as an updated quick reply, the ability to mark a forum as read, an updated buddy/ignore list manager, an updated thread rating system, and the ability to select PM recipients from your buddy list. Even the Admin CP utilizes some AJAX, such as in the settings search and the theme manager. In all of its uses, AJAX refines the user interface and makes MyBB even easier to use.</p><p>Inline Moderation<br /> MyBB&#8217;s inline moderation makes management easier. Inline moderation can be found throughout MyBB&#8217;s forum and thread pages to make mass moderation a breeze. Inline moderation allows you to perform the same moderation task on multiple threads or posts, or just one. You can even create your own moderation tools using MyBB&#8217;s custom mod tools. Inline moderation is just the beginning of the extensive moderation systems you&#8217;ll find in MyBB.</p><p>Permissions<br /> Extensive permissions allow for complete control. MyBB features a vast set of tools for thorough control of your users&#8217; access to various parts of the board. Every user group has a large set of permissions for various features in the board, as well as varying permissions to each forum. With MyBB, you can control every level of user with ease, and can easily block access to any part of your board to some groups, while leaving it available for others.</p><p><a href="http://www.mybboard.net/downloads" target="_blank">Download</a> | <a href="http://wiki.mybboard.net/" target="_blank">Wiki</a> | <a href="http://wiki.mybboard.net/" target="_blank">Mods</a> | <a href="http://community.mybboard.net/" target="_blank">Community</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>ImperialBB</h3><p><img height="279" alt="php forum imperialbb" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-imperialbb.jpg" width="450" /> &nbsp;</p><p>ImperialBB is a free PHP/MySQL driven forum software package which is fully featured and highly customizable. It is compatible with all webserver / operating system setups providing PHP 4.x or higher is installed. It also benefits from a unique one click upgrader and mod installer to cut down the time you have to spend installing mods on your system and ensures that you keep it up to date.</p><p>Our forum software package allows you to quickly and easily create categories, forums and sub-forums, manage users / ranks / usergroups / smilies on your community through the powerful administration panel.</p><p><a href="http://www.imperialbb.com/download.php" target="_blank">Download</a> | <a href="http://www.imperialbb.com/mods/index.php" target="_blank">Mods</a> | <a href="http://www.imperialbb.com/styles/index.php" target="_blank">Styles</a> | <a href="http://www.imperialbb.com/forums/index.php" target="_blank">Community</a> | <a href="http://blog.imperialbb.com/" target="_blank">Blog</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>Electron AEF</h3><p><img height="180" alt="php forum aef" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-aef.jpg" width="450" /> &nbsp;</p><p>The full name of AEF is Advanced Electron Forum. This bulletin board software is free software. It is written in PHP and MySQL. AEF has a very simple and easy to use Administration Panel and installing this software is a piece of cake! You can install new themes, customize themes the way you want. The User Control Panel has a simple yet beautiful interface where users can set their preferences for the board.</p><p>This Bulletin board or forum software has all the general features that a forum software should have. It also includes features such as :</p><p>&nbsp;</p><ul><li>UTF-8 Supported</li><li>Search Engine Optimization Tools</li><li>IP Ban</li><li>W3C Validated</li><li>News System with articles</li><li>ShoutBox</li><li>Threaded Mode for topics</li><li>JS DOCK for easy navigation(A first from AEF)</li><li>WYSIWYG Editors</li><li>Customizable Themes</li><li>Multiple Languages supported</li><li>Time Zone Adjustment</li><li>Automatic Updates</li><li>Export Files and Database</li><li>Suggest Framework for usernames while writing PM&#8217;s</li><li>Domdrag for reordering Categories, Forums, emoticons (A new feature included for the first time ever in a forum software.)</li></ul><p><a href="http://www.anelectron.com/downloads/" target="_blank">Download</a>| <a href="http://www.anelectron.com/docs" target="_blank">Docs</a> | <a href="http://www.anelectron.com/themes" target="_blank">Themes</a> | <a href="http://www.anelectron.com/board" target="_blank">Community</a></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h3>GBX</h3><p><img height="295" alt="php forum gbx" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-gbx.jpg" width="450" /> &nbsp;</p><p>Gravity Board X is free forum software written in PHP and MySQL. GBX features a unique front page layout, and version 2.0 will push the envelope with features such as a CSS-based layout, WYSIWYG message editor and AJAX framework.</p><p><a href="http://www.gravityboardx.com/?action=download" target="_blank">Download</a> | <a href="http://www.gravityboardx.com/?action=readme" target="_blank">Docs</a> | <a href="http://www.gravityboardx.com/community" target="_blank">Demo</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>fuzzyLime Forum</h3><p><img height="322" alt="php forum fuzzylimeboard" src="http://www.ruhanirabin.com/userfiles/2009/07/php-forum-fuzzylimeboard.jpg" width="450" /> &nbsp;</p><p>Want a forum on your site, but don&#8217;t want to have to spend ages setting it up &#8211; and want it to look different from all those other ones?</p><p>fuzzylime (forum) is for you. We&#8217;ve ignored the traditional look of a forum and gone for something altogether more modern. It looks &#8211; and works &#8211; like your favorite e-mail program. New messages even appear while you&#8217;re surfing!</p><p>It uses all sorts of clever technology to do this &#8211; but don&#8217;t worry, we&#8217;ve made sure that if your visitors can&#8217;t use this for some reason, they can still see everything on your site through a traditional forum-style layout.</p><p>For the more technically minded, the script is written in PHP and uses a MySQL database to store posts, user info etc. It also relies heavily on JavaScript, particularly Ajax, to update pages automatically and provide some of the cool effects like the option of dragging boxes around the page.</p><p>But as long as your server as PHP and MySQL installed (and most of them do), you should be able to get things up and running within minutes. Then, it&#8217;s easy to customize your forum with your own logo (if you wish) as well as choosing from a whole range of color schemes that are built-in to make sure your forum suits the look of the rest of your site.</p><p><a href="http://forum.fuzzylime.co.uk/st/content/download/" target="_blank">Download</a> | <a href="http://forum.fuzzylime.co.uk/st/gallery/1181662282/" target="_blank">Screenshots</a> | <a href="http://www.fuzzylime.co.uk/board/" target="_blank">Forums</a></p><p>These are few of the alternatives to popular forum software like PHPBB or Invision Board. There are many out there but some of these are pretty much faster than the popular ones used by everyone. Do you know of any other useful PHP Forums that you&#8217;ve used. Feel free to comment about it. Share your thoughts if you had any problems or drawbacks of these products. You can find me on twitter <a href="http://twitter.com/ruhanirabin" target="_blank">@ruhanirabin</a> if you want to let me know of any other scripts too.</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=10.0" /></div><div>Rating: 10.0/<strong>10</strong> (2 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/' rel='bookmark' title='Permanent Link: Elegant Useful and Free PHP Graph/Chart Libraries'>Elegant Useful and Free PHP Graph/Chart Libraries</a></li><li><a href='http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/' rel='bookmark' title='Permanent Link: Free but Useful PHP Form Processor Scripts'>Free but Useful PHP Form Processor Scripts</a></li><li><a href='http://www.ruhanirabin.com/best-windows-freeware-databases/' rel='bookmark' title='Permanent Link: Best Windows Freeware &#8211; Databases'>Best Windows Freeware &#8211; Databases</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>Free but Useful PHP Form Processor Scripts</title><link>http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/</link> <comments>http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/#comments</comments> <pubDate>Sun, 05 Jul 2009 19:11:41 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[code]]></category> <category><![CDATA[form]]></category> <category><![CDATA[free]]></category> <category><![CDATA[processor]]></category> <category><![CDATA[scripts]]></category> <category><![CDATA[useful]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/</guid> <description><![CDATA[Forms are one of the most common features for almost any website. It provides a secure communication or feedback from the end user to the sites owner. Having said that, forms often allows security breaches to a website so it is advisable to use secured forms processing systems. I hope that this post will help you out searching for PHP based form processors.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=9.0" /></div><div>Rating: 9.0/<strong>10</strong> (13 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/' rel='bookmark' title='Permanent Link: Alternative Free but Useful PHP Forums and Discussion Boards'>Alternative Free but Useful PHP Forums and Discussion Boards</a></li><li><a href='http://www.ruhanirabin.com/useful-free-css-tools-and-services/' rel='bookmark' title='Permanent Link: 10 Useful free CSS tools and services'>10 Useful free CSS tools and services</a></li><li><a href='http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/' rel='bookmark' title='Permanent Link: Elegant Useful and Free PHP Graph/Chart Libraries'>Elegant Useful and Free PHP Graph/Chart Libraries</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Ffree-useful-php-form-processor-scripts%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Free%20but%20Useful%20PHP%20Form%20Processor%20Scripts%22%20%7D);"></div><p><img height="155" alt="php form ajax form builder" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-ajax-form-builder-1.jpg" width="450" /></p><p>Forms are one of the most common features for almost any website. It provides a secure communication or feedback from the end user to the sites owner. Having said that, forms often allows security breaches to a website so it is advisable to use secured forms processing systems. I hope that this post will help you out searching for PHP based form processors.<span id="more-1052"></span><br /><h3>PHP Contact Form</h3><p><img height="397" alt="php form contact form" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-contact-form.jpg" width="450" /></p><ul><li>Spam protection: users are required to enter security code (captcha).</li><li>The script checks that all form fields are filled and that e-mail address has correct form.</li></ul><p><a href="http://www.php-development.ru/php-scripts/contact-form.php" target="_blank">Information and Download</a></p><p>&nbsp;</p><h3>Secure PHP Mail Form</h3><p>Free PHP Mail Form is a single-page multi-use PHP mail (e-mail) website form that allows your users to send you feedback directly from your website, without the need to customize heavily detailed scripts and panic over security.</p><p>Features:</p><ul><li>Meta header and JavaScript injection protection</li><li>Tags stripped and whitespace trimmed</li><li>Validity and length checking on name and e-mail fields</li><li>IP and browser details included in e-mail</li><li>Valid data displayed when other errors occur</li><li>Spam word check</li><li>Common spam bot blocking</li><li>New in v2: Bayesian style spam filtering</li></ul><p><a href="http://www.jemjabella.co.uk/scripts/free-php-mail-form" target="_blank">Usage Instructions and Download</a></p><p>&nbsp;</p><h3>Form Tools</h3><p><img height="285" alt="php form form tools" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-form-tools.jpg" width="450" /></p><p>Form Tools is written for web developers who work on online registration sites, or sites that require any form of information gathering from their online visitors. Put simply, it is a form processor, storage and data access script written in PHP and MySQL, designed to work with any existing web form. With a few minor changes to your form, you can stop using old-fashioned form-mail scripts and instead store form submissions in a database, instantly providing your clients with a user-friendly interface to manage their form submissions, include options such as mass data export via excel, printer-friendly pages, data sorting, form submission editing and optional email notifications.</p><p><a href="http://www.formtools.org/demo/" target="_blank">Demo</a> | <a href="http://www.formtools.org/download.php" target="_blank">Download</a> | <a href="http://www.formtools.org/documentation.php" target="_blank">Documentation</a> | <a href="http://www.formtools.org/translations/" target="_blank">Translations</a></p><p>&nbsp;</p><h3>phpFormGenerator Beta</h3><p><img height="258" alt="php form phpFormGenerator" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-phpformgenerator.jpg" width="450" /></p><p>phpFormGenerator is a an easy, online tool for creating reliable, efficient, and aesthetically pleasing web forms in a snap. No programming of any sort is required: phpFormGenerator generates the HTML code, the form processor code (PHP), and the field validation code automatically via an easy, point-and-click interface.</p><p>phpFormGenerator provides several delivery formats. You can choose to have your form results delivered via email, sent to a MySQL database, and written to a data file (which you can then open in Excel and other programs)</p><p>features in phpFormGenerator 3.0:</p><ul><li>Simple, intuitive, point-and-click interface</li><li>Forms can have multiple pages</li><li>Add and remove fields dynamically &#8211; without switching pages</li><li>Customize look and feel of your form</li><li>Add pre-populated fields: country, state (U.S.)</li><li>Add non-invasive tooltips to help your users</li><li>Add and remove fields dynamically &#8211; on the same page</li><li>New fields with live validation: date (with pop-up calendar), email</li><li>Add pre-populated fields: country, state (U.S.)</li></ul><p><a href="http://phpformgen.sourceforge.net/new_demo/phpformgen/" target="_blank">Start building</a></p><p>&nbsp;</p><h3>Tectite FormMail</h3><p><img height="110" alt="php form tectiteformmail" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-tectiteformmail.jpg" width="450" /></p><p>FormMail provides the logic required to accept form submissions on your website and email the results to you (and do other things too!).</p><p>Features:</p><ul><li>send you their results by email (supports any number of email recipients)</li><li>store their results in a CSV (comma separated values) database on your server</li><li>create a log file entry of activity on your server</li><li>use obfuscated email addresses to prevent SpamBots from harvesting your email addresses</li><li>accept no spam; FormMail blocks spam through automatic attack detection tests as well as optional image verification (CAPTCHA) features. Tectite&#8217;s form processor is a complete anti-spam solution.</li><li>encrypt their results before they are emailed to you (ideal for securely collecting credit card data)</li><li>redirect to a specific URL on success (e.g. allow a user to download software after filling in a form)</li><li>redirect to a specific URL on failure (customized error page)</li><li>alert you of failures</li><li>work as simple email gateways &#8211; just create a form with one non-special field (usually a textarea field) and formmail.php will format the email appropriately</li><li>use GET or POST methods for form submission</li><li>send HTML emails formatted with your form results</li><li>upload files</li><li>perform advanced field validations</li><li>perform advanced error handling</li><li>send an autoresponse to the person submitting your form</li><li>support for other human languages (internationalization)</li><li>GeoIP support</li></ul><p><a href="http://www.tectite.com/formmail.zip" target="_blank">Download</a> | <a href="http://www.tectite.com/fmdoc/index.php" target="_blank">Documentation</a> | <a href="http://www.tectite.com/fmdoc/creating_forms.php" target="_blank">Instructions</a> | <a href="http://www.tectite.com/vbforums/faq.php" target="_blank">FAQ</a> | <a href="http://www.tectite.com/fmhowto/guides.php" target="_blank">How to Guides</a></p><p>&nbsp;</p><h3>Ajax Form Builder</h3><p><img height="308" alt="php form ajax form builder" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-ajax-form-builder.jpg" width="450" /></p><p>It is a PHP &amp; Mysql Based WYSWYG Form Builder powered by Jquery . It makes you create a  ready-to-go Online Contact Us From, Online Quiz/Survey, Customer Satisfaction Survey, Job Application, Bug Tracker &#8230; in minutes, just move/click your mouse to build incredible online forms without any knowledge of programming.</p><p><a href="http://www.phpletter.com/download_project_version.php?version_id=27" target="_blank">Download</a> | <a href="http://www.phpletter.com/Our-Projects/Ajax-Form-Builder-Project/" target="_blank">Instructions</a></p><p>&nbsp;</p><h3>MailCode</h3><p><img height="400" alt="php form mailcode" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-mailcode.jpg" width="450" /></p><p>Mailcode is a simple feedback form system, designed with the novice web designer in mind. It utilizes CAPTCHA technology to prevent spam submission, validates email address structure, and validates form fields to ensure all requested information is provided.</p><p>Mailcode is expandable, allowing you to include your own form fields without editing the complicated source code. Simply add your fields to the basic HTML form and the mail handler will interpret them. Edit the HTML form to match your website layout.</p><p>To start using the system, simply upload and configure the script, and add one line of code to your webpage.</p><p><a href="http://www.myphpscripts.net/?sid=5" target="_blank">Information and Download</a></p><p>&nbsp;</p><h3>Silentum FormSend</h3><p><img height="240" alt="php form silentum formsend" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-silentum-formsend.jpg" width="450" /></p><p>Silentum FormSend is a basic PHP mailing script which is great to use as either a &#8220;Contact Us&#8221; page, or as a feedback system for your site. Unlike a lot of other forms, this one is sent through a single PHP file. It uses a simple form to send user comments to a specified email address, and can be easily set up in a matter of minutes. It logs the IP addresses the messages are sent from to prevent abuse, and has settings as to which of the four fields to require and which to leave optional.</p><p><a href="http://hypersilence.net/silentum_formsend.php" target="_blank">Information and Download</a></p><p>&nbsp;</p><h3>FormHandler</h3><p><img height="189" alt="php form formhandler" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-formhandler.jpg" width="450" /></p><p>FormHandler is a PHP written &#8220;module&#8221; which allows you to create dynamic forms in an easy way. So easy that you can build a fully working form, including field validations, within 10 lines!</p><p>With FormHandler you can:</p><ul><li>Very easy to generate a form</li><li>Easy to save/edit data from a database</li><li>Easy to validate the values</li><li>You can use templates!</li><li>The form is generated by the XHTML 1.0 standard</li><li>Possibility to change to style of the form</li><li>Possibility to add CSS / Javascript to the fields</li><li>The size FormHandler is only +/- 256 kb (server side)! (without the FCKeditor files)</li><li>There can be generated special fields (like datefields)</li><li>It&#8217;s very easy to upload files</li><li>Possibility to generate an online text editor!</li><li>It&#8217;s completely FREE!</li></ul><p><a href="http://www.formhandler.net/download/files.html" target="_blank">Download</a> | <a href="http://www.formhandler.net/manual/manual.html" target="_blank">Manual</a></p><p>&nbsp;</p><h3>PHP FormMail Generator</h3><p><img height="182" alt="php form phpFormMailGenerator" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-phpformmailgenerator.jpg" width="450" /></p><p>PHP FormMail Generator &#8211; A tool to create ready-to-use web forms in a minutes. It&#8217;s Easy + Quick + Free</p><p>Features:</p><ul><li>Unlimited standard form fields, credit card and file upload fields</li><li>User input validation (checking required fields, credit card number and expiry date, file upload, etc..)</li><li>Send customized email to you, support attachments</li><li>Send personalized auto response email or copy to user</li><li>Save submitted form data as Excel file</li><li>Customized thank you message or redirect page</li><li>Anti email spider (Email address harvesting)</li><li>Anti-Spam using security image (CAPTCHA) and email header injection removal</li><li>Log all email traffics (to see if there are any spam activities)</li><li>Admin Panel to see and download your form data</li></ul><p><a href="http://phpfmg.sourceforge.net/generator.php" target="_blank">Start Generating</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>CJ Web2Mail</h3><p><img height="361" alt="php form cjWeb2Mail" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-cjweb2mail.jpg" width="450" /></p><p>The CJ Web2Mail is a very simple web page form to your email inbox script. The script has been improved considerably from the previous version.</p><p>V3.0 includes multipart email sending which basically means that the script sends both HTML and text emails to you (and for the auto responder). This way the receiver of the email can leave it up to their mail client to choose which one to display: Outlook Express for example, uses HTML (but you can have this turned off, therefore sending both makes sure you get it). The script comes with full data validation and a thank you page which can be customized fully.</p><p><a href="http://www.cj-design.com/dl/download/?file=20" target="_blank">Download</a> | <a href="http://www.cj-design.com/products/free_downloads/php_scripts/cjweb2mail/demo" target="_blank">Demo</a> | <a href="http://www.cj-design.com/products/free_downloads/php_scripts/cjweb2mail" target="_blank">Information</a></p><p>&nbsp;</p><h3>FormContact</h3><p><img height="220" alt="php form formContact" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-formcontact.jpg" width="450" /></p><p>The FormContact 1.1 system will allow you to handle most Form-To-Email functions required by a website. It can be set up to take all the submitted form data and convert it to a readable email format. It can be customized to send users to a &ldquo;thank you&rdquo; page once the form data has been filled out, and certain form fields can be marked as being required in order for the form to be completed.</p><p>It also has the added ability for sending an automated response to the person who fills out the form. Different responses can be used for different forms, and can even be personalized to the user, based on form fields they enter.</p><p><a href="http://www.warkensoft.com/2008/06/formcontact-11-with-php5-support/" target="_blank">Information and Download</a></p><p>&nbsp;</p><h3>TheWebHelp PHP Contact Form</h3><p><img height="277" alt="php form thewebhelp" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-thewebhelp.jpg" width="450" /></p><p>If you use a normal contact form then spammers will find a way to automatically send junk messages through that form, so you need a way to verify that the sender is an actual person and not an automated script.</p><p>A good solution for this is to use an random code that is generated by a script the code will be displayed as an image so only a person could read the image and type the number. This practice is called Captcha image validation. The image also has a noise added to avoid any existent automated scripts that could read the text from the image.</p><p>The contact form also makes sure the user filled all the form fields correctly, when all fields are completed and the text entered inside email box is an email address.</p><p><a href="http://www.thewebhelp.com/php/php_contact_form_with_image_validation/" target="_blank">Usage Instructions and Download</a></p><p>&nbsp;</p><h3>KillBot Form</h3><p><img height="321" alt="php form killbotform" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-killbotform.jpg" width="450" /></p><p>This script is intended to eliminate various types of web based robots from repeatedly filling out forms by requiring the visitor to enter some simple data (called a Turing or CAPTCHA test). Many times you may have a form (feedback, poll, guestbook, etc.) on your web site and a malicious user targets a script to automatically fill out your form until it either cripples your server, skews statistics, or floods your inbox. By requiring the visitor to read the text in an image (over 900,000,000 possible combinations) and enter that with the other data in your form, you can prevent automated scripts from repeatedly filling out your form.</p><p>Please test out the sample form below for yourself and see! If you find the image too difficult to read, simply click on the image to reload the page for a new one. KillBot can be set to be case-sensitive or case-insensitive, or it can be set to display only uppercase or only lowercase.</p><p><a href="http://www.notonebit.com/projects/killbot/" target="_blank">Download and Instructions</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>SiteMail 2.0</h3><p>Sitemail 2.0 Simple PHP based web contact form. Includes a theme for use as a stand-alone script or can be included into your own pages. Also uses error checking for blank fields or an incorrectly formatted email address.</p><p><a href="http://netcode.net/files/get/4" target="_blank">Download</a></p><p>&nbsp;</p><p>&nbsp;</p><h3>Simple PHP Form Mailer</h3><p><img height="470" alt="php form simplePHPform" src="http://www.ruhanirabin.com/userfiles/2009/07/php-form-simplephpform.jpg" width="450" /></p><p>Simple PHP Form Mailer attempts to be easy to administer, and secure, while at the same time being some what Formmailer compatible enough to not upset existing users. Thus, the outside has a Formmailer-ish flavor, but the inside is completely different.</p><p><a href="http://www.onetforum.com/formmailer/index.html" target="_blank">Download and Information</a></p><p>There are many more form processors for PHP available for free but these are the one easy to use and implement and some of them provides robust features. Do you have a PHP form processor script that you&#8217;ve used and useful? Feel free to post it in the comments. You can find me on twitter <a href="http://twitter.com/ruhanirabin" target="_blank">@ruhanirabin</a> if you want to let me know of any other scripts too. Don&#8217;t forget to share your comments.</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=9.0" /></div><div>Rating: 9.0/<strong>10</strong> (13 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/' rel='bookmark' title='Permanent Link: Alternative Free but Useful PHP Forums and Discussion Boards'>Alternative Free but Useful PHP Forums and Discussion Boards</a></li><li><a href='http://www.ruhanirabin.com/useful-free-css-tools-and-services/' rel='bookmark' title='Permanent Link: 10 Useful free CSS tools and services'>10 Useful free CSS tools and services</a></li><li><a href='http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/' rel='bookmark' title='Permanent Link: Elegant Useful and Free PHP Graph/Chart Libraries'>Elegant Useful and Free PHP Graph/Chart Libraries</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Elegant Useful and Free PHP Graph/Chart Libraries</title><link>http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/</link> <comments>http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/#comments</comments> <pubDate>Thu, 02 Jul 2009 17:35:13 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Resources]]></category> <category><![CDATA[api]]></category> <category><![CDATA[chart]]></category> <category><![CDATA[class]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[free]]></category> <category><![CDATA[google]]></category> <category><![CDATA[graph]]></category> <category><![CDATA[open source]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=1031</guid> <description><![CDATA[For various kind of reports/applications graph and charts can play a very important role. Here are some of the free and open source chart libraries that you can use into your own PHP web projects. Use these to enhance the user experience and build a rich client presentation.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.7" /></div><div>Rating: 8.7/<strong>10</strong> (27 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/best-of-the-javascript-libraries-and-frameworks/' rel='bookmark' title='Permanent Link: Best of the JavaScript Libraries and Frameworks'>Best of the JavaScript Libraries and Frameworks</a></li><li><a href='http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/' rel='bookmark' title='Permanent Link: Free but Useful PHP Form Processor Scripts'>Free but Useful PHP Form Processor Scripts</a></li><li><a href='http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/' rel='bookmark' title='Permanent Link: Alternative Free but Useful PHP Forums and Discussion Boards'>Alternative Free but Useful PHP Forums and Discussion Boards</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Felegant-useful-free-php-graph-chart-libraries%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Elegant%20Useful%20and%20Free%20PHP%20Graph%2FChart%20Libraries%22%20%7D);"></div><p><img height="101" alt="php charts" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts.jpg" width="450" /><br /> For various kind of reports/applications graph and charts can play a very important role. Here are some of the free and open source chart libraries that you can use into your own PHP web projects. Use these to enhance the user experience and build a rich client presentation.<span id="more-1031"></span><br /><h3>OpenFlash Chart 2</h3><p><img height="164" alt="php charts openflashchart" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-openflashchart-1.jpg" width="450" /><br /> <a href="http://teethgrinder.co.uk/open-flash-chart-2/" target="_blank">Home</a> | <a href="http://teethgrinder.co.uk/open-flash-chart-2/downloads.php" target="_blank">Download</a> | <a href="http://teethgrinder.co.uk/open-flash-chart-2/area-hollow.php" target="_blank">Demos</a></p><p>&nbsp;</p><h3>Charts with PHP and Google Charts API</h3><p><img height="293" alt="php charts google" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-google-1.jpg" width="450" /><br /> <a href="http://luddep.se/notebook/2008/04/13/charts-php-and-google-charts-api/" target="_blank">Usage and Download</a></p><p>&nbsp;</p><h3>XML/SWF Charts</h3><p><img height="329" alt="php charts xmlswf" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-xmlswf.jpg" width="450" /><br /> <a href="http://www.maani.us/xml_charts/index.php?menu=Introduction" target="_blank">Information</a> | <a href="http://www.maani.us/xml_charts/index.php?menu=Gallery&amp;submenu=Composite" target="_blank">Gallery</a> | <a href="http://www.maani.us/xml_charts/index.php?menu=Download" target="_blank">Download</a> | <a href="http://www.maani.us/xml_charts/index.php?menu=Tutorial" target="_blank">Tutorial</a></p><p>&nbsp;</p><h3>Max&#8217;s Chart CSS and PHP Driven</h3><p><img height="342" alt="php charts maxschart" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-maxschart.jpg" width="450" /><br /> <a href="http://www.phpf1.com/product/php-chart-script.html" target="_blank">Information</a> | <a href="http://www.phpf1.com/download.html?item=20" target="_blank">Download</a></p><p>&nbsp;</p><h3>pChart PHP Class with Cache</h3><p><img height="154" alt="php charts pchart" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-pchart.jpg" width="450" /><br /> <a href="http://pchart.sourceforge.net/" target="_blank">Information</a> | <a href="http://pchart.sourceforge.net/screenshots.php" target="_blank">Screen shots</a> | <a href="http://pchart.sourceforge.net/download.php" target="_blank">Download</a> | <a href="http://pchart.sourceforge.net/addons.php" target="_blank">Addons</a> | <a href="http://pchart.sourceforge.net/demo.php" target="_blank">Demo</a></p><p>&nbsp;</p><h3>phpGraphLIB</h3><p><img height="295" alt="php charts phpgraphlib" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-phpgraphlib.jpg" width="450" /><br /> <a href="http://www.ebrueggeman.com/phpgraphlib/index.php" target="_blank">Information</a> | <a href="http://www.ebrueggeman.com/phpgraphlib/documentation.php" target="_blank">Documentation</a> | <a href="http://www.ebrueggeman.com/phpgraphlib/downloads.php" target="_blank">Download</a> | <a href="http://www.ebrueggeman.com/phpgraphlib/examples.php" target="_blank">Examples</a></p><p>&nbsp;</p><h3>QGoogleVisualizationAPI (Render charts with Google Visualization API)</h3><p><img height="272" alt="php charts googlevis" src="http://www.ruhanirabin.com/userfiles/2009/07/php-charts-googlevis.jpg" width="450" /><br /> <a href="http://www.phpclasses.org/browse/package/4665.html QGoogleVisualizationAPI" target="_blank">Information and Download</a> | <a href="http://www.query4u.de/tests/samples/" target="_blank">Sample</a></p><p>&nbsp;</p><h3>FusionCharts Free</h3><p><img src="http://www.ruhanirabin.com/userfiles/2009/07/fusioncharts-free.jpg" alt="FusionCharts Free" title="FusionCharts Free" width="450" height="236" class="alignnone size-full wp-image-1414" /><br /> FusionCharts Free is a completely free and open-source Flash charting component. It empowers you to create animated and interactive Flash charts for your web applications, desktop applications and presentations</p><p>Some of the highlights are:</p><ul><li>22 popular charts like Column, Line, Pie, Bar, Area, Stacked, Candlestick and Funnel Chart, that look the same across all browsers</li><li>Animated and interactive charts that make your applications look wow</li><li>Works with PHP, ASP.NET, JSP, ColdFusion, Python, RoR, simple HTML pages or even PowerPoint Presentations</li><li>All the charts can pull data from any database and are AJAX enabled</li></ul><p>If the chart types and features in FusionCharts Free satiate you, then you end up spending zilch for your charting requirements.<br /> <a href="http://www.fusioncharts.com/free/" target="_blank">Information and Download</a> | <a href="http://www.fusioncharts.com/free/demos/" target="_blank">Sample Gallery</a></p><p>&nbsp;</p><p>So here we are, get these elegant and useful chart libraries and add more rich chart on your PHP web application easily.</p><p>Do you know another elegant chart library? Post a comment with it, I will append that in this list afterwards. Share your own thoughts at the comments or you can find me at twitter <a href="http://twitter.com/ruhanirabin" target="_blank">@ruhanirabin</a>, say hi or share your opinion.</p><p>&nbsp;</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.7" /></div><div>Rating: 8.7/<strong>10</strong> (27 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/best-of-the-javascript-libraries-and-frameworks/' rel='bookmark' title='Permanent Link: Best of the JavaScript Libraries and Frameworks'>Best of the JavaScript Libraries and Frameworks</a></li><li><a href='http://www.ruhanirabin.com/free-useful-php-form-processor-scripts/' rel='bookmark' title='Permanent Link: Free but Useful PHP Form Processor Scripts'>Free but Useful PHP Form Processor Scripts</a></li><li><a href='http://www.ruhanirabin.com/alternative-free-useful-php-forums-and-discussion-boards/' rel='bookmark' title='Permanent Link: Alternative Free but Useful PHP Forums and Discussion Boards'>Alternative Free but Useful PHP Forums and Discussion Boards</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/elegant-useful-free-php-graph-chart-libraries/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>PHP 5 Object Oriented Structure</title><link>http://www.ruhanirabin.com/php5-object-oriented-structure/</link> <comments>http://www.ruhanirabin.com/php5-object-oriented-structure/#comments</comments> <pubDate>Wed, 28 Jan 2009 07:15:22 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[ebook]]></category> <category><![CDATA[object oriented programming]]></category> <category><![CDATA[oop]]></category> <category><![CDATA[php 5]]></category> <category><![CDATA[presentation]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=619</guid> <description><![CDATA[Those who are still figuring out PHP 5 object oriented structures and implementation, this ebook/presentation might be a good start for them<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>10</strong> (0 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/joomla-day-malaysia-2008-highlights/' rel='bookmark' title='Permanent Link: Joomla Day Malaysia 2008 highlights'>Joomla Day Malaysia 2008 highlights</a></li><li><a href='http://www.ruhanirabin.com/php5-frameworks-including-php-ajax-link-roll/' rel='bookmark' title='Permanent Link: PHP5 Frameworks including PHP-AJAX Link Roll'>PHP5 Frameworks including PHP-AJAX Link Roll</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fphp5-object-oriented-structure%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22PHP%205%20Object%20Oriented%20Structure%22%20%7D);"></div><p><img src="http://www.ruhanirabin.com/userfiles/2009/01/rr-php5.jpg" alt="php5 stuff at RuhaniRabin.com" title="php5 stuff at RuhaniRabin.com" width="305" height="147" class="alignnone size-full wp-image-620" /><br /> Those who are still figuring out PHP 5 object oriented structures and implementation, this ebook/presentation might be a good start for them.</p><p><strong>What&#8217;s it is about OOP anyway?</strong><br /> In traditional sense most PHP developers write when their first coming into the language is called &#8220;procedural&#8221;. In this kind of code, one thing happens after another and the most exciting thing that could happen is the inclusion of another file. Functions are scattered everywhere and not organized, a library of them sometimes used to help sort out things a bit faster. There are well known limitations to this kind of programming. Procedural code tends to gets messy pretty quickly when working with large scale site. Usage of included files helps, but it doesn&#8217;t really give you a proper solution to the problem.<span id="more-619"></span></p><p>Object-oriented programming came to rescue you from all these problems. What is the &#8220;object&#8221; part means. Objects are variable types in PHP that can do all sorts of things. They can be created, destroyed, passed around from place to place all while maintaining all of their properties and methods inside. Well it might make sense to you. For a Kick start you might wanna visit <a href="http://www.php.net/oop" target="_blank">PHP.Net/oop</a>. But those already had a grasp of it enjoy the presentation below</p><p><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_719998860676868" name="doc_719998860676868" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"	height="500" width="100%"><param name="movie"	value="http://d.scribd.com/ScribdViewer.swf?document_id=17730&#038;access_key=kgxmjrl8nodx&#038;page=1&#038;version=1&#038;viewMode="><param name="quality" value="high"><param name="play" value="true"><param name="loop" value="true"><param name="scale" value="showall"><param name="wmode" value="opaque"><param name="devicefont" value="false"><param name="bgcolor" value="#ffffff"><param name="menu" value="true"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="salign" value=""><embed src="http://d.scribd.com/ScribdViewer.swf?document_id=17730&#038;access_key=kgxmjrl8nodx&#038;page=1&#038;version=1&#038;viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_719998860676868_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"></embed></object></p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=0.0" /></div><div>Rating: 0.0/<strong>10</strong> (0 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/joomla-day-malaysia-2008-highlights/' rel='bookmark' title='Permanent Link: Joomla Day Malaysia 2008 highlights'>Joomla Day Malaysia 2008 highlights</a></li><li><a href='http://www.ruhanirabin.com/php5-frameworks-including-php-ajax-link-roll/' rel='bookmark' title='Permanent Link: PHP5 Frameworks including PHP-AJAX Link Roll'>PHP5 Frameworks including PHP-AJAX Link Roll</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/php5-object-oriented-structure/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>How to style the latest post in WordPress</title><link>http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/</link> <comments>http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/#comments</comments> <pubDate>Sat, 24 Jan 2009 21:33:09 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[code]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tutorials]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=609</guid> <description><![CDATA[How to display the latest post on your blog in a different style. You will often find blogs that shows the latest post in a different color or applied different CSS tags. Basically you need to Inject some code inside wordpress post listing generation loop. The Loop is used by WordPress to display each of your posts.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.8" /></div><div>Rating: 5.8/<strong>10</strong> (11 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/' rel='bookmark' title='Permanent Link: How to display the latest post from each category using WordPress query_posts'>How to display the latest post from each category using WordPress query_posts</a></li><li><a href='http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/' rel='bookmark' title='Permanent Link: How to &#8211; Add Facebook LIKE button to WordPress Posts'>How to &#8211; Add Facebook LIKE button to WordPress Posts</a></li><li><a href='http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/' rel='bookmark' title='Permanent Link: How to use different header for categories and pages in WordPress'>How to use different header for categories and pages in WordPress</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fhow-to-style-the-latest-post-in-wordpress%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2F6msVC%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20style%20the%20latest%20post%20in%20WordPress%22%20%7D);"></div><p><img src="http://www.ruhanirabin.com/userfiles/2008/12/wordpress-tips-tricks.jpg" alt="wordpress tips tricks" title="wordpress tips tricks" width="300" height="132" class="alignnone size-full wp-image-501" /><br /> You will often find blogs that shows the latest post in a different color or applied different CSS tags. Basically you need to Inject some code inside <a href="http://codex.wordpress.org/The_Loop" target="_blank">wordpress post listing generation loop</a>. The Loop is used by WordPress to display each of your posts. Using The Loop, WordPress processes each of the posts to be displayed on the current page and formats them according to how they match specified criteria within The Loop tags. Any HTML or PHP code placed in the Loop will be repeated on each post. So we need to find the latest post and define a specific attribute to that post such as a different CSS class.<span id="more-609"></span></p><p>First of all open the index.php from the theme you are using. Search for the code</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div><p>Now after that code to the next line add this code:</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_paged<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$postclass</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$postclass</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'featured-post'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div><p>As you can see from the code above it defines <em><strong>$postclass</strong></em> as a variable and look for the latest post and assign that variable to a new name. But this is not all, you need to output that variable where your post has the CSS style assigned to it. See the example below:</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;div class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$postclass</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<br /> &nbsp; &nbsp; &lt;h3 class=&quot;title&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;</div></td></tr></tbody></table></div><p>Now you need to style your CSS file according to the class name you&#8217;ve assigned for the latest post</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.8" /></div><div>Rating: 5.8/<strong>10</strong> (11 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/' rel='bookmark' title='Permanent Link: How to display the latest post from each category using WordPress query_posts'>How to display the latest post from each category using WordPress query_posts</a></li><li><a href='http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/' rel='bookmark' title='Permanent Link: How to &#8211; Add Facebook LIKE button to WordPress Posts'>How to &#8211; Add Facebook LIKE button to WordPress Posts</a></li><li><a href='http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/' rel='bookmark' title='Permanent Link: How to use different header for categories and pages in WordPress'>How to use different header for categories and pages in WordPress</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/feed/</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>How to display the latest post from each category using WordPress query_posts</title><link>http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/</link> <comments>http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/#comments</comments> <pubDate>Thu, 18 Dec 2008 17:35:52 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[code]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tutorials]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=502</guid> <description><![CDATA[How to display a custom list of posts for wordpress blog which display the latest post from each category? Wordpress has a function to filter out the posts depending on certain criteria, the function is known as query_post. The template function query_post has several parameters that enables you to filter the posts for the Wordpress post output Loop.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=6.7" /></div><div>Rating: 6.7/<strong>10</strong> (7 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/' rel='bookmark' title='Permanent Link: How to use different header for categories and pages in WordPress'>How to use different header for categories and pages in WordPress</a></li><li><a href='http://www.ruhanirabin.com/wp-optimize/' rel='bookmark' title='Permanent Link: WP-Optimize Database Cleanup and Optimization Plugin for Wordpress'>WP-Optimize Database Cleanup and Optimization Plugin for Wordpress</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fhow-to-display-the-latest-post-from-each-category-using-wordpress-query_posts%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FJ0Uvm%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20display%20the%20latest%20post%20from%20each%20category%20using%20WordPress%20query_posts%22%20%7D);"></div><p><img title="Wordpress Tips Tricks Tutorials" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="132" alt="Wordpress Tips Tricks Tutorials" src="http://www.ruhanirabin.com/userfiles/2008/12/wordpress-tips-tricks.jpg" width="300" border="0"></p><p align="justify">By default Wordpress presents all the posts in the blog sorted descending to post time at the home page. Well in some circumstances you might not want to have that layout on your home page. Lets say you have five categories and you want to pull the latest post from each of the categories and display it on your home page. Now that wont work out with the default Wordpress home page layout. Here is a simple tip to work around that situation. Wordpress has a function to filter out the posts depending on certain criteria, the function is known as <a title="Query_posts can be used to control which posts show up in The Loop" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank" rel="tag">query_post</a>. The template function <a title="Query_posts can be used to control which posts show up in The Loop" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank">query_post</a> has several parameters that enables you to filter the posts for the Wordpress <a title="The Loop is used by WordPress to display each of your posts." href="http://codex.wordpress.org/The_Loop" target="_blank" rel="tag">post output Loop</a>. Below is an example of pulling the latest post from a category and display it at the blog home page. The <a title="Query_posts can be used to control which posts show up in The Loop" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank" rel="tag">query_post</a> function can be modified by many parameters. Here I&#8217;m displaying only few parameters in action.</p><div align="justify"><span id="more-502"></span></div><p align="justify"><strong>Example:</strong> Display the latest post from a category at homepage or display each latest post from multiple categories. This file is the index.php of your theme file.</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &lt;div id=&quot;content&quot;&gt;<br /> <br /> &lt;!-- Latest from Category Sites --&gt;<br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Sites'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'showposts'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'order'</span><span style="color: #339933;">=&gt;</span>DESC<span style="color: #009900;">&#41;</span><br /> &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;title&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;categories&quot;&gt;Posted Under - <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;<br /> &nbsp; &nbsp; &nbsp; &lt;p&gt;Written by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> on <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F j, Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.&lt;/p&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;entry&quot;&gt;<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;readmore&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>#more-<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Read More&lt;/a&gt;&lt;/span&gt; |&lt;span class=&quot;addcomment&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add Comments'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &lt;/div&gt;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &lt;div class=&quot;post&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;title&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;No Archive Found&lt;/h2&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;entry&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Sorry, but you are looking for an archive that isn't here.&lt;/p&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &lt;/div&gt;<br /> <br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &lt;!-- End of Sites Category Display --&gt;<br /> <br /> &lt;!-- Latest from Downloads --&gt;<br /> <span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'category_name'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'Downloads'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'showposts'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'order'</span><span style="color: #339933;">=&gt;</span>DESC<span style="color: #009900;">&#41;</span><br /> &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;title&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;categories&quot;&gt;Posted Under - <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Written by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> on <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F j, Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.&lt;/p&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;entry&quot;&gt;<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;readmore&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>#more-<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Read More&lt;/a&gt;&lt;/span&gt; |&lt;span class=&quot;addcomment&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add Comments'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &lt;/div&gt;<br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; &lt;div class=&quot;post&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;title&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;No Archive Found&lt;/h2&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;entry&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Sorry, but you are looking for an archive that isn't here.&lt;/p&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br /> &nbsp; &nbsp; &lt;/div&gt;<br /> <br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &lt;!-- End of Downloads Category Display --&gt;<br /> &lt;!-- Rest of the codes--&gt;</div></td></tr></tbody></table></div><p>&nbsp;</p><p align="justify"><strong>Example:</strong> Exclude some categories from the loop</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;cat=-1,-2,-3&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br /> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div><p align="justify">&nbsp;</p><p align="justify"><strong>Example:</strong> Retrieve a single specific post</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> &nbsp; <span style="color: #666666; font-style: italic;">// retrieve one post with an ID of 5</span><br /> &nbsp; query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'p=5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp; &nbsp;<br /> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div><p align="justify">&nbsp;</p><p align="justify"><strong>Example:</strong> Get a sticky post</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <br /> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post__in'</span><span style="color: #339933;">=&gt;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sticky_posts'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//returns array of all sticky posts</span><br /> <br /> <span style="color: #666666; font-style: italic;">// To return just the first sticky post in a query</span><br /> <span style="color: #000088;">$sticky</span><span style="color: #339933;">=</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sticky_posts'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> <br /> <br /> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'p='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sticky</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div><p align="justify">&nbsp;</p><p align="justify">These are just simple examples, you can do a lot more if you take a look at the Wordpress Codex for <a title="Query_posts can be used to control which posts show up in The Loop" href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank" rel="tag">query_posts</a>.</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=6.7" /></div><div>Rating: 6.7/<strong>10</strong> (7 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/' rel='bookmark' title='Permanent Link: How to use different header for categories and pages in WordPress'>How to use different header for categories and pages in WordPress</a></li><li><a href='http://www.ruhanirabin.com/wp-optimize/' rel='bookmark' title='Permanent Link: WP-Optimize Database Cleanup and Optimization Plugin for Wordpress'>WP-Optimize Database Cleanup and Optimization Plugin for Wordpress</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Integrate social networking in wordpress using facebook connect api and WordPress plugin tutorial</title><link>http://www.ruhanirabin.com/integrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria/</link> <comments>http://www.ruhanirabin.com/integrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria/#comments</comments> <pubDate>Wed, 17 Dec 2008 19:42:47 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[article]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[facebook connect]]></category> <category><![CDATA[fbconnect]]></category> <category><![CDATA[how-to]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[screencast]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[tutorial]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=495</guid> <description><![CDATA[How to Implement Facebook Connect Social networking engine to your blog in less than 15 minutes. Includes comments.php customization, fbConnect plugin implementation, facebook application creation and sidebar widget addition tutorial.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.3" /></div><div>Rating: 8.3/<strong>10</strong> (26 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/easier-way-to-add-facebook-connect-to-your-blog-using-wp-facebookconnect-plugin/' rel='bookmark' title='Permanent Link: Easier way to add facebook connect to your blog using WP-FacebookConnect plugin'>Easier way to add facebook connect to your blog using WP-FacebookConnect plugin</a></li><li><a href='http://www.ruhanirabin.com/ruhanirabincom-now-uses-facebook-connect-social-network-api/' rel='bookmark' title='Permanent Link: RuhaniRabin.com now uses Facebook Connect social network api'>RuhaniRabin.com now uses Facebook Connect social network api</a></li><li><a href='http://www.ruhanirabin.com/easy-steps-to-facebook-connect-comment-box-how-to/' rel='bookmark' title='Permanent Link: Easy steps to Facebook Connect Comment Box [How to]'>Easy steps to Facebook Connect Comment Box [How to]</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fintegrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FkoP6X%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Integrate%20social%20networking%20in%20wordpress%20using%20facebook%20connect%20api%20and%20WordPress%20plugin%20tutorial%22%20%7D);"></div><p align="justify"><img title="wordpress facebook connect" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="171" alt="wordpress facebook connect" src="http://www.ruhanirabin.com/userfiles/2008/12/fconnectwp.jpg" width="275" border="0" /></p><p align="justify"><a href="http://developers.facebook.com/connect.php" target="_blank">Facebook connect</a> is a Facebook API to integrate Facebook related social networking option to your website. It provides a secure layer of authentication mechanism to integrate partial Facebook features, user details for you. Today I&#8217;m going to show you a way to integrate Facebook authentication for your Wordpress blog. This article assumes that you are already running Wordpress 2.7 or above. It&#8217;s possible to make a Facebook connect plugin from the very scratch but here I&#8217;m covering the easy way to implement it. Alternatively because of some problems with this plugin, I&#8217;ve written another post for much more <a href="http://www.ruhanirabin.com/easier-way-to-add-facebook-connect-to-your-blog-using-wp-facebookconnect-plugin/"><strong>easier way to integrate facebook (Using Official Plugin)</strong></a>. Now here are the steps to make you accomplish on this matter.</p><p> <span id="more-495"></span><p align="justify">&#160;</p><h4>#1 &#8211; Make the Facebook Application</h4><p align="justify">Do you have a Facebook Profile? If you don&#8217;t have a Facebook profile, create one first then move to <a href="http://developers.facebook.com/" target="_blank">Facebook developers page</a> to create your website application. A Facebook application is required provide a secure layer of authentication and manage Facebook members for your website. Here is how you should do it.</p><ul><li><div align="justify">Visit <a href="http://developers.facebook.com/" target="_blank">Facebook Developers</a> page</div></li><li><div align="justify">Click on <strong>Start Now </strong>Button</div></li><li><div align="justify">You need to Login to <a href="http://www.facebook.com/developers/" target="_blank">Facebook Developers Application</a> and you need to add it to your applications, once you do that you can <a href="http://www.facebook.com/developers/" target="_blank">head over here</a> and use the <strong>Set up New Application</strong> button.</div></li><li><div align="justify">Insert your application name and create the application, here is the typical application settings <br /><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookapplicationsettings.jpg" rel="lightbox"><img title="facebook-application-settings" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="164" alt="facebook-application-settings" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookapplicationsettings-thumb.jpg" width="354" border="0" /></a></div></li><li><div align="justify">Once you are done you need to keep the settings page open for reference to the <strong>API</strong> Key.</div></li></ul><h4>#2 &#8211; Implementing the fbConnect Plugin</h4><p align="justify"><a href="http://www.sociable.es/" target="_blank">Sociable.es</a> which is a part of SixJumps Social media marketing has created a wonderful OOP programmed <a href="http://www.sociable.es/facebook-connect/" target="_blank">Facebook Connect plugin</a> which allows you to integrate Facebook connect in a minute inside your Wordpress blog including Friend Invites, Last visited Facebook users Widget, Members of the blog and a profile page. This plugin also enables you to automatically create Facebook users on your blog database (Facebook uses don&#8217;t have to register to your blog) and able to syndicate the comments on the users Facebook mini-feed.</p><ul><li><div align="justify">Get the <a href="http://www.sociable.es/facebook-connect/" target="_blank">Facebook Connect plugin</a></div></li><li><div align="justify"><a href="http://codex.wordpress.org/Managing_Plugins#Installing_Plugins" title="How to install Wordpress Plugins?" target="_blank">Extract, Upload and Install</a> it on your Wordpress plugins</div></li><li><div align="justify">Open and Edit your themes header.php file and add this code inside. The Second line is important!</div><p></p><div class="codecolorer-container html4strict mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span><br /> <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> xmlns:fb<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.facebook.com/2008/fbml&quot;</span>&gt;</span></div></td></tr></tbody></table></div></li><li><div align="justify">Once you are done, save and update the header.php file</div></li><li><div align="justify">Now go to <strong>Wordpress Admin &gt; Settings &gt; Facebook Connect</strong></p><p>Set the options, insert your API Key and Secret Key from the Facebook Application Page, see below</p><p>&#160;<a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsettings.jpg" rel="lightbox"><img title="facebook-connect-plugin-settings" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="178" alt="facebook-connect-plugin-settings" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsettings-thumb.jpg" width="354" border="0" /></a></p><p>Enable Comment Auto-Approval and Allow send user comments to Facebook. Click on <strong>Update Options</strong> Button when you are done</div></li><li><div align="justify">Once updated, follow down to the Comment Templates section of the page and click on <strong>Create Template</strong> button to create basic feed template for the users Facebook mini-feed.</p><p><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsettingscomments.jpg" rel="lightbox"><img title="facebook-connect-plugin-settings-comments" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="236" alt="facebook-connect-plugin-settings-comments" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsettingscomments-thumb.jpg" width="354" border="0" /></a></div></li><li><div align="justify">Well you are almost done, just go to <strong>Wordpress Admin &gt; Appearance &gt; Widgets</strong> to add the Facebook Connect Widget to your sidebar. Save your sidebar settings and you are done. Note that you can customize some of the options of the sidebar widget from by clicking on Edit options on the sidebar management admin panel.</p><p><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectwidgetsettings.jpg" rel="lightbox"><img title="facebook-connect-widget-settings" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="facebook-connect-widget-settings" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectwidgetsettings-thumb.jpg" width="189" border="0" /></a></div></li><li><div align="justify">You can go to your blog now and have a look at the sidebar.</div></li></ul><h4>#3 β See it in Action</h4><p align="justify">Now you&#8217;ve added the plugin to your system and integrated the functions to your blog. So it&#8217;s time for you to check it out. Try to login using your sidebar and you should be presented with a Facebook login popup dialog.</p><p align="justify"><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginpopup.jpg" rel="lightbox"><img title="facebook-connect-plugin-popup" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="212" alt="facebook-connect-plugin-popup" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginpopup-thumb.jpg" width="244" border="0" /></a></p><p align="justify">Once you enter the credentials, you should be logged in to your blog as a Facebook user and will be able to see your Facebook avatar at the sidebar panel.</p><p align="justify"><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsidebar.jpg" rel="lightbox"><img title="facebook-connect-plugin-sidebar" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="244" alt="facebook-connect-plugin-sidebar" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectpluginsidebar-thumb.jpg" width="149" border="0" /></a></p><p align="justify">These are only the basic setup of the plugin. If you like you can take it further, see the rest of this article get the idea of doing it.</p><p align="justify">&#160;</p><h4>#4 β Implement the Facebook Connect options in your Comment posting form (NOT necessary for the newer version of the plugin)</h4><p align="justify">Now we are going to do some changes in the <strong>comments.php</strong> file which comes with your theme package. Here is a example of implementing the <strong>Facebook Login Button </strong>just before the <strong>Author Name</strong> field. Open your <strong>comments.php</strong> file in your favorite text editor. If you don&#8217;t have one you can read this and choose one for yourself and yes they are free. In your text editor search for the line <strong>wp-comments-post.php</strong> then follow the code changes below..</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;form action=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_settings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-comments-post.php&quot; method=&quot;post&quot; id=&quot;commentform&quot;&gt;<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_ID</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <br /> &nbsp; <span style="color: #666666; font-style: italic;">// facebook user checking function</span><br /> &nbsp; <span style="color: #000088;">$fb_user</span> <span style="color: #339933;">=</span> fb_get_loggedin_user<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//fb user check </span><br /> &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &lt;p&gt;Logged in as &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/wp-admin/profile.php&quot;&gt;<br /> <br /> &nbsp; &lt;!-- facebook user checking function --&gt;<br /> &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> &nbsp; <span style="color: #666666; font-style: italic;">// if facebook User</span><br /> &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fb_user</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$user_identity</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - Via Facebook&quot;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$user_identity</span><span style="color: #339933;">;</span><br /> &nbsp; <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &lt;/a&gt;. <span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// if facebook User</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fb_user</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;FB.Connect.logout(function() { window.location = '</span><span style="color: #0000ff;">'.get_option('</span>siteurl<span style="color: #0000ff;">').'</span><span style="color: #339933;">/</span>?fbconnect_action<span style="color: #339933;">=</span>logout<span style="color: #0000ff;">'.'</span><span style="color: #0000ff;">'; })&quot;&gt;Logout&lt;/a&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;a href='&quot;</span><span style="color: #339933;">.</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;/wp-login.php?action=logout' title='Log out of this account'&gt;Logout &amp;raquo;&lt;/a&gt;&lt;/p&gt;&quot;</span> <span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> <br /> &nbsp; &lt;p&gt;<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// adding an icon for general login OR facebook login option graphic</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Already a Member? &quot;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/wp-login.php'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;b&gt;Login..&lt;/b&gt;&lt;/a&gt;&lt;br/&gt;'</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;OR Login via Facebook&lt;br/&gt;&lt;fb:login-button length=&quot;</span><span style="color: #0000ff;">&quot;.<span style="color: #006699; font-weight: bold;">$loginbutton</span>.&quot;</span><span style="color: #0000ff;">&quot; autologoutlink=&quot;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #0000ff;">&quot; onlogin=&quot;</span>window<span style="color: #339933;">.</span>location <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&quot;.$uri.&quot;'</span><span style="color: #339933;">;</span><span style="color: #0000ff;">&quot;&gt;&lt;/fb:login-button&gt;n&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &lt;/p&gt;<br /> &nbsp; &lt;p&gt;<br /> &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot; class=&quot;textarea&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_author</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; size=&quot;28&quot; tabindex=&quot;1&quot; /&gt;<br /> &nbsp; &nbsp; &lt;label for=&quot;author&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'(required)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; &lt;/p&gt;</div></td></tr></tbody></table></div><p align="justify">&#160;</p><p align="justify"><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectwordpresscommentintegration.jpg" rel="lightbox"><img title="facebook-connect-wordpress-comment-integration" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="167" alt="facebook-connect-wordpress-comment-integration" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectwordpresscommentintegration-thumb.jpg" width="244" border="0" /></a></p><p>Here is how it looks like.</p><p align="justify">&#160;</p><p align="justify"><a href="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectcommentloggedin.jpg" rel="lightbox"><img title="facebook-connect-comment-logged-in" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="254" alt="facebook-connect-comment-logged-in" src="http://www.ruhanirabin.com/userfiles/2008/12/facebookconnectcommentloggedin-thumb.jpg" width="260" border="0" /></a></p><p>And once you login using your Facebook account the comment posting form will turn into this.</p><h4>#5 &#8211; Known Issues</h4><ul><li><div align="justify">This plugin seems not be working with <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">WP-Super Cache</a> plugin, which cache static HTML files of the dynamic Wordpress website.</div></li></ul><p align="justify">&#160;</p><p align="justify">Well, this is all for now. Please do post your comments about your implementations and possible problems that you&#8217;ve hit along the way.</p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=8.3" /></div><div>Rating: 8.3/<strong>10</strong> (26 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/easier-way-to-add-facebook-connect-to-your-blog-using-wp-facebookconnect-plugin/' rel='bookmark' title='Permanent Link: Easier way to add facebook connect to your blog using WP-FacebookConnect plugin'>Easier way to add facebook connect to your blog using WP-FacebookConnect plugin</a></li><li><a href='http://www.ruhanirabin.com/ruhanirabincom-now-uses-facebook-connect-social-network-api/' rel='bookmark' title='Permanent Link: RuhaniRabin.com now uses Facebook Connect social network api'>RuhaniRabin.com now uses Facebook Connect social network api</a></li><li><a href='http://www.ruhanirabin.com/easy-steps-to-facebook-connect-comment-box-how-to/' rel='bookmark' title='Permanent Link: Easy steps to Facebook Connect Comment Box [How to]'>Easy steps to Facebook Connect Comment Box [How to]</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/integrate-social-networking-wordpress-using-facebook-connect-api-wordpress-plugin-tutoria/feed/</wfw:commentRss> <slash:comments>62</slash:comments> </item> <item><title>How to use different header for categories and pages in WordPress</title><link>http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/</link> <comments>http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/#comments</comments> <pubDate>Wed, 17 Dec 2008 09:29:04 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[customization]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[template tags]]></category> <category><![CDATA[themes]]></category> <category><![CDATA[tips]]></category> <category><![CDATA[tutorials]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=470</guid> <description><![CDATA[How to use different header for different categories and pages in wordpress. Donβt you come across situations like you need to implement multiple header types for different categories? Iβm sure you do. Here is a simple yet effective solution to work out the issue to implement multiple header types for different categories<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=7.0" /></div><div>Rating: 7.0/<strong>10</strong> (25 votes cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/' rel='bookmark' title='Permanent Link: How to display the latest post from each category using WordPress query_posts'>How to display the latest post from each category using WordPress query_posts</a></li><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/how-to-change-wordpress-permalinks-without-affecting-google/' rel='bookmark' title='Permanent Link: How to Change Wordpress Permalinks without affecting Google'>How to Change Wordpress Permalinks without affecting Google</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fdifferent-headers-in-different-categories-and-pages-wordpress%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FLN5lH%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22How%20to%20use%20different%20header%20for%20categories%20and%20pages%20in%20WordPress%22%20%7D);"></div><p><img src="http://www.ruhanirabin.com/userfiles/2008/12/wordpress-tips-tricks.jpg" alt="wordpress tips tricks" title="wordpress tips tricks" width="300" height="132" class="alignnone size-full wp-image-501" /></p><p align="justify">Don&#8217;t you come across situations like you need to implement multiple header types for different categories? I&#8217;m sure you do. Here is a simple yet effective solution to work out the issue to implement multiple header types for different categories. For more conditional tags you can look up to <a href="http://codex.wordpress.org/Conditional_Tags" target="_blank" rel="tag">Wordpress codex</a>.</p><p align="justify">First of all create the header files for each categories. Also have one header file as the default one. These files will be included from the main header.php file. Consider the code below for the your Wordpress theme header.php file.</p><p><span id="more-470"></span></p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> <span style="color: #666666; font-style: italic;">/**** Conditional Header for Per Category Example Wordpress ****/</span><br /> <br /> <span style="color: #666666; font-style: italic;">// &nbsp;make sure we are in category listing </span><br /> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> <br /> &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-cat1.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> &nbsp; &nbsp; elseif (is_category('2')){<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-cat2.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> &nbsp; &nbsp; else {<br /> &nbsp; &nbsp; &nbsp; &nbsp; // this is the deafult header<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/headerdefault.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> }<br /> ?&gt;</div></td></tr></tbody></table></div><p>Example of using Category Names and Slugs</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> <span style="color: #666666; font-style: italic;">// &nbsp;Alternative for using Category ID, You can use Category Name or Slug</span><br /> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> <br /> &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// example of using a category name</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Category 1'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-cat1.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> &nbsp; &nbsp; // example of using category slug<br /> &nbsp; &nbsp; elseif (is_category('category-1')){<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-cat2.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> &nbsp; &nbsp; else {<br /> &nbsp; &nbsp; &nbsp; &nbsp; // this is the deafult header<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/headerdefault.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> &nbsp; &nbsp; }<br /> }<br /> ?&gt;</div></td></tr></tbody></table></div><p align="justify">Alternatively you might want different headers for different pages, so I&#8217;ve included that example too.</p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br /> <span style="color: #666666; font-style: italic;">//</span><br /> <span style="color: #666666; font-style: italic;">// example of using header file based on pages</span><br /> <span style="color: #666666; font-style: italic;">// note that you can either use page ID, Page Name or Page Slug</span><br /> <span style="color: #666666; font-style: italic;">// </span><br /> <br /> <span style="color: #666666; font-style: italic;">// this one uses page title</span><br /> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'About'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-contact.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> }<br /> // this one uses page slug<br /> elseif (is_page('subscribe')){<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-subscribe.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> }<br /> // this one uses page ID<br /> elseif (is_page('6')){<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/header-contact.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> }<br /> else {<br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'/headerdefault.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br /> }<br /> ?&gt;</div></td></tr></tbody></table></div><p><em>Reminder: You need to use these codes inside your themes header.php file to load specific header elements based on condition.</em></p> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=7.0" /></div><div>Rating: 7.0/<strong>10</strong> (25 votes cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/how-to-display-the-latest-post-from-each-category-using-wordpress-query_posts/' rel='bookmark' title='Permanent Link: How to display the latest post from each category using WordPress query_posts'>How to display the latest post from each category using WordPress query_posts</a></li><li><a href='http://www.ruhanirabin.com/how-to-style-the-latest-post-in-wordpress/' rel='bookmark' title='Permanent Link: How to style the latest post in WordPress'>How to style the latest post in WordPress</a></li><li><a href='http://www.ruhanirabin.com/how-to-change-wordpress-permalinks-without-affecting-google/' rel='bookmark' title='Permanent Link: How to Change Wordpress Permalinks without affecting Google'>How to Change Wordpress Permalinks without affecting Google</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/different-headers-in-different-categories-and-pages-wordpress/feed/</wfw:commentRss> <slash:comments>32</slash:comments> </item> <item><title>Joomla Day Malaysia 2008 highlights</title><link>http://www.ruhanirabin.com/joomla-day-malaysia-2008-highlights/</link> <comments>http://www.ruhanirabin.com/joomla-day-malaysia-2008-highlights/#comments</comments> <pubDate>Mon, 04 Aug 2008 10:14:46 +0000</pubDate> <dc:creator>Ruhani Rabin</dc:creator> <category><![CDATA[Malaysia]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[article]]></category> <category><![CDATA[august]]></category> <category><![CDATA[azrul.com]]></category> <category><![CDATA[cms]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[extensions]]></category> <category><![CDATA[framework]]></category> <category><![CDATA[highlights]]></category> <category><![CDATA[joomla]]></category> <category><![CDATA[mambots]]></category> <category><![CDATA[optimize]]></category> <category><![CDATA[SEO]]></category><guid isPermaLink="false">http://www.ruhanirabin.com/?p=416</guid> <description><![CDATA[In the Joomla Day event there was a big number of crowd but there were a lot of people who are in real life is just a business man, teacher or just a plain housewife. So there was a need to give them the concept of what is a CMS actually. The event started at 9am at citytel hotel. After the Welcome note from Azrul, The basic introduction of the Joomla CMS was Presented by Toby Patterson who is one of the very well written component developers of Joomla Community. Toby described what is actually Joomla project and some other history and roadmap of Joomla project, also he mentioned the reasons to choose Joomla.<br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=7.0" /></div><div>Rating: 7.0/<strong>10</strong> (1 vote cast)</div><br />Related Post:<ol><li><a href='http://www.ruhanirabin.com/petrol-price-increase-up-to-40-at-malaysia-june-2008/' rel='bookmark' title='Permanent Link: Petrol Price Increase up to 40% at Malaysia June 2008'>Petrol Price Increase up to 40% at Malaysia June 2008</a></li><li><a href='http://www.ruhanirabin.com/pikom-pc-fair-kuala-lumpur-august-2008-highlights/' rel='bookmark' title='Permanent Link: Pikom PC Fair Kuala lumpur August 2008 Highlights'>Pikom PC Fair Kuala lumpur August 2008 Highlights</a></li><li><a href='http://www.ruhanirabin.com/pikom-pc-fair-2008-april-malaysia/' rel='bookmark' title='Permanent Link: PIKOM PC Fair 2008 April Malaysia'>PIKOM PC Fair 2008 April Malaysia</a></li></ol>]]></description> <content:encoded><![CDATA[<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.ruhanirabin.com%252Fjoomla-day-malaysia-2008-highlights%252F%22%2C%20%22style%22%3A%20%22small%22%2C%20%22title%22%3A%20%22Joomla%20Day%20Malaysia%202008%20highlights%22%20%7D);"></div><p><img src="http://www.ruhanirabin.com/userfiles/2008/08/joomla-day-2008-malaysia.jpg" alt="joomla day 2008 malaysia" width="320" height="126" /></p><p align="justify">I&#8217;ve attended the Joomla Day Malaysia 2008! I was waiting for the event for a while. Joomla has been in the scene of web based content management system (CMS) for a while. But It actually evolved, improved and transformed along the Journey. It&#8217;s core concept was originally from MAMBO Content Management System. Joomla is considered as user friendly system to make your own interactive community website in less time and with less coding.</p><p align="justify">In the Joomla Day event there was a big number of crowd but there were a lot of people who are in real life is just a business man, teacher or just a plain housewife. So there was a need to give them the concept of what is a CMS actually. The event started at 9am at citytel hotel. After the Welcome note from <a href="http://www.azrul.com">Azrul</a>, The basic introduction of the Joomla CMS was Presented by <a href="http://gmitc.biz" class="thickbox">Toby Patterson</a> who is one of the very well written component developers of Joomla Community. Toby described what is actually Joomla project and some other history and roadmap of Joomla project, also he mentioned the reasons to choose Joomla.</p><p><span id="more-416"></span></p><p align="justify">In my own words Joomla is a platform that you can start building your web site with more features and in really less time. The point is NOT to spend time to develop the code for the web site but to start building the site   because the platform is already provided. It comes with many types of components, features, API&#8217;s to keep your focus on start designing the web site. Joomla provided extensive number of user friendly features in Joomla Administration Interface and it is as simple as click, type and save. A simple user who can write an e-mail can start using Joomla system to develop their own website in no time. Joomla code structure has changed a lot from version 1.0 to version 1.5, Joomla 1.0 was classic PHP function based procedural codes which are not easy to maintain. Now Joomla 1.5 onwards the code core has been re-written into MVC (Model View Controller) architecture using PHP Object Oriented codes and optimized MySQL queries. So it&#8217;s more fast, optimistic and robust. Because of the new code models, it&#8217;s now more easy to develop custom components, plugins, modules, API-bridge between several kind of technologies and systems. Every day new components, plugins, modules is being developed to extend the functionality of the core product into a whole new level.</p><p><strong>What was covered in this Joomla Day event</strong></p><ul><li>A Brief description of Joomla Project and roadmap</li><li>How to install and start building   a website as fast as 5 minutes. Now Joomla installer is simplified into more visual presentation.</li><li>What are the hosting requirements</li><li>Managing the content using the Administration Interface</li><li>How to make your Joomla website to a search engine friendly (SEF) website and necessary tools to do it (SEO Tools)</li><li>How do you optimize your performance for your Joomla website</li><li>How do you secure your Joomla Website and server</li><li>Some case studies and showcase of successful Joomla implementation professionally in various industry.</li><li>How to install, extend, expand add more features in your Joomla site using components, modules, plugins and themes.</li><li>Introduction to Joomla Component, Modules, plugins and Templates repository and few popular modules, components and plugins.</li><li>Advanced level of Development using Joomla framework and a bit of introduction of component and module development</li><li>Introduction to Joomla API</li><li>Common Issues of Joomla Development</li><li>How to build templates for Joomla and how the template structures is being organized.</li><li>Explanation of CSS system of Joomla</li></ul><p><strong>Framework</strong></p><p align="justify">Joomla is not a bare bone framework such as <a rel="tag" href="http://framework.zend.com" target="_blank">Zend Framework</a> or <a rel="tag" href="http://www.symfony-project.org/" target="_blank">Symfony</a>. Joomla has Joomla framework but there are many layers already developed on top of it to make it as a product. From that point forward you can start customizing, add 3rd party templates, plugins, components, modules to the site to fit your needs without minimal coding. For frameworks such as Zend and Symfony you need to build up functional 2nd and 3rd layer before you can actually start focus on making your site.</p><p><img src="http://www.ruhanirabin.com/userfiles/2008/08/joomla-diagram.jpg" alt="joomla_diagram" width="300" height="450" /></p><p>A simple Diagram of Joomla CMS architecture.</p><p><a href="http://www.ruhanirabin.com/userfiles/2008/08/joomlaframework.jpg"><img src="http://www.ruhanirabin.com/userfiles/2008/08/joomlaframework-thumb.jpg" alt="Joomla Framework Diagram" width="377" height="339" /></a></p><p><strong>How do you sale a Product like Joomla when its Free?</strong></p><p>Joomla framework and standard CMS is free of course but it doesn&#8217;t always fits with in the criteria of the customers needs. Joomla you don&#8217;t have to sale. The sale will actually comes from all the feature customization, components, custom modules, custom plugins,   and custom design templates. It could be done by per feature and/or by man days required to develop the customizations and templates.</p><p><strong>Joomla Optimization &amp; SEO Considerations:</strong></p><ul><li>Enable built in caching system in Joomla</li><li>Disable and Uninstall any unused module, components, mambots and plugins</li><li>Optimize usage of your site load, don&#8217;t use too many JavaScript.</li><li>Enable PHP 5 <a rel="tag" href="http://en.wikipedia.org/wiki/FastCGI">FastCGI</a> from your CPANEL or ask your hosting provider to enable it for you.</li><li>Make use of <a rel="tag" href="http://www.danga.com/memcached/">MEMCache</a></li><li>Check for heavy queries that requires more resources</li><li>Disable Internal statistics of Joomla and start using Google analytics</li><li>Use &amp; configure .htaccess re write to make your urls search engine friendly</li><li>Use SEO Components to make your site readable, use proven components such as <a rel="tag" href="http://extensions.siliana.com" target="_blank">sh404SEF</a> which is quite good enough to optimize your site for SEO. You can <a rel="enclosure" href="http://www.sayafuqaha.com/docman/download-document/23-seo.php" target="_blank">download this slide about Joomla SEO and SEF</a>.</li></ul><p><strong>Joomla Security Considerations:</strong></p><ul><li>Keep daily backups</li><li>Stay update to security releases and patches</li><li>Create new admin and remove the default admin. Use at least 8-10   mix characters for password.</li><li>Use .htaccess to protect sensitive directories for specific admin IP&#8217;s</li><li>Delete the Install Folder Entirely</li><li>Block all not used ports in the server</li><li>Use a professional level firewall for your server</li></ul><p><strong>Site Development Considerations:</strong></p><ul><li>Always use your extensions, plugins, mambots, templates from <strong><a rel="nofollow" href="http://extensions.joomla.org/" target="_blank">JED</a></strong> (<a rel="nofollow" href="http://extensions.joomla.org/" target="_blank">Joomla Extensions Directory</a>)</li><li>Check your CSS and Template compatibility with IE 6, IE 7, Firefox 2, Firefox 3, Safari and Opera and take necessary steps to make sure your site look and feel are same on all these browsers</li><li>Do site debugging, site load test etc using <a rel="tag" href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firefox FireBug Extension</a></li><li>Test and Re-Test all of your custom 3rd party components, modules and plugins. Check your template codes for malicious injection codes.</li><li>Check for conflicts in between components and dependency.</li></ul><p><strong>Joomla Resources:</strong></p><ul><li><a rel="nofollow" href="http://forum.joomla.org/">Community Forum</a></li><li><a rel="nofollow" href="http://developer.joomla.org/">Developers Arena</a></li><li><a href="http://extensions.joomla.org/">Extension Directory</a></li><li><a rel="nofollow" href="http://docs.joomla.org/">Documentation and Joomla Framework API</a></li><li><a rel="nofollow" href="http://www.joomla-my.org/forum/" target="_blank">Malaysian Joomla Community</a></li><li><a rel="tag" href="http://www.joomla-my.org/tutorials/">Malaysian Joomla Tutorials</a></li><li><a rel="nofollow" href="http://www.azrul.com">Slashes &amp; Dots Sdn Bhd</a></li><li><a rel="nofollow" href="http://www.ninjoomla.com/">Ninjoomla</a></li><li><a rel="nofollow" href="http://mike.simbunch.com/">Mike Simbunch</a></li><li><a rel="nofollow" href="http://www.packtpub.com/">Packt Publishing, Inc</a></li><li><a rel="nofollow" href="http://joomlachicago.com/">Chicago Joomla! User Group / Coffee Group USA</a></li><li><a rel="nofollow" href="http://www.mosets.com">CY Lee MOSETS.com</a></li><li><a rel="nofollow" href="http://gmitc.biz">Toby Patterson</a></li><li><a rel="tag" href="http://www.sayafuqaha.com/">sayaFuqaha</a></li><li><a rel="tag" href="http://www.aidi-ahmi.com/">Aidi-Ahmi</a></li><li><a rel="tag" href="http://www.dmoz.org/Computers/Programming/Languages/PHP/Scripts/Content_Management/Joomla/Extensions_and_Templates/">DMOZ Joomla resource directory</a></li><li><a title="from http://www.aidi-ahmi.com/" rel="tag" href="http://www.aidi-ahmi.com/index.php?option=com_remository&amp;Itemid=38&amp;func=select&amp;id=3">Joomla Day Malaysia 2008 Event Slides Downloads</a></li><li><a rel="tag" href="http://www.sayafuqaha.com/downloads/joomla/view-category.php">Joomla Day SEO Feature Presentation Slide Download</a></li></ul> <br /><div><img src="http://www.ruhanirabin.com/wp-content/plugins/gd-star-rating/gfx.php?value=7.0" /></div><div>Rating: 7.0/<strong>10</strong> (1 vote cast)</div><br /><p>Related Post:<ol><li><a href='http://www.ruhanirabin.com/petrol-price-increase-up-to-40-at-malaysia-june-2008/' rel='bookmark' title='Permanent Link: Petrol Price Increase up to 40% at Malaysia June 2008'>Petrol Price Increase up to 40% at Malaysia June 2008</a></li><li><a href='http://www.ruhanirabin.com/pikom-pc-fair-kuala-lumpur-august-2008-highlights/' rel='bookmark' title='Permanent Link: Pikom PC Fair Kuala lumpur August 2008 Highlights'>Pikom PC Fair Kuala lumpur August 2008 Highlights</a></li><li><a href='http://www.ruhanirabin.com/pikom-pc-fair-2008-april-malaysia/' rel='bookmark' title='Permanent Link: PIKOM PC Fair 2008 April Malaysia'>PIKOM PC Fair 2008 April Malaysia</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.ruhanirabin.com/joomla-day-malaysia-2008-highlights/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 163/352 queries in 11.399 seconds using disk
Content Delivery Network via rrcdn.ruhanirabin.netdna-cdn.com (user agent is rejected)

Served from: www.ruhanirabin.com @ 2010-07-30 07:53:09 -->