<?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>MS Internet &#187; Code</title>
	<atom:link href="http://www.msinternet.co.uk/blog/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.msinternet.co.uk/blog</link>
	<description>Yet another blog (hopefully a useful one though)</description>
	<lastBuildDate>Wed, 23 Jun 2010 20:09:05 +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: jQuery Accordian Menu</title>
		<link>http://www.msinternet.co.uk/blog/2010/03/magento-jquery-accordian-menu/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/03/magento-jquery-accordian-menu/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 13:58:06 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=37</guid>
		<description><![CDATA[Ok here's how to make a dynamic jQuery sliding accordian menu in Magento, as seen on http://www.waterfrontbathrooms.com/.

Waterfront bathrooms also has a dynamic tree menu system to deal with there being more than 2 levels of categories, but I'll cover this in a future post.]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/03/magento-jquery-accordian-menu/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Handy code snippets</title>
		<link>http://www.msinternet.co.uk/blog/2010/03/magento-handy-code-snippets/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/03/magento-handy-code-snippets/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 12:57:45 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=67</guid>
		<description><![CDATA[Here&#8217;s a short list of magento codes to do some of the simple stuff. It&#8217;s a little empty at the moment but I&#8217;ll keep adding to it over time. Check if customer is logged in &#60;?php $_customer = Mage::getSingleton('customer/session')-&#62;isLoggedIn(); if ($_customer) { // do stuff } ?&#62; Get product image &#60;?php echo $this-&#62;helper('catalog/image')-&#62;init($_product, 'image'); ?&#62; [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/03/magento-handy-code-snippets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Show image from a random product in a specific category</title>
		<link>http://www.msinternet.co.uk/blog/2010/03/magento-show-image-from-a-random-product-in-a-specific-category/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/03/magento-show-image-from-a-random-product-in-a-specific-category/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 12:39:54 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=53</guid>
		<description><![CDATA[A website we developed recently required some boxes on the homepage that link through to a specific category each, and each box needed to show an image from a random product from within that category. If you would like to do the same, here&#8217;s how it&#8217;s done: Create a PHTML file in your template folder, [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/03/magento-show-image-from-a-random-product-in-a-specific-category/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Swap product image on thumbnail click</title>
		<link>http://www.msinternet.co.uk/blog/2010/03/magento-swap-product-image-on-thumbnail-click/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/03/magento-swap-product-image-on-thumbnail-click/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 12:10:27 +0000</pubDate>
		<dc:creator>ben</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=47</guid>
		<description><![CDATA[One of the most frequent requests we get for Magento sites is to tame what the thumbnails do on the product page. Of course there are plenty of plugins for adding a lightbox of some sort, but if you simply want to swap out the image in the zoomer window for one of the thumbnails, [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/03/magento-swap-product-image-on-thumbnail-click/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Magento SagePay Form</title>
		<link>http://www.msinternet.co.uk/blog/2010/02/magento-sagepay-form/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/02/magento-sagepay-form/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:15:11 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=42</guid>
		<description><![CDATA[SagePay is the UK and Ireland's most popular payment gateway and Magento is rapidly gaining popularity so the absence of a SagePay Form Magento plugin is not ideal. Hopefully we have helped to fill that gap with our free plugin available at http://www.magentocommerce.com/extension/3060/sagepay-formerly-protx-form.]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/02/magento-sagepay-form/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>MS Internet Magento Easy Pre-Installer</title>
		<link>http://www.msinternet.co.uk/blog/2010/02/ms-internet-magento-easy-pre-installer/</link>
		<comments>http://www.msinternet.co.uk/blog/2010/02/ms-internet-magento-easy-pre-installer/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 11:42:50 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=38</guid>
		<description><![CDATA[To speed up the process of uploading the Magento software without SSH access we have created this easy downloader to fetch and unpack the files and install the sample data in a MySQL database.]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2010/02/ms-internet-magento-easy-pre-installer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get ImageMagick to Convert pdf&#8217;s with GhostScript</title>
		<link>http://www.msinternet.co.uk/blog/2009/12/how-to-get-imagemagick-to-convert-pdfs-with-ghostscript/</link>
		<comments>http://www.msinternet.co.uk/blog/2009/12/how-to-get-imagemagick-to-convert-pdfs-with-ghostscript/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 17:22:04 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.msinternet.co.uk/blog/?p=23</guid>
		<description><![CDATA[Ok, this is one for the nerds. I have spent most of today trying to figure out how to get ImageMagick to convert a pdf file to an image. First I installed ImageMagick fine: &#62; wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz &#62; tar xvfz ImageMagick.tar.gz &#62; cd ImageMagick-6.5.8 &#62; ./configure &#62; make &#62; make install Then I installed the [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2009/12/how-to-get-imagemagick-to-convert-pdfs-with-ghostscript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to fix PushIt WordPress plugin wp-admin 500 Error</title>
		<link>http://www.msinternet.co.uk/blog/2009/11/how-to-fix-pushit-wordpress-plugin-wp-admin-500-error/</link>
		<comments>http://www.msinternet.co.uk/blog/2009/11/how-to-fix-pushit-wordpress-plugin-wp-admin-500-error/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 20:21:48 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://msinternet.co.uk/blog/?p=14</guid>
		<description><![CDATA[We had a client with a mysterious plugin related server error when they tried to access thair admin dashboard with output: /*pushit_user_row_phone_variable_define_start*/ $phone = isset($user_object-&#62;phone_number) ? get_user_mobile($user_object) : &#8220;not set&#8221;; /*pushit_user_row_phone_variable_define_stop*//*pushit_user_row_phone_variable_insert_start*/break; case &#8216;phone&#8217;: $r .= &#8220;$phone&#8221;;/*pushit_user_row_phone_variable_insert_stop*/ They said that the problem had happened immediately after installing the PushIt plugin. So, we took the usual action [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2009/11/how-to-fix-pushit-wordpress-plugin-wp-admin-500-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Utility PHP Email Detection Script</title>
		<link>http://www.msinternet.co.uk/blog/2009/11/utility-php-email-detection-script/</link>
		<comments>http://www.msinternet.co.uk/blog/2009/11/utility-php-email-detection-script/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 20:17:52 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://msinternet.co.uk/blog/?p=8</guid>
		<description><![CDATA[I wrote a little function to check the formatting of an email so I thought I would share it with the world: &#60;?php function is_email($email) { if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){ return 1; } else { return 0; } } ?&#62;]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2009/11/utility-php-email-detection-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ajax filled form field errors in firefox and some IE wierdness too</title>
		<link>http://www.msinternet.co.uk/blog/2009/11/ajax-filled-form-field-errors-in-firefox-and-some-ie-wierdness-too/</link>
		<comments>http://www.msinternet.co.uk/blog/2009/11/ajax-filled-form-field-errors-in-firefox-and-some-ie-wierdness-too/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 20:16:46 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://msinternet.co.uk/blog/?p=6</guid>
		<description><![CDATA[I spent ages looking for the answer to this one and it ended up really simple so I thought I would share it. We had a web form where a select field was chosen. Then a second select was populated by ajax depending on the value of the first select. All pretty standard except that [...]]]></description>
		<wfw:commentRss>http://www.msinternet.co.uk/blog/2009/11/ajax-filled-form-field-errors-in-firefox-and-some-ie-wierdness-too/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
