<?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>MagJournal &#187; Programming</title>
	<atom:link href="http://www.magjournal.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magjournal.com</link>
	<description>Magento Insider Journal</description>
	<lastBuildDate>Sat, 16 Jul 2011 22:32:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to add Facebook Like on a product page in Magento</title>
		<link>http://www.magjournal.com/2011/06/how-to-add-facebook-like-on-a-product-page-in-magento/</link>
		<comments>http://www.magjournal.com/2011/06/how-to-add-facebook-like-on-a-product-page-in-magento/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 07:28:29 +0000</pubDate>
		<dc:creator>Mark Clark</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=309</guid>
		<description><![CDATA[To add a Facebook Like button on each product page in Magento you simply need to add the following code anywhere in your app/design/frontend/theme/theme/template/catalog/product/view.phtml template: &#60;a name="fb_share" type="button"&#62;&#60;/a&#62; &#60;script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"&#62; &#60;/script&#62; &#60;?php elseif($_share == 'facebook_like'): ?&#62; &#60;script src="http://connect.facebook.net/en_US/all.js#xfbml=1"&#62;&#60;/script&#62;&#60;fb:like show_faces="true" width="450"&#62;&#60;/fb:like&#62; &#60;?php endif; ?&#62; &#160;]]></description>
			<content:encoded><![CDATA[<p>To add a Facebook Like button on each product page in Magento you simply need to add the following code anywhere in your app/design/frontend/theme/theme/template/catalog/product/view.phtml template:</p>
<pre>
<div id="LC18">&lt;a name="fb_share" type="button"&gt;&lt;/a&gt;</div>
<div id="LC19">&lt;script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"&gt;</div>
<div id="LC20">&lt;/script&gt;</div>
<div id="LC21">&lt;?php elseif($_share == 'facebook_like'): ?&gt;</div>
<div id="LC22">&lt;script src="http://connect.facebook.net/en_US/all.js#xfbml=1"&gt;&lt;/script&gt;&lt;fb:like show_faces="true" width="450"&gt;&lt;/fb:like&gt;</div>
<div id="LC23">&lt;?php endif; ?&gt;</div>
</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2011/06/how-to-add-facebook-like-on-a-product-page-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Cufon in Magento</title>
		<link>http://www.magjournal.com/2011/04/using-cufon-in-magento/</link>
		<comments>http://www.magjournal.com/2011/04/using-cufon-in-magento/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 18:57:35 +0000</pubDate>
		<dc:creator>Mark Clark</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.magjournal.com/?p=301</guid>
		<description><![CDATA[Cufon is a way (among several other) to add more or less any font as a fully usable font directly on your website &#8211; of course including Magento. Here we&#8217;ll show you how to do that in just a few steps. Find your font. A good resource of free fonts is www.dafont.com, however make sure the font you are about to use has an EULA that fits your needs. Go to the Cufon site and follow the instructions on how to upload your font and get the generated font.js file. Also download the cufon-yui.js ...]]></description>
			<content:encoded><![CDATA[<p>Cufon is a way (among several other) to add more or less any font as a fully usable font directly on your website &#8211; of course including Magento. Here we&#8217;ll show you how to do that in just a few steps.</p>
<ol>
<li>Find your font. A good resource of free fonts is www.dafont.com, however make sure the font you are about to use has an EULA that fits your needs.</li>
<li>Go to the <a href="http://cufon.shoqolate.com" target="_blank">Cufon site</a> and follow the instructions on how to upload your font and get the generated font.js file. Also download the cufon-yui.js script.</li>
<li>Place all the .js files in a new directory in /js/cufon.</li>
<li>Open your template&#8217;s page.xml file and add the below code in its head section:<br />
<code>&lt;</code><code>action</code> <code>method</code><code>=</code><code>"addJs"</code><code>&gt;&lt;</code><code>script</code><code>&gt;cufon/cufon-yui.js&lt;/</code><code>script</code><code>&gt;&lt;/</code><code>action</code><code>&gt;<br />
<code>&lt;</code><code>action</code> <code>method</code><code>=</code><code>"addJs"</code><code>&gt;&lt;</code><code>script</code><code>&gt;cufon/YourFontFile.font.js&lt;/</code><code>script</code><code>&gt;&lt;/</code><code>action</code><code>&gt;</code></code></li>
<li>Now open your template&#8217;s head.phtml file and add the following code at the very end of it:<br />
<code>&lt;</code><code>script</code> <code>type</code><code>=</code><code>"text/javascript"</code><code>&gt;Cufon.replace('h1, h2');&lt;/</code><code>script</code><code>&gt;</code></li>
</ol>
<p>You&#8217;re done. Your h1 and h2 tags are now using your custom font.</p>
<p>You can also target spesific CSS classes by adding the following script tag:</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td></td>
<td>
<div>
<div><code>&lt;</code><code>script</code> <code>type</code><code>=</code><code>"text/javascript"</code><code>&gt;</code></div>
<div><code>Cufon.replace(' .product-title, .price ');</code></div>
<div><code>&lt;/</code><code>script</code><code>&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.magjournal.com/2011/04/using-cufon-in-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

