<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <title>Drupal High</title>
 <link>http://drupalhigh.onsugar.com</link>
 <description>Simple musings of a Drupal developer.</description>
 <language>en</language>
 <atom:link href="http://drupalhigh.onsugar.com/category/tech/rss" rel="self" type="application/rss+xml" />
<item>
 <title>Taxonomy Enhancer is not out for Drupal 6</title>
 <link>http://drupalhigh.onsugar.com/2400944</link>
 <description>&lt;a href=&quot;http://drupalhigh.onsugar.com/2400944&quot;&gt;&lt;/a&gt;&lt;p&gt;Thats too bad, this is a really useful module for adding data to taxonomy terms and vocubularies. There is a &lt;a href=&quot;http://drupal.org/node/305736&quot;&gt;patch brewing&lt;/a&gt;, but its just not ready yet. I had a client that was using taxonomy to define seasons for products (for example &quot;Fall 08&quot;, &quot;Holiday 09&quot;, etc). The taxonomy part was working great, but how do you know when a season starts or ends? These aren&#039;t necessarily your standard spring/summer/fall/winter, they can be fairly arbitrary. It would be nice to be able to store that information about a term without having to write a whole custom module, but unfortunately no Taxonomy Enhancer.&lt;br /&gt;&lt;br /&gt;So how hard is it to replicate the functinality from that module? Not too much trouble, just 2 hooks in fact.&lt;br /&gt;&lt;br /&gt;hook_form_alter() checking for a &lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;$form_id&lt;/span&gt; of &lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;&#039;taxonomy_form&lt;/span&gt;&lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;_term&lt;/span&gt;&lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;&#039;&lt;/span&gt; will let us add the fields to the page. In our case we only wanted this for terms in one vocabulary, so we also checked the vid and that the user had permission to edit the product seasons.&lt;br /&gt;&lt;br /&gt;the second part is using hook_taxonomy() to save the date. This hook gets called anytime a term or vcabulary is inserted, updated, or deleted. So we check to make sure that&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;its a term being modified (not a vocabulary) (&lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;$type == &#039;term&#039;&lt;/span&gt;) &lt;/li&gt;
&lt;li&gt;its in the the vocabulary we&#039;re interested in (&lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;$array[&#039;vid&#039;] == SEASON_VID&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;the user has permission to edit this kind of data (&lt;span style=&quot;background-color: #c0c0c0;&quot;&gt;user_access(&#039;administer seasons&#039;)&lt;/span&gt;)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If all of the above are true we store the data, and we&#039;re free to call it back later and make sure we&#039;re only showing the user the product seasons s/he is supposed to see!&lt;/p&gt;</description>
 <comments>http://drupalhigh.onsugar.com/2400944#comment</comments>
 <category domain="http://www.teamsugar.com/category/drupal">drupal</category>
 <category domain="http://www.teamsugar.com/category/tech">tech</category>
 <category domain="http://www.teamsugar.com/tag/modules">modules</category>
 <category domain="http://www.teamsugar.com/tag/hooks">hooks</category>
 <pubDate>Thu, 23 Oct 2008 00:20:09 -0700</pubDate>
 <dc:creator>krs</dc:creator>
 <guid>http://drupalhigh.onsugar.com/2400944</guid>
