<?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>Proxyutza blog &#187; HTML</title>
	<atom:link href="http://www.proxyutza.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.proxyutza.com</link>
	<description>About all sorth of things: PHP, Hacks, Scripts, Servers, Linux, Technology, News, Trends</description>
	<lastBuildDate>Wed, 26 May 2010 10:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Magento &#8211; how to add download links on product page</title>
		<link>http://www.proxyutza.com/magento-how-to-add-download-links-on-product-page/</link>
		<comments>http://www.proxyutza.com/magento-how-to-add-download-links-on-product-page/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:46:05 +0000</pubDate>
		<dc:creator>ProXy</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[xHTML]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.proxyutza.com/?p=67</guid>
		<description><![CDATA[This is a serious drawback when using magento, i don&#8217;t know why they havent added this feature yet because other carts have it. Most of shops have products that ofer user guide or other downloads. It&#8217;s nice to be able to find them on the product page. For the moment there is only a small [...]]]></description>
			<content:encoded><![CDATA[<p>This is a serious drawback when using magento, i don&#8217;t know why they havent added this feature yet because other carts have it. Most of shops have products that ofer user guide or other downloads. It&#8217;s nice to be able to find them on the product page.</p>
<p>For the moment there is only a small hack that you can do to be able to display download links on your product page. I learned about it on the magento forums and adjusted the code to fit my theme.</p>
<p>So if you&#8217;re using the default magento theme, do the following:</p>
<p>1. create a new folder under media/catalog/product/ named pdf so it should be media/catalog/product/pdf/</p>
<p>2. Upload your pdf document to yourshop/media/catalog/product/pdf so it should be yourshop/media/catalog/product/pdf/pdfdocument.pdf</p>
<p>3. go to your product managing page under admin panel and edit the product. Now in the short description box you must add the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;divider&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span>Downloads<span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;short-description&quot;</span><span style="color: #339933;">&gt;&lt;</span>a title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Download ATmega88 dev board User Guide&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.youritronics.com/shop/media/catalog/product/pdf/atmega88-dev-userguide.pdf&quot;</span> target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span><span style="color: #339933;">&gt;</span>User Guide<span style="color: #339933;">.</span>pdf <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">392</span> Kb<span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Remember the description box adds &lt;BR&gt; for every new line you create, so place the code immediately after your last character from product description to get a nice alignment. Now your Download section should appear immediately after your short description.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.proxyutza.com/magento-how-to-add-download-links-on-product-page/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to decode ugly eval(gzinflate(base64_decode</title>
		<link>http://www.proxyutza.com/how-to-decode-ugly-evalgzinflatebase64_decode/</link>
		<comments>http://www.proxyutza.com/how-to-decode-ugly-evalgzinflatebase64_decode/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 16:51:42 +0000</pubDate>
		<dc:creator>ProXy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[base64_decode]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[eval]]></category>
		<category><![CDATA[gzinflate]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP. script]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.proxyutza.com/2008/02/21/how-to-decode-ugly-evalgzinflatebase64_decode/</guid>
		<description><![CDATA[I just installed this great new theme, and i though everything is gonna be easy in customizing it. I don&#8217;t have a problem with keeping the authors link in the footer because its his credit and he diserve&#8217;s it but when he forces me trough this coded footer it becomes a problem. So i decided [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed this great new theme, and i though everything is gonna be easy in customizing it. I don&#8217;t have a problem with keeping the authors link in the footer because its his credit and he diserve&#8217;s it but when he forces me trough this coded footer it becomes a problem. So i decided i want to remove this shit from my footer file. Where to start ? i didnt knew anything about gzinflate or base64_decode, so i googled after this things and came across this nice script that does all the job for you. As the author says a little disclaimer is needed so you don&#8217;t understand this wrong.</p>
<p>Disclaimer: I don&#8217;t condone modifying and distributing copyright files, this is simply provided so you can view the plain source to ensure your script isn&#8217;t doing anything malicious on your property ie server.</p>
<p>And here is the script and <a href="http://www.tareeinternet.com/forum/knowledgebase/274-decoding-eval-gzinflate-base64_decode.html" title="decoding">Link to authors page</a>.</p>
<blockquote><p><code>&lt;?php</code><br />
<code>echo "\nDECODE nested eval(gzinflate()) from Taree Internet <www.tareeinternet.com>\n\n";<br />
echo "1. Reading coded.txt\n";<br />
$fp1 = fopen ("coded.txt", "r");<br />
$contents = fread ($fp1, filesize ("coded.txt"));<br />
fclose($fp1);<br />
echo "2. Decoding\n";<br />
while (preg_match("/eval\(gzinflate/",$contents)) {<br />
$contents=preg_replace("/&lt;\?|\?&gt;/", "", $contents); eval(preg_replace("/eval/", "\$contents=", $contents)); } echo "3. Writing decoded.txt\n"; $fp2 = fopen("decoded.txt","w"); fwrite($fp2, trim($contents)); fclose($fp2);<br />
?&gt;</www.tareeinternet.com></code></p></blockquote>
<p>Now the first step you need to take is to save this code in a file named <strong>decrypt.php</strong></p>
<p>Second step is to save your encoded file inside a file name <strong>coded.txt</strong> (make sure you get all the code, i noticed when working with notepad and very long code lines some of the code gets skiped, and you dont want that to happen as the script wont work)</p>
<p>And the third step is to create an empty file named <strong>decoded.txt </strong></p>
<p>Now upload all three files on your webserver and chmod the <strong>decoded.txt</strong> file with 666</p>
<p>Next you need to run the <strong>decrypt.php</strong> file  from your server like this : http://yourdomain.com/path-to-script/decrypt.php. It should display a message about the operation and say &#8220;Writing Decoded.txt&#8221;. Now you are done the <strong>decoded.txt</strong> file that was empty should now have inside it the HTML code that you need to place inside your footer.php file and edit at your needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.proxyutza.com/how-to-decode-ugly-evalgzinflatebase64_decode/feed/</wfw:commentRss>
		<slash:comments>59</slash:comments>
		</item>
	</channel>
</rss>
