<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Website design malta - Freelance web designer</title>
	
	<link>http://www.linked.com.mt</link>
	<description>Linked Studios - Freelance web design, development, on-line marketing  and SEO expert company based in Malta</description>
	<lastBuildDate>Tue, 27 Sep 2011 17:11:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Linked-Studios" /><feedburner:info uri="linked-studios" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>How to invite all friends to facebook event</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/15Tb1qoADvQ/</link>
		<comments>http://www.linked.com.mt/blog/code/javascript/how-to-invite-all-friends-to-facebook-event/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 08:38:49 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=1054</guid>
		<description><![CDATA[Selecting all friends and invite them to an event on facebook may be a very frustrating experience but here&#8217;s a little snippet to make life easier: Step 1: Select invite friends and scroll all the way down. Step 2: Type this script instead of the URL in your browser: javascript:elms=document.getElementsByName('checkableitems[]');dn=0;ds=0;ac=0;for(var fid in elms){if(typeof elms[fid] === [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fcode%2Fjavascript%2Fhow-to-invite-all-friends-to-facebook-event%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fcode%2Fjavascript%2Fhow-to-invite-all-friends-to-facebook-event%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Selecting all friends and invite them to an event on facebook</strong> may be a very frustrating experience but here&#8217;s a little snippet to make life easier:<br />
<span id="more-1054"></span><br />
Step 1: Select invite friends and scroll all the way down.<br />
Step 2: Type this script instead of the URL in your browser:</p>
<pre><code>javascript:elms=document.getElementsByName('checkableitems[]');dn=0;ds=0;ac=0;for(var fid in elms){if(typeof elms[fid] === 'object'){if (elms[fid].disabled == true){ds++;} else {if (elms[fid].checked == true){ac++;} else {elms[fid].click();dn++;}}}};</code></pre>
<p>You might want to use this code instead:</p>
<pre><code>javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i&lt;elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};</code></pre>
<p>If using Chrome make sure to include &#8220;javascript:&#8221; as when pasting the code it removes it automatically.</p>
<p>Use at your own risk, with caution and respect.</p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/15Tb1qoADvQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/code/javascript/how-to-invite-all-friends-to-facebook-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/code/javascript/how-to-invite-all-friends-to-facebook-event/</feedburner:origLink></item>
		<item>
		<title>ICARUS</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/qKzmRrfNEVc/</link>
		<comments>http://www.linked.com.mt/portfolio/icarus/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 14:34:54 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=1022</guid>
		<description><![CDATA[ICARUS &#8211; Coming soon.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Ficarus%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Ficarus%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>ICARUS &#8211; Coming soon.</p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/qKzmRrfNEVc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/portfolio/icarus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/portfolio/icarus/</feedburner:origLink></item>
		<item>
		<title>Kokuna</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/jQrOcfch2Bc/</link>
		<comments>http://www.linked.com.mt/portfolio/kokuna/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 13:46:21 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=1007</guid>
		<description><![CDATA[Once more where the others have failed Linked Studios has prevailed. After several failures to accomplish the project Sense Of Nature trusted Linked Studios with the development of their Magento based e-commerce platform. Working closely with their design team and project manager Linked Studios managed to achieve results that speak for themselves. Magento e-commerce  platform [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Fkokuna%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Fkokuna%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Once more where the others have failed Linked Studios has prevailed. <span id="more-1007"></span>After several failures to accomplish the project Sense Of Nature trusted Linked Studios with the development of their Magento based e-commerce platform. Working closely with their design team and project manager Linked Studios managed to achieve results that speak for themselves.</p>
<h3>Magento e-commerce  platform</h3>
<p>Linked Studios developed a fully fledged e-commerce solution on the award winning Magento e-commerce platform  that includes support for shop-in-shop technology. This provides the owners with the ability to have separate sections through out the e-shop thus targeting markets more effectively and efficiently.</p>
<p>Needless to say the e-commerce platform was developed to cater for multi language support and also enhanced with various plug-ins to incorporate on-line payment gateways and social media marketing.</p>
<p>Sleep tight with <a href="http://www.kokuna.com" target="_blank" nofollow="nofollow">Kokuna.com</a> <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/jQrOcfch2Bc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/portfolio/kokuna/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/portfolio/kokuna/</feedburner:origLink></item>
		<item>
		<title>PokerOffice</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/6xdpzqbf-lI/</link>
		<comments>http://www.linked.com.mt/portfolio/pokeroffice/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 12:45:35 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=894</guid>
		<description><![CDATA[PokerOffice, the leading free poker software, hired Linked Studios to revamp and improve their holistic online presence. Linked Studios was engaged with one specific target in mind: to improve conversion rates and increase sales while increasing efficiency throughout the business logic. We managed to achieve this by: Migrating the website to WordPress to enable faster [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Fpokeroffice%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fportfolio%2Fpokeroffice%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>PokerOffice, the leading <a href="http://www.pokeroffice.com"><strong>free poker software</strong></a>, hired Linked Studios to revamp and improve their holistic online presence.<span id="more-894"></span></p>
<p>Linked Studios was engaged with one specific target in mind: to<strong> improve conversion rates and increase sales</strong> while increasing efficiency throughout the business logic.</p>
<h4>We managed to achieve this by:</h4>
<ul>
<li>Migrating the website to <strong>WordPress</strong> to enable faster deployment of marketing campaigns</li>
<li>Implement a more convenient <strong>payment gateway</strong></li>
<li>Designed and developed a <strong>Social Media Marketing</strong> campaign focusing mainly on facebook</li>
<li>Improved back-end and business logic</li>
<li>Implemented onsite <strong>Search Engine Optimization</strong> techniques</li>
<li><strong>A/B Split tested</strong> several pages</li>
</ul>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/6xdpzqbf-lI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/portfolio/pokeroffice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/portfolio/pokeroffice/</feedburner:origLink></item>
		<item>
		<title>Removing auto-generated p and br tags from posts in wordpress</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/y9LCpcabm5M/</link>
		<comments>http://www.linked.com.mt/blog/removing-auto-generated-p-an-br-tags-from-posts-in-wordpress/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 16:28:19 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=902</guid>
		<description><![CDATA[WordPress does a great job at parsing what average users insert into the content however web designers and developers like me sometimes need the code to be outputted as is without any modified br and p tags. Online I&#8217;ve seen some weird core hacking going around but actually all you need to do is to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fremoving-auto-generated-p-an-br-tags-from-posts-in-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fremoving-auto-generated-p-an-br-tags-from-posts-in-wordpress%2F&amp;source=linkedse&amp;style=normal&amp;hashtags=wordpress&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>WordPress </strong>does a great job at parsing what average users  insert into the content however <strong>web designers and developers</strong> like me sometimes need the code to be outputted as is without any modified <em>br</em> and <em>p</em> tags.<br />
<span id="more-902"></span><br />
Online I&#8217;ve seen some weird core hacking going around but actually all you need to do is to remove a filter like so:</p>
<pre><code>remove_filter('the_content', 'wpautop');</code></pre>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/y9LCpcabm5M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/removing-auto-generated-p-an-br-tags-from-posts-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/removing-auto-generated-p-an-br-tags-from-posts-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Design for the web – Buttons</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/3KAw4ASlry4/</link>
		<comments>http://www.linked.com.mt/blog/design-for-the-web-buttons/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 16:26:06 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=903</guid>
		<description><![CDATA[The keyword to achieve a great <strong>design for the web</strong> is smooth. Today I will focus on how to design smooth looking buttons for the web in Photoshop CS4. The idea is very simple yet few designers understand how to achieve this result hence this tutorial.
<p style="text-align: center;"><img class="aligncenter size-full wp-image-910" title="smooth button" src="http://www.linked.com.mt/wp-content/uploads/2011/01/smooth-button.png" alt="smooth button" width="200" height="40" /></p>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fdesign-for-the-web-buttons%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fdesign-for-the-web-buttons%2F&amp;source=linkedse&amp;style=normal&amp;hashtags=buttons,web+design&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The keyword to achieve a great <strong>design for the web</strong> is smooth. Today I will focus on how to design smooth looking buttons for the web in Photoshop CS4. The idea is very simple yet few designers understand how to achieve this result hence this tutorial.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-910" title="smooth button" src="http://www.linked.com.mt/wp-content/uploads/2011/01/smooth-button.png" alt="smooth button" width="200" height="40" /></p>
<p><span id="more-903"></span></p>
<p><strong><em>Step 1:</em></strong></p>
<p>Start a new document in Photoshop and set the desired width and height. I opted for 200 pixels width by 40 pixels height.</p>
<p style="text-align: center;"><a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-New-document.jpg"><img class="aligncenter size-medium wp-image-904" title="Web Design - Smooth button - New document" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-New-document-300x176.jpg" alt="Web Design - Smooth button - New document" width="300" height="176" /></a></p>
<p><strong><em>Step 2:</em></strong></p>
<p>Mark the borders with the rulers and use the &#8216;Rounded rectangle tool&#8217; to cover all the canvas. Remember not to exaggerate with the radius; 3 pixels is enough.</p>
<p style="text-align: center;">
<a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Rounded-rectangle-tool.jpg"><img class="aligncenter size-medium wp-image-905" title="Web Design - Smooth button - Rounded rectangle tool" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Rounded-rectangle-tool-300x176.jpg" alt="Web Design - Smooth button - Rounded rectangle tool" width="300" height="176" /></a>
</p>
<p><strong><em>Step 3:</em></strong></p>
<p>Double click the shape to set up the &#8216;Layer Style&#8217;. Start with the &#8216;Gradient Overlay&#8217; and select or make a new one that you like. Keep in mind to keep the colors on the same scale but one a bit darker than the other. Do not over do it and keep the difference to minimum. The difference must be noticeable only to the expert eye.</p>
<p style="text-align: center;">
<a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Gradient-Overlay.jpg"><img class="aligncenter size-medium wp-image-906" title="Web Design - Smooth button - Gradient Overlay" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Gradient-Overlay-300x176.jpg" alt="Web Design - Smooth button - Gradient Overlay" width="300" height="176" /></a><a href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Stroke.jpg"></a>
</p>
<p><strong><em>Step 4:</em></strong></p>
<p>Stroke the layer with the same color selected in the darker shade of the gradient and darken it a bit further more. Set the stroke size to 1 pixel and inline position.</p>
<p style="text-align: center;">
<a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Stroke.jpg"><img class="aligncenter size-medium wp-image-908" title="Web Design - Smooth button - Stroke" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Stroke-300x176.jpg" alt="Web Design - Smooth button - Stroke" width="300" height="176" /></a><a href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Inner-Shadow.jpg"></a>
</p>
<p><strong><em>Step 5:</em></strong></p>
<p>Define the &#8216;Inner Shadow&#8217; and start by setting the blend mode to normal. Select white as a color and set the angle to 135 degrees. Set the distance and size of the shadow to 2 pixels.</p>
<p style="text-align: center;">
<a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Inner-Shadow.jpg"><img class="aligncenter size-medium wp-image-907" title="Web Design - Smooth button - Inner Shadow" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Inner-Shadow-300x176.jpg" alt="Web Design - Smooth button - Inner Shadow" width="300" height="176" /></a><a href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Toggle-reverse.jpg"></a>
</p>
<p><strong><em>Step 6 (pro tip):</em></strong></p>
<p>Go back to the &#8216;Gradient overlay&#8217; and toggle the reverse checkbox to see how your new button will look on hover (I will writh another article on how to do this).</p>
<p style="text-align: center;">
<a class="noborder" rel="lightbox[singlepost]" href="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Toggle-reverse.jpg"><img class="aligncenter size-medium wp-image-909" title="Web Design - Smooth button - Toggle reverse" src="http://www.linked.com.mt/wp-content/uploads/2011/01/Web-Design-Smooth-button-Toggle-reverse-300x176.jpg" alt="Web Design - Smooth button - Toggle reverse" width="300" height="176" /></a>
</p>
<p><strong><em>Conclusion</em></strong></p>
<p>As you can see you can achieve a great smooth looking button with ease and within a few minutes. The key is to make the the difference in colors barely noticeable  hence achieving a smooth transition in gradient.</p>
<p>Keep in mind that you don&#8217;t have to show to anyone that you know how to use the radius or gradients <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Feel free to share your thoughts and any suggestions for future tutorials :)</p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/3KAw4ASlry4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/design-for-the-web-buttons/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/design-for-the-web-buttons/</feedburner:origLink></item>
		<item>
		<title>Web designers vs web developers</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/FssGhYtbeIA/</link>
		<comments>http://www.linked.com.mt/blog/web-design-company/web-designers-vs-web-developers/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 15:52:36 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=886</guid>
		<description><![CDATA[This is a funny illustration I found while surfing the net and wanted to share with fellow freelance web designers and developers like me]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fweb-design-company%2Fweb-designers-vs-web-developers%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fweb-design-company%2Fweb-designers-vs-web-developers%2F&amp;source=linkedse&amp;style=normal&amp;hashtags=funny&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a funny illustration I found while surfing the net and wanted to share with fellow <strong>freelance web designers and developers</strong> like me <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a rel="lightbox[singlepost]" href="http://www.landingpages.co.il/wix/web-designers-vs-developers.png"><img class="alignnone" title="Web designers vs web developers" src="http://www.landingpages.co.il/wix/web-designers-vs-developers.png" alt="Web designers vs web developers" width="900" height="1400" /></a></p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/FssGhYtbeIA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/web-design-company/web-designers-vs-web-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/web-design-company/web-designers-vs-web-developers/</feedburner:origLink></item>
		<item>
		<title>Exit Pop Up with Shadowbox &amp; jQuery</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/7Hx6fvmTMMs/</link>
		<comments>http://www.linked.com.mt/blog/exit-pop-up-with-shadowbox-jquery/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 22:06:17 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Conversion Rates]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=871</guid>
		<description><![CDATA[Love them or hate them exit or welcome pop ups may have huge impacts on the conversion rates. I honestly love the simplicity of Shadowbox JavaScript multimedia player but as we all know it cannot be used as a normal jQuery plugin as it overrides the events. Anyway! To achieve this goal simply bind the function to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fexit-pop-up-with-shadowbox-jquery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fexit-pop-up-with-shadowbox-jquery%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Love them or hate them <strong>exit or welcome pop ups</strong> may have huge impacts on the <strong>conversion rates</strong>. I honestly love the simplicity of Shadowbox JavaScript multimedia player but as we all know it cannot be used as a normal jQuery plugin as it overrides the events.<span id="more-871"></span></p>
<p>Anyway! To achieve this goal simply bind the function to the event that you want the <strong>box to pop up</strong>; in our case we will use the onbeforeunload for our <strong>exit pop up</strong>. One may have noted over the web that there are some primitive highly annoying pop ups that pop up even when the user is navigating within the website! This should be avoided at all costs; to achieve this you can simply unbind the function by pointing the event to null.</p>
<p>Do we really need the jQuery framework for this to work? &#8211; No, but since I use it practically on all projects it makes sense to integrate it.</p>
<h3>Exit Pop-Up with Shadowbox &amp; jQuery</h3>
<pre><code>
$(document).ready(function(){

    // Shadow box initialization
    Shadowbox.init({
        handleOversize: "resize",
        overlayOpacity: 0.9
    });

    // This makes sure that the pop up isn't shown
    // if the user is navigating within the website
    $(window).click(function(){
        window.onbeforeunload = null;
    });

    // Before unloading the website open Shadowbox
    window.onbeforeunload = function(){

        // for my client I opted to use the iframe setup but
        // one may go for the ajax, flash or any other setup
        // Tip: use small windows and be concise in the offer!
        Shadowbox.open({
            content:  '/exit-pop-up-page',
            player:     "iframe",
            width:      540,
            height:     380
        });

        // For security reasons every browser will confirm with user
        // whether they actually want to run this script or not so make
        // sure to put some attractive text and special offers in here.
        // -- No ... There is no way to bypass this and if there is a way
        // it isn't ethical.
        return 'Hey! ... get a 10% discount on our product!';

    }

});
</code></pre>
<p>Just like anything else one may use smart implementations of this and for example keep track of the current page and promote something relative. This will depend more from the marketing guys though but it&#8217;s always good to keep in mind <strong>conversion rates and how to maximize them</strong>. For example it&#8217;s usually useless to give discounts to users exiting from the home page; it would be more beneficial if you highlighted some features of your product that they may have missed. Another thing you can do is to thank the users that actually bought a product and avoid giving discounts if the user already bought the product! Just imagine how you would feel if you bought something for $100 and then on exit you get a $10 dicount! &#8230; not so good about it right?</p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/7Hx6fvmTMMs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/exit-pop-up-with-shadowbox-jquery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/exit-pop-up-with-shadowbox-jquery/</feedburner:origLink></item>
		<item>
		<title>PHP domNode toString XML</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/dazfPrgRU0o/</link>
		<comments>http://www.linked.com.mt/blog/php-domnode-tostring-xml/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 06:22:52 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=839</guid>
		<description><![CDATA[This is a very simple task I needed to do which basically consisted of getting a domNode as a string and printing the content. This may not be very useful in an application but it may be very useful for debugging purposes. On the PHP documentation pages I found some code which is totally unnecessary [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fphp-domnode-tostring-xml%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fphp-domnode-tostring-xml%2F&amp;source=linkedse&amp;style=normal&amp;hashtags=php,xml&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a very simple task I needed to do which basically consisted of getting a domNode as a string and printing the content. This may not be very useful in an application but it may be very useful for debugging purposes.<span id="more-839"></span></p>
<p>On the PHP documentation pages I found some code which is <strong>totally unnecessary</strong> for this task which basically loops over and over the content and places a &#8216; < ' and a ' > &#8216;  before and after each child element and prints out the content using get_content(), node_name() and attributes.</p>
<p>My simpler solution was to create a new temporary document, import the node and use the document&#8217;s methods to get the content as a string. Simple hah <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> !</p>
<h5>My simpler solution:</h5>
<pre><code>
$temp_doc = new DOMDocument('1.0', 'UTF-8');
$temp_node = $temp_doc->importNode($myDomNode, TRUE);
$temp_doc->appendChild($temp_node);
$my_node_as_string = $temp_doc->saveHTML();
</code></pre>
<h5>Solution on <a href="http://php.net/manual/en/function.domnode-get-content.php">PHP Documentation</a>:</h5>
<pre><code>
function GetContentAsString($node) {
  $st = "";
  foreach ($node->child_nodes() as $cnode)
   if ($cnode->node_type()==XML_TEXT_NODE)
     $st .= $cnode->node_value();
   else if ($cnode->node_type()==XML_ELEMENT_NODE) {
     $st .= "<" . $cnode->node_name();
     if ($attribnodes=$cnode->attributes()) {
       $st .= " ";
       foreach ($attribnodes as $anode)
         $st .= $anode->node_name() . "='" .
           $anode->node_value() . "'";
       }
     $nodeText = GetContentAsString($cnode);
     if (empty($nodeText) &#038;&#038; !$attribnodes)
       $st .= " />";        // unary
     else
       $st .= ">" . $nodeText . "</" .
         $cnode->node_name() . ">";
     }
  return $st;
  }
</code></pre>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/dazfPrgRU0o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/php-domnode-tostring-xml/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/php-domnode-tostring-xml/</feedburner:origLink></item>
		<item>
		<title>IE bug window resize fix</title>
		<link>http://feedproxy.google.com/~r/Linked-Studios/~3/CccHek1R3rI/</link>
		<comments>http://www.linked.com.mt/blog/code/jquery/ie-bug-window-resize-fix/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 09:50:48 +0000</pubDate>
		<dc:creator>Kristjan Farrugia</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.linked.com.mt/?p=827</guid>
		<description><![CDATA[This code snippet fixes IE&#8217;s bug on window resize event. As you may have noticed when you use the  .resize()  and try to get the width and height of the container these are returned as 0 thus making it impossible to centre  a div. You may not need this very often but trust me  it will save you from [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fcode%2Fjquery%2Fie-bug-window-resize-fix%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.linked.com.mt%2Fblog%2Fcode%2Fjquery%2Fie-bug-window-resize-fix%2F&amp;source=linkedse&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This code snippet fixes IE&#8217;s bug on window resize event. As you may have noticed when you use the  .resize()  and try to get the width and height of the container these are returned as 0 thus making it impossible to centre  a div. You may not need this very often but trust me  it will save you from going hell if you&#8217;ll ever need it!<br />
<span id="more-827"></span></p>
<h4>IE resize Bug fix code snippet :</h4>
<p><code> </code></p>
<p><code></p>
<pre>var resizeEventTimer= null;

$(window).resize(function(){

    //IE fires multiple events hence we don't want to delay all of them but only the last one. Hence Clear if exists
    if (resizeEventTimer){
	clearTimeout(resizeEventTimer);
    }

    // Set Timeout and delay for 100 ms (should be enough - increase if problem persists)
    resizeEventTimer = setTimeout(function(){

	// start-mycode
	var marginTop = ($(window).height() - settings.dHeight) / 3;
	var marginLeft = ($(window).width() - settings.dWidth) / 2;
	$('#myDiv').css({
	    top: marginTop + 'px',
	    left:  marginLeft + 'px'
	});
	// end-mycode

    }, 100);

});</pre>
<p></code></p>
<h4>Theory:</h4>
<p>The idea behind this code snippet is quite simple. You may have noted that IE only returns incorrect values while resizing but returns correct values otherwise. By delaying the event with 100 ms we are allowing IE enough time to evaluate  the container&#8217;s size hence returning us correct values.</p>
<h4>Personal Note:</h4>
<p>This is the one of the worst IE bugs I ever encountered in all my web design career if not the worst! The other one is the memory leak when using translucent PNGs in IEs which I&#8217;ll write about in the near future so stay tuned <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Happy coding and leave some comments if you found this helpful or know a better way <img src='http://www.linked.com.mt/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/Linked-Studios/~4/CccHek1R3rI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.linked.com.mt/blog/code/jquery/ie-bug-window-resize-fix/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.linked.com.mt/blog/code/jquery/ie-bug-window-resize-fix/</feedburner:origLink></item>
	</channel>
</rss>

