<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web design and coding blog</title>
	<atom:link href="http://www.kavdesign.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kavdesign.net/blog</link>
	<description>Welcome to our professional web development blog. Here you can find some helpful stuff about web design, coding, Joomla, WordPress and more...</description>
	<lastBuildDate>Tue, 24 Apr 2012 19:04:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Create a simple ticker in this case showing latest tweets in WordPress</title>
		<link>http://www.kavdesign.net/blog/coding/create-a-simple-ticker-in-this-case-showing-latest-twits-in-wordpress/</link>
		<comments>http://www.kavdesign.net/blog/coding/create-a-simple-ticker-in-this-case-showing-latest-twits-in-wordpress/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 17:57:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ticker]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[tweeter]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=785</guid>
		<description><![CDATA[First lets install some plugin to show the latest tweets in wordpress. The plugin that I used is this one: http://wordpress.org/extend/plugins/twitter-for-wordpress/ You can use any plugin. Install and put the widget in some position. Here is an example of the output needed for the jQuery to work correctly: &#60;div&#62;     &#60;p&#62;A tweet is here&#60;/p&#62;     [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>First lets install some plugin to show the latest tweets in wordpress. The plugin that I used is this one: http://wordpress.org/extend/plugins/twitter-for-wordpress/</p>
<p>You can use any plugin.</p>
<p>Install and put the widget in some position.</p>
<p>Here is an example of the output needed for the jQuery to work correctly:</p>
<pre>&lt;div&gt;
    &lt;p&gt;A tweet is here&lt;/p&gt;
    &lt;p&gt;Another tweet here&lt;/p&gt;
    &lt;!-- cont... --&gt;
&lt;/div&gt;</pre>
<p><span id="more-785"></span><br />
So we need to make a small change in the latest tweets plugin output to match this.</p>
<p>The just add this java script to the site:</p>
<pre>jQuery(function($) {
    var opts = {
        el: '.twitter-stream',
        items: new Array(),
        count: 0,
        total: -1,
        delay: 6000,
        animate: true
    };

    $(opts.el+' p').each(function(i) {
        opts.items[i] = $(this).html();
        opts.total++;
    }).hide();

    runTweeter();

    function runTweeter() {
        if(opts.animate == true) {
            if($(opts.el+' p').length &gt; 0) {
                $(opts.el).children('p').fadeOut(500, function() {
                    $(this).parent(0).empty().append('&lt;p style="display: none;"&gt;'+opts.items[opts.count]+'&lt;/p&gt;').children('p').fadeIn(500);
                });
            } else {
                $(opts.el).empty().append('&lt;p style="display: none;"&gt;'+opts.items[opts.count]+'&lt;/p&gt;').children('p').fadeIn(750);
            }
        } else {
            $(opts.el).empty().append('&lt;p&gt;'+opts.items[opts.count]+'&lt;/p&gt;');
        }
        setTimeout(function() {
            if(opts.count == opts.total) {
                opts.count = 0;
            } else {
                opts.count++;
            }
            runTweeter();
        }, opts.delay);
    }
});</pre>
<p>Then you can adjust the CSS to make it look better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/coding/create-a-simple-ticker-in-this-case-showing-latest-twits-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add CAPTCHA in your Virtuemart shop in the &#8220;Ask a question for this product&#8221; form</title>
		<link>http://www.kavdesign.net/blog/coding/add-captcha-in-your-virtuemart-shop-for-ask-a-question-for-this-product/</link>
		<comments>http://www.kavdesign.net/blog/coding/add-captcha-in-your-virtuemart-shop-for-ask-a-question-for-this-product/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 14:36:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[product]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[VirtueMart]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=781</guid>
		<description><![CDATA[This is the sollution: http://forum.virtuemart.net/index.php?topic=66513.0]]></description>
			<content:encoded><![CDATA[<p></p><p>This is the sollution: <a href="http://forum.virtuemart.net/index.php?topic=66513.0" target="_blank">http://forum.virtuemart.net/index.php?topic=66513.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/coding/add-captcha-in-your-virtuemart-shop-for-ask-a-question-for-this-product/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get front page in Joomla 2.5</title>
		<link>http://www.kavdesign.net/blog/coding/how-to-get-front-page-in-joomla-2-5/</link>
		<comments>http://www.kavdesign.net/blog/coding/how-to-get-front-page-in-joomla-2-5/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 15:50:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[front page]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=773</guid>
		<description><![CDATA[How to determine if the user is viewing the front page Joomla 1.0 In Joomla! 1.0.x it was possible to determine if the user was viewing the front page by using code like this: &#60;?php if ($option == 'com_frontpage' &#124;&#124; $option == '') { echo 'This is the front page'; } ?&#62; Joomla 1.5 But [...]]]></description>
			<content:encoded><![CDATA[<p></p><h2 id="firstHeading">How to determine if the user is viewing the front page</h2>
<h2><a title="Joomla 1.0" href="http://docs.joomla.org/File:Compat_icon_1_0.png"><img src="http://docs.joomla.org/images/4/43/Compat_icon_1_0.png" alt="Joomla 1.0" width="39" height="16" /></a> Joomla 1.0</h2>
<p>In Joomla! 1.0.x it was possible to determine if the user was viewing the front page by using code like this:</p>
<div dir="ltr">
<div>
<pre>&lt;?php
if ($option == 'com_frontpage' || $option == '') {
	echo 'This is the front page';
}
?&gt;</pre>
</div>
</div>
<h2><a title="Joomla 1.5" href="http://docs.joomla.org/File:Compat_icon_1_5.png"><img src="http://docs.joomla.org/images/c/c8/Compat_icon_1_5.png" alt="Joomla 1.5" width="39" height="16" /></a> Joomla 1.5</h2>
<p>But in Joomla! 1.5.x the com_frontpage component is no longer present. This is how to achieve the same result in Joomla! 1.5.x</p>
<div dir="ltr">
<div>
<pre>&lt;?php
$menu = &amp; JSite::getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
	echo 'This is the front page';
}
?&gt;</pre>
</div>
</div>
<p>This works by checking to see if the current active menu item is the default one.</p>
<h2><a title="Joomla 1.6" href="http://docs.joomla.org/File:Compat_icon_1_6.png"><img src="http://docs.joomla.org/images/d/da/Compat_icon_1_6.png" alt="Joomla 1.6" width="39" height="16" /></a> <a title="Joomla 1.7" href="http://docs.joomla.org/File:Compat_icon_1_7.png"><img src="http://docs.joomla.org/images/8/87/Compat_icon_1_7.png" alt="Joomla 1.7" width="39" height="16" /></a> <a title="Joomla 2.5" href="http://docs.joomla.org/File:Compat_icon_2_5.png"><img src="http://docs.joomla.org/images/5/53/Compat_icon_2_5.png" alt="Joomla 2.5" width="39" height="16" /></a> Joomla 1.6, 1.7 and 2.5</h2>
<p>This is one of the ways:</p>
<pre>&lt;?php if (JRequest::getInt('Itemid') == your_id) : ?&gt;
         &lt;!-- special javascript --&gt;
&lt;?php endif; ?&gt;</pre>
<p>There are some differences in 1.6/1.7/2.5 to avoid Strict Standards errors. Use the following code for a site where all content is in the same language:</p>
<div dir="ltr">
<div>
<pre>&lt;?php
$app = JFactory::getApplication();
$menu = $app-&gt;getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
	echo 'This is the front page';
}
?&gt;</pre>
</div>
</div>
<p>For multi-lingual sites the front page is dependent on the currently selected language, so you will need to use code like this:</p>
<div dir="ltr">
<div>
<pre>&lt;?php
$app = JFactory::getApplication();
$menu = $app-&gt;getMenu();
if ($menu-&gt;getActive() == $menu-&gt;getDefault( 'en-GB' )) {
	echo 'This is the front page';
}
elseif ($menu-&gt;getActive() == $menu-&gt;getDefault( 'fr-FR' )) {
	echo 'Accueil';
}
?&gt;</pre>
</div>
</div>
<p>For multi-lingual sites, it could also be necessary to display a specific code/html for <strong>all</strong> Default Home pages.</p>
<div dir="ltr">
<div>
<pre>&lt;?php $app = JFactory::getApplication(); ?&gt;
&lt;?php $menu = $app-&gt;getMenu(); ?&gt;
&lt;?php $lang = JFactory::getLanguage(); ?&gt;
&lt;?php if ($menu-&gt;getActive() == $menu-&gt;getDefault($lang-&gt;getTag())) : ?&gt;
etc.</pre>
<p>&nbsp;</p>
<p><strong>For more info:</strong> <a href="http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page" target="_blank">http://docs.joomla.org/How_to_determine_if_the_user_is_viewing_the_front_page</a></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/coding/how-to-get-front-page-in-joomla-2-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress sitemap plugin</title>
		<link>http://www.kavdesign.net/blog/wordpress/wordpress-sitemap-plugin/</link>
		<comments>http://www.kavdesign.net/blog/wordpress/wordpress-sitemap-plugin/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 08:44:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[sitemap]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=770</guid>
		<description><![CDATA[A great plugin to add a sitemap to your WordPress site &#8211; HTML Page Sitemap The only limitation is that it shows only pages, not posts.]]></description>
			<content:encoded><![CDATA[<p></p><p>A great plugin to add a sitemap to your WordPress site &#8211; <a href="http://wordpress.org/extend/plugins/html-sitemap/" target="_blank">HTML Page Sitemap</a></p>
<p>The only limitation is that it shows only pages, not posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/wordpress/wordpress-sitemap-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a dropdown menu in WordPress</title>
		<link>http://www.kavdesign.net/blog/wordpress/creating-a-dropdown-menu-in-wordpress/</link>
		<comments>http://www.kavdesign.net/blog/wordpress/creating-a-dropdown-menu-in-wordpress/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 08:42:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=764</guid>
		<description><![CDATA[In wordpress 3.0 and above there is a nice build in menu. To create a drop down menu using this menu system follow there articles: http://new2wp.com/pro/jquery-drop-down-menu-wordpress-3-menu/ http://wphacks.com/top-5-wordpress-navigation-menu-tutorials/ This is the main code in the CSS to achive the result: #menu-header ul ul { display: none; /* For testing, change to display: block; */ list-style:none; z-index:100; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In wordpress 3.0 and above there is a nice build in menu. To create a drop down menu using this menu system follow there articles:</p>
<p><a href="http://new2wp.com/pro/jquery-drop-down-menu-wordpress-3-menu/" target="_blank">http://new2wp.com/pro/jquery-drop-down-menu-wordpress-3-menu/</a></p>
<p><a href="http://wphacks.com/top-5-wordpress-navigation-menu-tutorials/" target="_blank">http://wphacks.com/top-5-wordpress-navigation-menu-tutorials/</a></p>
<p>This is the main code in the CSS to achive the result:</p>
<pre>#menu-header ul ul {
	display: none; /* For testing, change to display: block; */
	list-style:none;
	z-index:100;
}
#menu-header ul li:hover &gt; ul {
	display: block;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/wordpress/creating-a-dropdown-menu-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Is ACTA ?</title>
		<link>http://www.kavdesign.net/blog/other/what-is-acta/</link>
		<comments>http://www.kavdesign.net/blog/other/what-is-acta/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 13:10:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other stuff]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=761</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p></p><p><iframe width="500" height="284" src="http://www.youtube.com/embed/N8Xg_C2YmG0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/other/what-is-acta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to display an archive with all postst in WordPress?</title>
		<link>http://www.kavdesign.net/blog/wordpress/how-to-display-an-archive-with-all-postst/</link>
		<comments>http://www.kavdesign.net/blog/wordpress/how-to-display-an-archive-with-all-postst/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 16:05:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[wp_query]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=753</guid>
		<description><![CDATA[To do this add another page template in your theme&#8217;s folder. You could create a Page (Write &#62; Write Page) called&#8230;,  that just uses a custom Page template implementing query_posts(). I do something similar on my site but don&#8217;t list every post! Just the categories with description and such. However, one can combine the idea [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>To do this add another page template in your theme&#8217;s folder.</p>
<p>You could create a Page (Write &gt; Write Page) called&#8230;,  that just uses a <a href="http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates">custom Page template </a> implementing query_posts().</p>
<p>I do something similar on my site but don&#8217;t list every post! Just the categories with description and such. However, one can combine the idea of a Category Page with what I do on my &#8216;Archive&#8217; Page:</p>
<p>Sometimes the  function wp_query(); brakes the pagination, so if this hapens use this code insted:</p>
<pre><code>&lt;?php $limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('showposts=' . $limit . '&amp;paged=' . $paged);
$wp_query-&gt;is_archive = true;
$wp_query-&gt;is_home = false; ?&gt;</code></pre>
<p>Notes:</p>
<p><code>$limit</code> is assigned the &#8216;posts_per_page&#8217; option from your WordPress settings, but can be changed to something else if you like:</p>
<p><code>$limit = 20;</code></p>
<p>These:</p>
<pre><code>$wp_query-&gt;is_archive = true; $wp_query-&gt;is_home = false;</code></pre>
<p>after the query_posts() are important as they force posts_nav_link() (and so pagination) to work, along with a few other helpful results gained for fooling WordPress into thinking we&#8217;re in the archive pages.</p>
<p>For the $paged stuff, see:<br />
<a href="http://wordpress.org/support/topic/57912#post-312858" rel="nofollow">http://wordpress.org/support/topic/57912#post-312858</a></p>
<p><em>For more info: http://wordpress.org/support/topic/querying-all-posts</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/wordpress/how-to-display-an-archive-with-all-postst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PROTECT IP / SOPA Breaks The Internet</title>
		<link>http://www.kavdesign.net/blog/other/protect-ip-sopa-breaks-the-internet/</link>
		<comments>http://www.kavdesign.net/blog/other/protect-ip-sopa-breaks-the-internet/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 12:35:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other stuff]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=750</guid>
		<description><![CDATA[Tell Congress not to censor the internet NOW! &#8211; http://www.fightforthefuture.org/pipa PROTECT-IP is a bill that has been introduced in the Senate and the House and is moving quickly through Congress. It gives the government and corporations the ability to censor the net, in the name of protecting &#8220;creativity&#8221;. The law would let the government or [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><iframe src="http://player.vimeo.com/video/31100268?byline=0&amp;portrait=0" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
<p>Tell Congress not to censor the internet NOW! &#8211; http://www.fightforthefuture.org/pipa</p>
<p>PROTECT-IP is a bill that has been introduced in the Senate and the House and is moving quickly through Congress. It gives the government and corporations the ability to censor the net, in the name of protecting &#8220;creativity&#8221;. The law would let the government or corporations censor entire sites&#8211; they just have to convince a judge that the site is &#8220;dedicated to copyright infringement.&#8221; </p>
<p>The government has already wrongly shut down sites without any recourse to the site owner. Under this bill, sharing a video with anything copyrighted in it, or what sites like Youtube and Twitter do, would be considered illegal behavior according to this bill. </p>
<p>According to the Congressional Budget Office, this bill would cost us $47 million tax dollars a year — that&#8217;s for a fix that won&#8217;t work, disrupts the internet, stifles innovation, shuts out diverse voices, and censors the internet. This bill is bad for creativity and does not protect your rights.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/other/protect-ip-sopa-breaks-the-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to display WordPress widgets only on some pages?</title>
		<link>http://www.kavdesign.net/blog/coding/how-to-display-wordpress-widgets-only-on-some-pages/</link>
		<comments>http://www.kavdesign.net/blog/coding/how-to-display-wordpress-widgets-only-on-some-pages/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 12:42:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[context]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=748</guid>
		<description><![CDATA[One plugin which I found: http://wordpress.org/extend/plugins/widget-context/]]></description>
			<content:encoded><![CDATA[<p></p><p>One plugin which I found: <a href="http://wordpress.org/extend/plugins/widget-context/" target="_blank">http://wordpress.org/extend/plugins/widget-context/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/coding/how-to-display-wordpress-widgets-only-on-some-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A free MP3 converter</title>
		<link>http://www.kavdesign.net/blog/other/a-free-mp3-converter/</link>
		<comments>http://www.kavdesign.net/blog/other/a-free-mp3-converter/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 10:35:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other stuff]]></category>

		<guid isPermaLink="false">http://www.kavdesign.net/blog/?p=744</guid>
		<description><![CDATA[http://www.koyotesoft.com/audio-software/free-mp3-wma-converter.html]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.koyotesoft.com/audio-software/free-mp3-wma-converter.html" target="_blank">http://www.koyotesoft.com/audio-software/free-mp3-wma-converter.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavdesign.net/blog/other/a-free-mp3-converter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