</item>
<item>
 <title>DrupalCon DC</title>
 <link>http://drupalhigh.onsugar.com/2396745</link>
 <description>&lt;a href=&quot;http://drupalhigh.onsugar.com/2396745&quot;&gt;&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;http://dc2009.drupalcon.org/?ref=default&quot;&gt;&lt;/a&gt; Going to my second DrupalCon, in my hometown no less! Also, on &lt;a href=&quot;http://dc2009.drupalcon.org/attendees?keys=&amp;amp;tid=482&quot;&gt;the lookout for spare nodes&lt;/a&gt; :)&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I&#039;m happy to be able to be an&lt;a href=&quot;http://dc2009.drupalcon.org/sponsors/individual&quot;&gt; individual sponsor &lt;/a&gt;of DrupalCon DC as well. Even though my company is also a sponsor and they pay my salary, Drupal has allowed me to make a living using software I enjoy over the last couple of years. I&#039;m happy to provide something back.&lt;/p&gt;</description>
 <comments>http://drupalhigh.onsugar.com/2396745#comment</comments>
 <category domain="http://www.teamsugar.com/category/drupal">drupal</category>
 <category domain="http://www.teamsugar.com/category/tech">tech</category>
 <category domain="http://www.teamsugar.com/tag/washington dc">washington dc</category>
 <category domain="http://www.teamsugar.com/tag/drupalcon">drupalcon</category>
 <category domain="http://www.teamsugar.com/tag/nodes">nodes</category>
 <pubDate>Tue, 21 Oct 2008 22:40:26 -0700</pubDate>
 <dc:creator>krs</dc:creator>
 <guid>http://drupalhigh.onsugar.com/2396745</guid>
</item>
<item>
 <title>php&#039;s imap functions</title>
 <link>http://drupalhigh.onsugar.com/2188455</link>
 <description>&lt;a href=&quot;http://drupalhigh.onsugar.com/2188455&quot;&gt;&lt;/a&gt;&lt;p&gt;recently I needed to add an imap extension to php, which uses the c-client library. normally this means recompiling php with --with-imap and --with-imap-ssl flags set, a major headache, but on ubuntu makes it easy.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;karl@db1:~$&lt;/b&gt; apt-cache search c-client&lt;br /&gt;...&lt;br /&gt;libc-client2007 - UW c-client library for mail protocols&lt;br /&gt;libc-client2007-dev - UW c-client library for mail protocols (development)&lt;br /&gt;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;karl@db1:~$&lt;/b&gt; sudo apt-get install libc-client2007 libc-client2007-dev&lt;br /&gt;[ubuntu fetches and installs library]&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;karl@db1:~$&lt;/b&gt; apt-cache search php5-imap&lt;br /&gt;php5-imap - IMAP module for php5&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;karl@db1:~$&lt;/b&gt; sudo apt-get install php5-imap&lt;br /&gt;[ubuntu installs imap extension]&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;karl@db1:~$&lt;/b&gt; sudo /etc/init.d/apache2 restart&lt;br /&gt;[apache restarts]&lt;br /&gt;&lt;br /&gt;and now phpinfo() shows c-client running with imap and SSL support on, and I&#039;m free to use &lt;a href=&quot;http://php.net/imap_open&quot;&gt;imap_open()&lt;/a&gt; and all the other &lt;a title=&quot;PHP:IMAP functions&quot; href=&quot;http://us2.php.net/manual/en/ref.imap.php&quot;&gt;php imap functions&lt;/a&gt; I need to complete my email-to-unfudle-ticket script. Connecting to a gmail account especially requires the use of SSL, so I&#039;m glad that was included.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[imap]&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;IMAP c-Client Version =&amp;gt; 2004&lt;br /&gt;SSL Support =&amp;gt; enabled&lt;br /&gt;Kerberos Support =&amp;gt; enabled&lt;br /&gt;&lt;br /&gt;thanks to chris fuller for helping me out!&lt;/p&gt;</description>
 <comments>http://drupalhigh.onsugar.com/2188455#comment</comments>
 <category domain="http://www.teamsugar.com/tag/ubuntu">ubuntu</category>
 <category domain="http://www.teamsugar.com/category/tech">tech</category>
 <category domain="http://www.teamsugar.com/tag/php">php</category>
 <category domain="http://www.teamsugar.com/tag/unfuddle">unfuddle</category>
 <category domain="http://www.teamsugar.com/tag/imap">imap</category>
 <category domain="http://www.teamsugar.com/tag/gmail">gmail</category>
 <pubDate>Fri, 03 Oct 2008 21:19:32 -0700</pubDate>
 <dc:creator>krs</dc:creator>
 <guid>http://drupalhigh.onsugar.com/2188455</guid>
</item>
</channel>
</rss>
