<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.9.2" -->
<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/"
	>

<channel>
	<title>Sharpdot Sitewide Feed</title>
	<link>http://www.sharpdotinc.com</link>
	<description>All posts, comments, and pages from all blogs on this WPMU powered site</description>
	<pubDate>Tue, 31 Aug 2010 20:28:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<item>
		<title>When does 75 equal 61?</title>
		<link>http://www.sharpdotinc.com/jdost/2010/08/31/when-does-75-equal-61/</link>
		<comments>http://www.sharpdotinc.com/jdost/2010/08/31/when-does-75-equal-61/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 20:28:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=165</guid>
		<description><![CDATA[When it has a leading zero in actionscript 2 of course.
trace(Number("075"));
// ActionScript 3.0 75
// ActionScript 2.0 61
try it for yourself!
and then add this code somewhere to strip off those zeros
var movieLenStr:String = '0075';
trace(movieLenStr + ' does NOT equal ' + Number(movieLenStr));
while(movieLenStr.charAt(0) == '0') {
     movieLenStr = movieLenStr.substr(1);
}
trace(movieLenStr + ' does equal [...]]]></description>
			<content:encoded><![CDATA[<p>When it has a leading zero in actionscript 2 of course.</p>
<pre>trace(Number("075"));
// ActionScript 3.0 75
// ActionScript 2.0 61</pre>
<p>try it for yourself!</p>
<p><strong>and then </strong>add this code somewhere to strip off those zeros</p>
<pre>var movieLenStr:String = '0075';
trace(movieLenStr + ' does NOT equal ' + Number(movieLenStr));
while(movieLenStr.charAt(0) == '0') {
     movieLenStr = movieLenStr.substr(1);
}
trace(movieLenStr + ' does equal ' + Number(movieLenStr));</pre>
<p>So just to finish the thought &#8211; the problem is that in AS2 it&#8217;s interpreting that leading zero as an octal number and therefore converts it differently. In AS3 it just ignores the zero. It&#8217;s all spelled out in the livedocs:</p>
<blockquote><p>In ActionScript 3.0, the <code>Number()</code> function no longer supports octal, or base 8, numbers. If you supply a string with a leading zero to the ActionScript 2.0 <code>Number()</code>function, the number is interpreted as an octal number, and converted to its decimal equivalent. This is not true with the <code>Number()</code> function in ActionScript 3.0, which instead ignores the leading zero. For example, the following code generates different output when compiled using different versions of ActionScript</p></blockquote>
<p>from this entry: <a href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000048.html">http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000048.html</a></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Blank Configuration Tab for a Custom Module</title>
		<link>http://www.sharpdotinc.com/mdost/2010/08/30/magento-blank-configuration-tab-for-a-custom-module/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/08/30/magento-blank-configuration-tab-for-a-custom-module/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 01:37:34 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=255</guid>
		<description><![CDATA[This should be an easy one. Double check that you have a proper &#60; acl&#62;  node in your modules config.xml file. Then clear the cache and refresh the page.
]]></description>
			<content:encoded><![CDATA[<p>This should be an easy one. Double check that you have a proper &lt; acl&gt;  node in your modules config.xml file. Then clear the cache and refresh the page.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Setting Up A Multi-Website Installation</title>
		<link>http://www.sharpdotinc.com/mdost/2010/08/18/magento-setting-up-a-multi-website-installation/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/08/18/magento-setting-up-a-multi-website-installation/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 00:11:55 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=246</guid>
		<description><![CDATA[In this article I plan to cover how to setup a Magento Multi-Website E-Commerce Installation.
Please Note: This article was written using Magento Version 1.4.1.1. This article may not work on older versions.
Basic Installation:

Download Magento from the website (http://www.magentocommerce.com/download).
Extract Magento using the appropriate utility.
Proceed to install using the Installation GUI.

After going through the installation screens you [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I plan to cover how to setup a Magento Multi-Website E-Commerce Installation.</p>
<p><em><strong>Please Note: </strong>This article was written using Magento Version 1.4.1.1. This article may not work on older versions.</em><br />
<strong>Basic Installation:</strong></p>
<ul>
<li>Download Magento from the website (<a title="Magento Download" href="http://www.magentocommerce.com/download" target="_blank">http://www.magentocommerce.com/download</a>).</li>
<li>Extract Magento using the appropriate utility.</li>
<li>Proceed to install using the Installation GUI.</li>
</ul>
<p>After going through the installation screens you should have a fully functional Magento e commerce site.  We wanted a Multi-Website Installation so we have a few more things to cover.</p>
<p><strong><em>Multi-Website Install: Additional Tasks:<br />
</em></strong></p>
<ul>
<li>For each website you plan on having you need to create it in Magento.</li>
<li>Log In to the admin panel. Go To System &gt; Manage Stores. This brings you to the Manage Stores Page. Here you need to add a new Website, Store, and Store View. Be sure to correctly relate each <em>Website/Store/Store View</em>. We will use the information entered here in the next step.</li>
<li>Now you need to set things up with the web server to notify Magento what site needs to be rendered. This is a decent tutorial on how to configure things <a title="Configuration Details" href="http://www.magentocommerce.com/wiki/multi-store_set_up/multiple-website-setup" target="_blank">Tutorial</a>. I ended up having to add the settings in my .htaccess file.</li>
<li>Now you can create a root category for each website. You will need to set each root category to each websites Store. Do this in System &gt; Manage Stores.</li>
<li>Now when you are doing things in the admin, remember, on most configuration/edit screens , there is a Scope switcher (switches between Sites). This will affect how the config setting are applied to the sites.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Zend Framework: Maintain Password values on form errors</title>
		<link>http://www.sharpdotinc.com/mdost/2010/08/18/zend-framework-maintain-password-values-on-form-errors/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/08/18/zend-framework-maintain-password-values-on-form-errors/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 15:55:12 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=248</guid>
		<description><![CDATA[If you want password fields to maintain there entered values when a form is submitted, but is not valid your need to call &#8220;setRenderPassoword(true)&#8221; on the password element.
]]></description>
			<content:encoded><![CDATA[<p>If you want password fields to maintain there entered values when a form is submitted, but is not valid your need to call &#8220;setRenderPassoword(true)&#8221; on the password element.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Gigya</title>
		<link>http://www.sharpdotinc.com/jdost/2010/08/10/gigya/</link>
		<comments>http://www.sharpdotinc.com/jdost/2010/08/10/gigya/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 03:51:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=143</guid>
		<description><![CDATA[Testing something out with Gigya but stupid wywisyg isn&#8217;t letting me&#8230;

aaaaaaaaaaaaaaaa stuff

var pconf={
  widgetTitle: 'Test Widget', 
  useFacebookMystuff: 'false', 
  defaultContent: '', 
  UIConfig: ''
};
Wildfire.initPost('1414101', 'divWildfirePost', 200, 180, pconf);

]]></description>
			<content:encoded><![CDATA[<p>Testing something out with Gigya but stupid wywisyg isn&#8217;t letting me&#8230;</p>
<p><script src="http://cdn.gigya.com/wildfire/js/wfapiv2.js"></script></p>
<div id="divWildfirePost">aaaaaaaaaaaaaaaa stuff</div>
<p><script>
var pconf={
  widgetTitle: 'Test Widget', 
  useFacebookMystuff: 'false', 
  defaultContent: '<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/jhfq7DAnoh4&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jhfq7DAnoh4&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>', 
  UIConfig: ''
};
Wildfire.initPost('1414101', 'divWildfirePost', 200, 180, pconf);
</script></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Zend FrameWork: Join Query Not working</title>
		<link>http://www.sharpdotinc.com/mdost/2010/07/25/zend-framework-join-query-not-working/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/07/25/zend-framework-join-query-not-working/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 02:27:38 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/frameworks/"><![CDATA[FrameWorks]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/frameworks/zend-framework/"><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=240</guid>
		<description><![CDATA[While creating a SQL query in ZF I kept getting an error with my joins. I was able to fiz this using the code below.

$fooTable = new DbTable_Foo();
        $select = $fooTable -&#62;select(Zend_Db_Table::SELECT_WITH_FROM_PART);
        $select-&#62;setIntegrityCheck(false)	//Set integrity check is what did the trick for [...]]]></description>
			<content:encoded><![CDATA[<p>While creating a SQL query in ZF I kept getting an error with my joins. I was able to fiz this using the code below.</p>
<p><code><br />
$fooTable = new DbTable_Foo();<br />
        $select = $fooTable -&gt;select(Zend_Db_Table::SELECT_WITH_FROM_PART);</p>
<p>        $select-&gt;setIntegrityCheck(false)	//Set integrity check is what did the trick for me.<br />
        	-&gt;join('foo', 'bar.id = foo.id')<br />
			-&gt;where('foo.id = '.id);<br />
        $fooRowset = $this-&gt;getDbTable()-&gt;fetchAll($select);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Zend Studio: How to fix Code Completion, when it stops working</title>
		<link>http://www.sharpdotinc.com/mdost/2010/07/25/zend-studio-how-to-fix-code-completion-when-it-stops-working/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/07/25/zend-studio-how-to-fix-code-completion-when-it-stops-working/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 00:33:07 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=238</guid>
		<description><![CDATA[I have ran into an issue/bug with zend studio/eclipse IDE, every once an a while code completion will stop working. I have not been able to pin down what exactly causes the problem, but here is my fix.
Delete the following file in the Zend Studio workspace:
Zend/workspaces/&#60;your workspace name&#62;/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.dltk.ui.prefs

]]></description>
			<content:encoded><![CDATA[<p>I have ran into an issue/bug with zend studio/eclipse IDE, every once an a while code completion will stop working. I have not been able to pin down what exactly causes the problem, but here is my fix.</p>
<p>Delete the following file in the Zend Studio workspace:</p>
<pre>Zend/workspaces/&lt;your workspace name&gt;/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.dltk.ui.prefs
</pre>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Upgrading to 1.4</title>
		<link>http://www.sharpdotinc.com/mdost/2010/06/09/magento-upgrading-to-1-4/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/06/09/magento-upgrading-to-1-4/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 21:06:36 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=230</guid>
		<description><![CDATA[This is my upgrading Magento to Version 1.4 journey.
Here is how I decided to go about it.

Backup the database!!
Clear all cache and disable caching
Move code into a SVN Branch (assuming you use source controll, if you don&#8217;t you should!)
Remove Old Core Magento Code (just leave community and local modules, keep my theme folder)
Download Full Release [...]]]></description>
			<content:encoded><![CDATA[<p>This is my upgrading Magento to Version 1.4 journey.</p>
<p>Here is how I decided to go about it.</p>
<ul>
<li>Backup the database!!</li>
<li>Clear all cache and disable caching</li>
<li>Move code into a SVN Branch (assuming you use source controll, if you don&#8217;t you should!)</li>
<li>Remove Old Core Magento Code (just leave community and local modules, keep my theme folder)</li>
<li>Download Full Release from Magento&#8217;s Website(don&#8217;t use the downloader, use the full release!)</li>
<li>Extract the New Release into the SVN Branch that was created earlier</li>
<li>If your template was a sub-template of anther theme then you need to merge them together to use in 1.4. This is due to the fact that 1.4 changed a bunch of classes and layouts. Or you could start from a fresh theme and re code it.</li>
<li>Change the theme to a default theme until you are sure that the update went ok.</li>
</ul>
<p>Errors and Bugs I came across:</p>
<ul>
<li>When Trying to run indexing I got the following error, &#8220;can&#8217;t initialize indexer process&#8221;. This was because I was missing some database tables that failed to install during the upgrade. I installed and ran the database repair tool.</li>
<li>Had to disable WYSIWYG so that page templates did not get messed up.</li>
<li>The file &#8220;catalog/product/list/toolbar.phtml&#8221; changed quite a bit, so if you modified this file grab the new one then start from there. Also the file &#8220;page/html/pager.phtml&#8221; needs to be update the the 1.4 version if you modified this file.</li>
<li>When editing or adding products the Category Tree was only showing the Default or Root Category.<br />
To Fix this I just created a new subcategory of the root catalog and move all the categories into this new category then move them back to there original position. This must rebuild what ever was messed up in the database.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Drupal: Adding Nodes Programaticly using drupal_execute()</title>
		<link>http://www.sharpdotinc.com/mdost/2010/06/04/drupal-adding-nodes-programaticly-using-drupal_execute/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/06/04/drupal-adding-nodes-programaticly-using-drupal_execute/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 14:25:14 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=228</guid>
		<description><![CDATA[I recently had to migrate data into Drupal. To do this I decided to just run drupal_execute(), to create the nodes. I ran into a few quirks and thought I would share my trials with the world.
My first issue was, How do I get the new node id that was created by drupal_execute(). Well It [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to migrate data into Drupal. To do this I decided to just run drupal_execute(), to create the nodes. I ran into a few quirks and thought I would share my trials with the world.</p>
<p>My first issue was, How do I get the new node id that was created by drupal_execute(). Well It was easier than I thought. I did a little goggling and found people saying that you should use db_last_id(), well that did not work for me. Instead I used the &#8220;$form_state&#8221; variable that I passed into the drupal_execute function. I noticed that after running drupal_execute() I could use <strong>$form_state['nid']</strong> to retrieve the nodes id. Wow wasn&#8217;t that easy.</p>
<p>The nodes I was creating were using cck fields. I noticed that only the first node&#8217;s cck fields were created correctly. All subsequent nodes were created with cck fields containing just 1 character(I believe this only happened on select fields). To fix this issue I had to use the node id that I retireved and set the cck fields again. Then do a node_save(). Now all my fields are correct and I can go Fishing.:)</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Drupal: Wysiwyg TinyMce not working in IE</title>
		<link>http://www.sharpdotinc.com/mdost/2010/04/21/drupal-wysiwyg-tinymce-not-working-in-ie/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/04/21/drupal-wysiwyg-tinymce-not-working-in-ie/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 19:38:56 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/drupal/"><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=219</guid>
		<description><![CDATA[I recently was developing a Drupal Ver6 site and when doing functionality testing noticed that the TinyMce Editor was not working in IE. The editor buttons would not display. After hours of bug hunting and goggling I finally figured out the problem. IE apparently limits how many css includes you can have, so to resolve [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was developing a Drupal Ver6 site and when doing functionality testing noticed that the TinyMce Editor was not working in IE. The editor buttons would not display. After hours of bug hunting and goggling I finally figured out the problem. IE apparently limits how many css includes you can have, so to resolve the issue I just had to Enable &#8220;<strong>Optimize Css Files</strong>&#8221; from the performance tab.</p>
<p>Hope this saves you hours of searching.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Drupal: Forms, and Form Templates, Contact Form Template</title>
		<link>http://www.sharpdotinc.com/mdost/2010/04/14/drupal-forms-and-form-templates-contact-form-template/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/04/14/drupal-forms-and-form-templates-contact-form-template/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 15:59:41 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/drupal/"><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=215</guid>
		<description><![CDATA[I found this great video about adding a template to the drupal contact form and wanted to make sure I did not forget where I found it. It also has good general information about working with forms.

]]></description>
			<content:encoded><![CDATA[<p>I found this great video about adding a template to the drupal contact form and wanted to make sure I did not forget where I found it. It also has good general information about working with forms.</p>
<p><embed src="http://blip.tv/play/AcX0YwI" type="application/x-shockwave-flash" width="480" height="300" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Wordpress 3 and Custom Post Types</title>
		<link>http://www.sharpdotinc.com/ataylor/2010/04/09/wordpress-3-and-custom-post-types/</link>
		<comments>http://www.sharpdotinc.com/ataylor/2010/04/09/wordpress-3-and-custom-post-types/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 19:01:38 +0000</pubDate>
		<dc:creator>ataylor</dc:creator>
				<category domain="http://www.sharpdotinc.com/ataylor/content/tag/wordpress/"><![CDATA[Wordpress]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/blog/"><![CDATA[Blog]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/cms/"><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/ataylor/?p=112</guid>
		<description><![CDATA[<a href="http://www.sharpdotinc.com/ataylor/files/2010/04/ss2.png"><img class="alignleft size-medium wp-image-113" title="ss2" src="http://www.sharpdotinc.com/ataylor/files/2010/04/ss2-300x195.png" alt="" width="300" height="195" /></a>I am super excited about <a title="Wordpress 3" href="http://codex.wordpress.org/Version_3.0" target="_blank">Wordpress 3</a>! It isn't in the final release yet as of today (April 2010), but it is coming to many a websites real soon. We have been working with a project recently that is using <a href="http://codex.wordpress.org/Version_3.0" target="_blank">version 3</a> (in beta), and various enhancement are going to revolutionize Wordpress as a content management system. Most notably the Custom Posts Feature.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sharpdotinc.com/ataylor/files/2010/04/ss2.png"><img class="alignleft size-full wp-image-113" title="ss2" src="http://www.sharpdotinc.com/ataylor/files/2010/04/ss2.png" alt="" width="466" height="303" /></a>I am super excited about <a title="Wordpress 3" href="http://codex.wordpress.org/Version_3.0" target="_blank">Wordpress 3</a>! It isn&#8217;t in the final release yet as of today (April 2010), but it is coming to many a websites real soon. We have been working with a project recently that is using <a href="http://codex.wordpress.org/Version_3.0" target="_blank">version 3</a> (in beta), and various enhancement are going to revolutionize Wordpress as a content management system. Most notably the Custom Posts Feature.</p>
<p>In a nutshell the way Wordpress is set up in previous versions is like this: at the very basic you have <a title="Posts" href="http://codex.wordpress.org/Writing_Posts" target="_blank">Posts</a>, and <a title="Pages" href="http://codex.wordpress.org/Pages" target="_blank">Pages</a>. These are your (very) basic content types, Posts are items in your blog, and Pages are basic static-type pages.  In previous versions, if you want to have a custom sections or want to hack Wordpress to be more like a content management system, you would have to create a special category (or tag) in your blog, and pull in that category (or tag) on the front end (in a template file) to show the custom content. One of the main issues are that the blog is for blog posts and if you are putting everything into your blog, you have to filter the blogs display so it doesn&#8217;t show your custom content in the blog.</p>
<p>Now with version 3 and Custom Post Types you can create and new &#8220;Post Type&#8221; for this custom content, and even have a separate area in the admin for the content type. Let&#8217;s say for example you want to have a &#8220;Portfolio&#8221; feature that displays your portfolio, but you don&#8217;t want that content in the blog. You will be able to create a &#8220;Portfolio&#8221; custom post type and this area will now show up as a collapsible section like your Pages, and Posts do in the admin.</p>
<p>This feature is great for clients who need a straight forward  management system for their content they update. If you want to add addition info to go along with your custom post type you can create a series of <a title="Taxonomies" href="http://codex.wordpress.org/WordPress_Taxonomy" target="_blank">Taxonomies</a> which were introduced in version 2.3. For example: Let&#8217;s say your Portfolio &#8220;post&#8221; needs associated fields with it like Client, Project Type, and Industry, instead of using the custom fields feature (which is sure to confuse most clients), you can use the taxonomies and pull that data in. Taxonomies are a lot like categories are in the blog, except they can be used as categories for your custom post type. Now in the admin panel when creating a new &#8220;Portfolio&#8221; post, you will have taxonomies displaying like categories do, and can select/create the appropriate related info to go along with your Portfolio post.</p>
<p>The custom posts require you to <a title="register_post_type()" href="http://codex.wordpress.org/Function_Reference/register_post_type" target="_blank">add some code into your site</a>, but a cool plug-in called <a href="http://wordpress.org/extend/plugins/custom-post-type-ui/" target="_blank">Custom Post Type UI</a> lets you create your custom post types and custom taxonomies in the back-end. Check out their video on the plug-in page which explains custom posts in greater detail using the example of &#8220;Movies&#8221; as a custom post type.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Eclipse: Setting up FTP in Eclipse Galileo</title>
		<link>http://www.sharpdotinc.com/mdost/2010/04/07/eclipse-setting-up-ftp-in-eclipse-galileo/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/04/07/eclipse-setting-up-ftp-in-eclipse-galileo/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 03:58:04 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/productivity-applications/eclipse/"><![CDATA[Eclipse]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/productivity-applications/"><![CDATA[Productivity Applications]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=211</guid>
		<description><![CDATA[The method I used to get FTP in Eclipse was to install Aptana Studio and Use the FTP client that came with it.

 Once you get Aptana Installed you will need to open the Aptana Web perspective (Window -&#62; Open Perspective-&#62; Other -&#62; Aptana Web).
Once you have the perspective open you should see a tab [...]]]></description>
			<content:encoded><![CDATA[<p>The method I used to get FTP in Eclipse was to install <a title="Aptana Studio Download" href="http://www.aptana.org/studio/download" target="_blank">Aptana Studio</a> and Use the FTP client that came with it.</p>
<ul>
<li> Once you get Aptana Installed you will need to open the <strong>Aptana Web</strong> perspective (<strong>Window -&gt; Open Perspective-&gt; Other -&gt; Aptana Web</strong>).</li>
<li>Once you have the perspective open you should see a tab called <strong>File</strong>, if you don&#8217;t see this tab you can open it by going to <strong>Window -&gt; Show View -&gt; File.</strong></li>
<li><strong> </strong>In the File tab there should be an item called FTP, if you right click on it you will be presented with ftp options to create a Ftp Site.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Drupal: Complex View Layout, Getting Down and Dirty!</title>
		<link>http://www.sharpdotinc.com/mdost/2010/04/06/drupal-complex-view-layout-getting-down-and-dirty/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/04/06/drupal-complex-view-layout-getting-down-and-dirty/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 15:47:21 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/tag/drupal/"><![CDATA[Drupal]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/display-data/"><![CDATA[display data]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/views/"><![CDATA[views]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=206</guid>
		<description><![CDATA[Drupal provides a ton of great functionality, but every now and then you get a designer, Amber   , who just try&#8217;s to come up with a design for a Drupal site that challenges your knowledge of the system. Well thanks to the challenge I have found a nice bit of functionality to allow [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal provides a ton of great functionality, but every now and then you get a designer, Amber <img src='http://www.sharpdotinc.com/mdost/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  , who just try&#8217;s to come up with a design for a Drupal site that challenges your knowledge of the system. Well thanks to the challenge I have found a nice bit of functionality to allow very custom views.</p>
<p>My challage was to have a block created by a View, pull the top 3 news nodes (basically like a blog) and display it on the homepage side-bar. Well that is not difficult, I even created a template for the block. Well now we wanted to show additional data for the first item in the view and not for the rest.</p>
<p><strong>Question:</strong> Well, there is not a loop or counter to check for in the template file so how was I to get this done?<br />
<strong>Answer:</strong> Using a Views Attachment Display.</p>
<p>Drupal Views have a display type called <em><strong>attachment</strong></em>. It is exactly as its name sounds,  a view that attaches to another. You can set it to display the additional data that you would like to display for the first item(or how ever many you want) then tell the Attachment Display to display before/after another View. Just change the offset of the main view to compensate for the items brought in by the Attachment.</p>
<p>Hope this helps others.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento strenthened by major investment</title>
		<link>http://www.sharpdotinc.com/jdost/2010/03/17/magento-strenthened-by-major-investment/</link>
		<comments>http://www.sharpdotinc.com/jdost/2010/03/17/magento-strenthened-by-major-investment/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:08:56 +0000</pubDate>
		<dc:creator>jdost</dc:creator>
				<category domain="http://www.sharpdotinc.com/jdost/content/category/uncategorized/"><![CDATA[Uncategorized]]></category>
		<category domain="http://www.sharpdotinc.com/jdost/content/tag/magento/"><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/jdost/?p=139</guid>
		<description><![CDATA[Word came out Monday that Magento has it&#8217;s first major investment &#8211; $22.5 Million from an unnamed source. The speculation is that it&#8217;s from PayPal which would make sense because of a recent tightening of their relationship. Whoever the source is it means a brighter future during this growth period for online commerce and Magento [...]]]></description>
			<content:encoded><![CDATA[<p>Word came out Monday that <a href="http://www.magentocommerce.com/">Magento</a> has it&#8217;s first major investment &#8211; $22.5 Million from an unnamed source. The speculation is that it&#8217;s from PayPal which would make sense because of a <a href="http://www.marketwatch.com/story/magento-and-paypal-expand-relationship-to-drive-e-commerce-innovation-2010-03-08?reflink=MW_news_stmp">recent tightening of their relationship</a>. Whoever the source is it means a brighter future during this growth period for online commerce and Magento plans to use the capital for mobile commerce and SaaS functionality so they&#8217;re hoping to ride that wave too it sounds like.</p>
<p><a href="http://techcrunch.com/2010/03/15/magento-scores-22-5-million-for-open-source-e-commerce-platform-play/">Here&#8217;s a more thorough write up</a> and <a href="http://www.magentocommerce.com/blog/comments/magento-secures-its-first-investment/">Magento&#8217;s official announcement</a>. I was really impressed to see that the word <a href="http://www.google.com/trends?q=magento%2C+ecommerce">&#8220;Magento&#8221; is now searched more than &#8220;eCommerce&#8221; </a>which is a little mind-blowing by itself and interesting to compare the search trail for the old dog oscommerce. <span style="text-decoration: line-through">Hmm &#8211; maybe that includes a lot of people searching for magento the <strong>color?</strong></span><strong> </strong><span style="text-decoration: line-through"><strong><br />
</strong></span></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Web Design &#8220;Best Practices&#8221; for Print Designers &#8211; Part 1</title>
		<link>http://www.sharpdotinc.com/ataylor/2010/03/12/web-design-best-practices-for-print-designers-part-1/</link>
		<comments>http://www.sharpdotinc.com/ataylor/2010/03/12/web-design-best-practices-for-print-designers-part-1/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 20:19:10 +0000</pubDate>
		<dc:creator>ataylor</dc:creator>
				<category domain="http://www.sharpdotinc.com/ataylor/content/tag/design/"><![CDATA[Design]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/category/resources/"><![CDATA[Resources]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/css/"><![CDATA[css]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/html/"><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/ataylor/?p=97</guid>
		<description><![CDATA[Over the years as a designer and web monkey, I have witnessed the situation where a print designer creates a website. Not understanding the technical limitations, and other nuances of this medium the print designer usually creates a layout that has technical issues that the developer has to code up. In the case where the [...]]]></description>
			<content:encoded><![CDATA[<p>Over the years as a designer and web monkey, I have witnessed the situation where a print designer creates a website. Not understanding the technical limitations, and other nuances of this medium the print designer usually creates a layout that has technical issues that the developer has to code up. In the case where the designer does it all, the websites mark up  usually has many issues that impact, S.E.O., usability, accessibility and a host of other problems. The web is a relatively new medium to design for and always has some new way to do something, but that being said it is now time for print designers to come up to speed with the web.</p>
<p>I would like to note this is just a starting point and there are a lot of points to cover, some that won&#8217;t make it into this post and multiple posts will follow. If you have something to add please fell free to <a href="#respond">leave a comment</a>.</p>
<h2>For the Print Designer Creating the Design and HTML</h2>
<ol>
<li><strong>Don&#8217;t Export HTML from Photoshop</strong><br />
I have seen this time and time again, and with the &#8220;occasional&#8221; exception of HTML emails, this is not what you should do. There are multiple issues with this method of creating web pages. First: The search engines (and site visitors) only see big pictures held in place by a convoluted set of tables. The web&#8217;s purpose is to present multiple types of content on a page like images, body text, headlines, lists, video, flash, and all kinds of media. when Photoshop creates html it sticks all of your design&#8217;s text into images which essentially hides the content from the search engines. Also by using tables to hold the page together it obstructs the mark up and makes it harder for search engines to find any text on your pages (if there is any). Some may say &#8220;We&#8217;ll just add alt tags with the content&#8221;. Alt tags are for image descriptions not body copy or any kind of content. This still hurts you page rank. if you have not learned enough to code up your own page yet, build your site in Dreamweaver&#8217;s design mode. This will get you started to bridge the gap and eventually be able to code your own html, and css.</li>
<li><strong>Tables are Tables, not Div&#8217;s</strong><br />
Tables used as structural elements on the web page had there day when CSS was far from being implemented. However CSS is here and it empowers the designer to new levels. Where do you use tables? When the deign has a data table of course. One thing that really helps to code up pure css designs are CSS frameworks like <a href="http://960.gs/" target="_blank">960</a> and <a href="http://www.blueprintcss.org/" target="_blank">Blueprint</a>. They have PSD and IA templates to help design as well as HTML generators to make your life easier.<strong><br />
</strong></li>
<li><strong>I Don&#8217;t Know How To Code HTML and CSS</strong><br />
It is time to learn, the future is the web, heck the present is the web! It is really not that hard once you get going, there are a million places to learn on the net. Here are a couple of them:</p>
<ul>
<li><a href="http://www.w3.org/Style/Examples/011/firstcss" target="_blank">http://www.w3.org/Style/Examples/011/firstcss</a></li>
<li><a href="http://www.htmlcodetutorial.com/">http://www.htmlcodetutorial.com/</a></li>
<li><a href="http://css-tricks.com/what-beautiful-html-code-looks-like/" target="_blank">http://css-tricks.com/what-beautiful-html-code-looks-like/</a></li>
<li>If you want to pay to learn: <a href="http://www.lynda.com/" target="_blank">Lynda.com</a></li>
<li><a href="http://csshtmltutorial.com/" target="_blank">http://csshtmltutorial.com/</a></li>
<li><a href="http://www.netmag.co.uk/zine/develop-css/from-mess-to-css" target="_blank">http://www.netmag.co.uk/zine/develop-css/from-mess-to-css</a></li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Adding CSS Resets in Your Drupal Zen Theme</title>
		<link>http://www.sharpdotinc.com/ataylor/2010/03/04/adding-css-resets-in-your-drupal-zen-theme/</link>
		<comments>http://www.sharpdotinc.com/ataylor/2010/03/04/adding-css-resets-in-your-drupal-zen-theme/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 21:51:24 +0000</pubDate>
		<dc:creator>ataylor</dc:creator>
				<category domain="http://www.sharpdotinc.com/ataylor/content/tag/drupal/"><![CDATA[Drupal]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/css/"><![CDATA[css]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/browsers/"><![CDATA[Browsers]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/drupal-zen/"><![CDATA[Drupal Zen]]></category>
		<category domain="http://www.sharpdotinc.com/ataylor/content/tag/platforms/"><![CDATA[Platforms]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/ataylor/?p=89</guid>
		<description><![CDATA[<a href="http://www.sharpdotinc.com/ataylor/files/2010/03/zen-logo.png"><img class="alignleft size-full wp-image-92" src="http://www.sharpdotinc.com/ataylor/files/2010/03/zen-logo.png" alt="" width="300" height="177" /></a>

We at <a href="http://www.sharpdotinc.com/" target="_blank">Sharpdot</a> recently completed a large series of websites using <a href="http://drupal.org/" target="_blank">Drupal</a>. After months of designing comps, coding them up, adding all of the special functionality, we discovered some style issues (and it wasn't just IE problems this time!) After quite some time of trying to figure out what was going on, we discovered it was that the <a href="http://drupal.org/project/zen" target="_blank">Zen theme</a> does not add reset styles to there theme!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sharpdotinc.com/ataylor/files/2010/03/zen-logo.png"><img class="alignleft size-full wp-image-92" src="http://www.sharpdotinc.com/ataylor/files/2010/03/zen-logo.png" alt="" width="300" height="177" /></a></p>
<p><strong>THE QUICK ANSWER: Put your resets at the very beginning of your html-elements.css file</strong></p>
<p>We at <a href="http://www.sharpdotinc.com/" target="_blank">Sharpdot</a> recently completed a large series of websites using <a href="http://drupal.org/" target="_blank">Drupal</a>. After months of designing comps, coding them up, adding all of the special functionality, we discovered some style issues (and it wasn&#8217;t just IE problems this time!) After quite some time of trying to figure out what was going on, we discovered it was that the <a href="http://drupal.org/project/zen" target="_blank">Zen theme</a> does not add reset styles to there theme!</p>
<p>Unfortunately there has been an argument to not add reset styles in the <a href="http://drupal.org/project/zen" target="_blank">Drupal Zen theme</a>. This is quite concerning, mainly because our mission as a web shop is to code our sites up to be pixel perfect to the PSD&#8217;s and comps of the project. The arguments I have seen against resets are that they want the ability to style things quickly without being hampered by having to restyle all of the typographical elements and just let the browser do the work with it&#8217;s defaults. Well this can create many problems especially between  Windows and Mac platforms and the differences in the way they render their text. Our standard operating procedure is to have resets at the beginning of all styles them restore defaults to the page elements. This approach normally works great, however we are dealing with Drupal here, and Zen&#8217;s sub-theme approach.</p>
<p>So where do you start? Well my first thoughts were to add a new resets.css file to the theme and include it using the .info file in the sub-theme like you are supposed to do for JavaScripts and IE hack stylesheets. Well after doing this the styles kept on being added after other elements I was trying to reset first in the stylesheet order. After more research and trial and error, I found that reset styles are supposed to go into your html-elements.css file at the beginning of the code. For some reason this is the way the Zen Drupal theme people made it work. I am sure there is some argument out there for it, but there you go it&#8217;s Drupal, where nothing is that simple, but it can do just about anything.</p>
<p>One thing we have built here at Sharpdot is a library of starting themes, boilerplate&#8217;s and functionality which we can use to streamline our development as well as keep a consistency on all projects. One of the next things I have on my list is to make a Drupal Zen theme boilerplate with our edits available (with CSS resets!), check back for that.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Import Multiple Images or Remove Images durring Batch Import</title>
		<link>http://www.sharpdotinc.com/mdost/2010/03/02/magento-import-multiple-images-or-remove-images-durring-batch-import/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/03/02/magento-import-multiple-images-or-remove-images-durring-batch-import/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 22:01:22 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/category/php/"><![CDATA[PHP]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/category/magento/"><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=179</guid>
		<description><![CDATA[This article will detail how to adjust the Magento Batch Import (Dataflow) to allow uploading multiple gallery images, and also how to add a way to remove all images during Import/Update.
These are the accompaning files: (Please reference this file if you have any quetion about the code examples below. The WYSIWYG editor was messing things [...]]]></description>
			<content:encoded><![CDATA[<p>This article will detail how to adjust the Magento Batch Import (Dataflow) to allow uploading multiple gallery images, and also how to add a way to remove all images during Import/Update.</p>
<p>These are the accompaning files: <strong>(Please reference this file if you have any quetion about the code examples below. The WYSIWYG editor was messing things up. mainly &#8220;&amp;&#8217;s&#8221; and &#8220;empty()&#8217;s&#8221; )</strong><br />
1. <a href='http://www.sharpdotinc.com/mdost/files/2010/03/modifiedsaverow_magento.txt' target="_blank">Full Code Example</a></p>
<p>First we are going to have to modify the the adapter used to save/update products during the import process. The file used is located here: &#8220;<strong>/app/code/core/Mage/Catalog/Model/Convert/Adapter/Product.php</strong>&#8220;. Since we are going to be modifying this file we should extend it so we don&#8217;t change any core files. There are plenty of articles that detail how to extend/customize Magento files so I will not go into it.</p>
<p>First lets tackle adding multiple gallery images. These are images that appear on the products detail page below the main image. We will be making all our edits in the Product.php file mentioned in the previous paragraph. Find the <em><strong>SaveRow</strong></em> method. In this method find the code where Magento saves the products images(should be similar to the following code and around line 630).<br />
[sourcecode language='php']<br />
        $imageData = array();<br />
        foreach ($this->_imageFields as $field) {<br />
            if (!empty($importData[$field]) &#038;&#038; $importData[$field] != &#8216;no_selection&#8217;) {<br />
                if (!isset($imageData[$importData[$field]])) {<br />
                    $imageData[$importData[$field]] = array();<br />
                }<br />
                $imageData[$importData[$field]][] = $field;<br />
            }<br />
        }</p>
<p>        foreach ($imageData as $file => $fields) {<br />
            try {<br />
                $product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $file, $fields);<br />
            }<br />
            catch (Exception $e) {}<br />
        }<br />
[/sourcecode]</p>
<p>First thing we will do is change the <strong>addImageToMediaGallery</strong> so that when it saves the image it is not excluded(saves you from having to re-edit the products after import to make the images appear.).<br />
[sourcecode language='php']</p>
<p>        foreach ($imageData as $file => $fields) {<br />
            try {<br />
            	// changed to not mark imported images as &#8216;excluded&#8217; &#8211; see http://www.magentocommerce.com/boards/viewthread/6971/P15/ and http://www.magentocommerce.com/boards/viewthread/40007/<br />
                //$product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $file, $fields);<br />
                $product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . $file, $fields, false, false);<br />
            }<br />
            catch (Exception $e) {}<br />
        }<br />
[/sourcecode]</p>
<p>Now we can add the code to import multiple gallery images. Just below the code above add this new code:<br />
[sourcecode language='php']<br />
            //Now add each gallery image.<br />
        if (!empty($importData['gallimg'])) {<br />
			//$importData['gallimg'] should be a list of images to import seperated by &#8220;;&#8221;<br />
			$images = explode(&#8220;;&#8221;, $importData['gallimg']);<br />
			foreach($images as $image){<br />
				//Don&#8217;t add field for gallimg&#8217;s<br />
				try {<br />
					//made second param null so it is not added as the main image, small or thumb. just added to the gallery<br />
					$product->addImageToMediaGallery(Mage::getBaseDir(&#8216;media&#8217;) . DS . &#8216;import&#8217; . trim($image), NULL, false, false);<br />
				}<br />
				catch (Exception $e) {}</p>
<p>			}<br />
        }<br />
[/sourcecode]<br />
In order to use this new code you need to add a new column to your import spreadsheet. Label the column &#8220;gallimg&#8221;. This needs to be a list of the images you want to import separated by a &#8220;;&#8221;.<br />
Now that was not too hard was it?</p>
<p>Now we can address removing images during the import/update process. In order to remove all the images you will need to continue modifying the saveRow method. Add the following code just above the code we previously edited.</p>
<p>[sourcecode language='php']<br />
        //MRD added to remove all images for product before uploading new images<br />
        if(isset($importData['remove_all_images']) &#038;&#038; $importData['remove_all_images']==&#8221;yes&#8221; ){<br />
	        //check if gallery attribute exists then remove all images if it exists<br />
	        //Get products gallery attribute<br />
	        $attributes = $product->getTypeInstance()->getSetAttributes();<br />
        	if (isset($attributes['media_gallery'])) {<br />
				$gallery = $attributes['media_gallery'];<br />
				//Get the images<br />
				$galleryData = $product->getMediaGallery();<br />
				foreach($galleryData['images'] as $image){<br />
				//If image exists<br />
			    	if ($gallery->getBackend()->getImage($product, $image['file'])) {<br />
			            $gallery->getBackend()->removeImage($product, $image['file']);<br />
			        }<br />
				}<br />
			}<br />
			#$gallery->clearMediaAttribute($product, array(&#8216;image&#8217;,&#8217;small_image&#8217;,'thumbnail&#8217;));<br />
        }<br />
        //END Remove Images<br />
[/sourcecode]</p>
<p>To utilize the code we just created you will need to add the &#8220;remove_all_images&#8221; column to your spreadsheet and set the value to &#8220;yes&#8221;.</p>
<p>This was written using Magento version 1.2.1 so your files could be slightly different, but should still work if you follow the instruction. If you have any problems please leave a productive comment and I will see how I can help.</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Magento: Customer Desired Delivery Date Module</title>
		<link>http://www.sharpdotinc.com/mdost/2010/02/22/magento-customer-desired-delivery-date-module/</link>
		<comments>http://www.sharpdotinc.com/mdost/2010/02/22/magento-customer-desired-delivery-date-module/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:59:21 +0000</pubDate>
		<dc:creator>Mike D</dc:creator>
				<category domain="http://www.sharpdotinc.com/mdost/content/tag/magento/"><![CDATA[magento]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/e-commerce/"><![CDATA[E-Commerce]]></category>
		<category domain="http://www.sharpdotinc.com/mdost/content/tag/shipping/"><![CDATA[shipping]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/mdost/?p=171</guid>
		<description><![CDATA[This Magento Module allows you to add a date picker to the checkout process, which the customer can use to input a desired delivery date. There is minimal setup required. You will need to add the supplied code to your template pages in order to display the date-picker on the checkout process and add one [...]]]></description>
			<content:encoded><![CDATA[<p>This Magento Module allows you to add a date picker to the checkout process, which the customer can use to input a desired delivery date. There is minimal setup required. You will need to add the supplied code to your template pages in order to display the date-picker on the checkout process and add one line of code to the admin template. As soon as I find a convenient way to add the necessary block to the template files with out having to modify the template files I will remove the manual part of the Module.</p>
<p>Here is a link to the modules page: <a href="http://www.magentocommerce.com/extension/2983/desired-delivery-date" target="_blank">Delivery Date Plugin</a></p>
<p>To Add to email templates: (provided by Magento user: mrgniarf)<br />
You can modify yourtheme/yourdesign/template/email/order/items.phtml and before : </p>
<p>[sourcecode language='php']</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border:1px solid #bebcb7;background:#f8f7f5">
<thead>
<tr>
<th align="left" bgcolor="#d9e5ee">__(&#8216;Sku&#8217;) ?></th>
<th align="left" bgcolor="#d9e5ee">__(&#8216;Item&#8217;) ?></th>
<th align="right" bgcolor="#d9e5ee">__(&#8216;Subtotal&#8217;) ?></th>
<th align="center" bgcolor="#d9e5ee">__(&#8216;Qty&#8217;) ?></th>
</tr>
</thead>
<p>[/sourcecode]</p>
<p>Add:</p>
<p>[sourcecode language='php']</p>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<thead>
<tr>
<th align="left" width="100%" bgcolor="#d9e5ee">__(&#8216;Desired Arrival Date&#8217;) ?></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" style="padding:7px 9px 9px 9px;border:1px solid #bebcb7;border-top:0;background:#f8f7f5">
                helper(&#8216;deliverydate&#8217;)->getFormatedDeliveryDate($_order->getShippingArrivalDate()); ?>
            </td>
</tr>
</tbody>
</table>
<p> <br />
[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
	<item>
		<title>Jeff Ritter</title>
		<link>http://www.sharpdotinc.com/content/jeff-ritter/</link>
		<comments>http://www.sharpdotinc.com/content/jeff-ritter/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 20:20:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category domain="http://www.sharpdotinc.com/content/category/testimonial/"><![CDATA[Testimonial]]></category>

		<guid isPermaLink="false">http://www.sharpdotinc.com/?p=536</guid>
		<description><![CDATA[&#8220;I&#8217;m thrilled with the work the Sharpdot has done for us.  Our web traffic has increased over 1000% in the first month of our new site&#8217;s release!&#8221;

Jeff Ritter
High Performance Division Manager &#8211; Essex Parts Services Inc.

]]></description>
			<content:encoded><![CDATA[<p>&#8220;I&#8217;m thrilled with the work the Sharpdot has done for us.  Our web traffic has increased over 1000% in the first month of our new site&#8217;s release!&#8221;<br />
<span><br />
<strong>Jeff Ritter</strong><br />
High Performance Division Manager &#8211; <a href="http://www.essexparts.com/">Essex Parts Services Inc.</a><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		</item>
</channel>
</rss>
<!-- 195 queries 0.434 seconds. -->
