<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://mydrupalblog.lhmdesign.com">
<channel>
 <title>My Drupal Blog</title>
 <link>http://mydrupalblog.lhmdesign.com</link>
 <description />
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MyDrupalBlog" /><feedburner:info uri="mydrupalblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>MyDrupalBlog</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/MyDrupalBlog" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FMyDrupalBlog" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>You are viewing the RSS articles feed for My Drupal Blog. For more information please check out http://mydrupalblog.lhmdesign.com.</feedburner:browserFriendly><item>
 <title>Neptune - A New Zen Sub-theme</title>
 <link>http://mydrupalblog.lhmdesign.com/neptune-new-zen-subtheme</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blogimg/neptune-theme.png" alt="Neptune Drupal theme" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A couple of weeks ago now I released the 1.0 version of &lt;a href="http://drupal.org/project/neptune"&gt;Neptune&lt;/a&gt;, a new Zen 7.x-5.x sub-theme. Since then I've fixed and added a number of bits and today created a recommended 1.1 release. You can see the theme in action at the &lt;a href="http://lhmdesign.com/neptune"&gt;demo site&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Key features include:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Responsive design&lt;/li&gt;
&lt;li&gt;HTML5 markup&lt;/li&gt;
&lt;li&gt;Sass/Compass integration&lt;/li&gt;
&lt;li&gt;Single column, configurable width layout&lt;/li&gt;
&lt;li&gt;Mobile friendly mini nav&lt;/li&gt;
&lt;li&gt;Google web fonts (Montserrat for titles and Istok Web for all other text)&lt;/li&gt;
&lt;li&gt;Overlapping triangle thing&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=nKzguAvOoZI:5CidDkaiOhg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=nKzguAvOoZI:5CidDkaiOhg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Tue, 26 Mar 2013 19:10:45 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">74 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/neptune-new-zen-subtheme#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/74</wfw:commentRss>
</item>
<item>
 <title>My Drupal Blog - Case Study (Upgrade, Redesign, HTML5, Responsive)</title>
 <link>http://mydrupalblog.lhmdesign.com/my-drupal-blog-case-study-upgrade-redesign-html5-responsive</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;I recently upgraded &lt;a href="http://mydrupalblog.lhmdesign.com" title="My Drupal Blog"&gt;My Drupal Blog&lt;/a&gt; from Drupal 6 to Drupal 7 and implemented a newly designed and HTML5 based responsive theme.&lt;/p&gt;
&lt;p&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blog/my-drupal-blog-screenshot.png" alt="My Drupal Blog home page" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This &lt;a href="http://mydrupalblog.lhmdesign.com/my-drupal-blog-case-study-upgrade-redesign-html5-responsive"&gt;case study&lt;/a&gt; details the processes involved.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=sBoGjYqC3Rc:x72E7-iJ2zY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=sBoGjYqC3Rc:x72E7-iJ2zY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Wed, 14 Mar 2012 12:14:06 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">73 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/my-drupal-blog-case-study-upgrade-redesign-html5-responsive#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/73</wfw:commentRss>
</item>
<item>
 <title>Embed Drupal Views Using PHP</title>
 <link>http://mydrupalblog.lhmdesign.com/embed-drupal-views-using-php</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;When theming Drupal and wanting to output a &lt;a href="http://drupal.org/project/views"&gt;view&lt;/a&gt; there are occasions where using a view display (e.g. a page, or a block - perhaps placed within a &lt;a href="http://mydrupalblog.lhmdesign.com/creating-custom-regions-drupal-6-themes" title="Create custom regions in Drupal 6 themes"&gt;custom region&lt;/a&gt; ;-) ), or using &lt;a href="http://drupal.org/project/views_attach"&gt;Views Attach&lt;/a&gt; will not suffice.&lt;/p&gt;
&lt;p&gt;Instead, you can embed a view using the following PHP snippet:&lt;br /&gt;
(NOTE: you'll need to have the core PHP input filter enabled if embedding in a node body)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&lt;span style="color: #000000"&gt;&lt;span style="color: #0000BB"&gt;&amp;lt;?php&lt;br /&gt;$view &lt;/span&gt;&lt;span style="color: #007700"&gt;= &lt;/span&gt;&lt;span style="color: #0000BB"&gt;views_get_view&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #DD0000"&gt;'VIEWNAME'&lt;/span&gt;&lt;span style="color: #007700"&gt;);&lt;br /&gt;print &lt;/span&gt;&lt;span style="color: #0000BB"&gt;$view&lt;/span&gt;&lt;span style="color: #007700"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;preview&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #DD0000"&gt;'default'&lt;/span&gt;&lt;span style="color: #007700"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;or, if you need to use an argument with the view:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&lt;span style="color: #000000"&gt;&lt;span style="color: #0000BB"&gt;&amp;lt;?php&lt;br /&gt;$args &lt;/span&gt;&lt;span style="color: #007700"&gt;= array(&lt;/span&gt;&lt;span style="color: #0000BB"&gt;ARGUMENTS&lt;/span&gt;&lt;span style="color: #007700"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;$view &lt;/span&gt;&lt;span style="color: #007700"&gt;= &lt;/span&gt;&lt;span style="color: #0000BB"&gt;views_get_view&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #DD0000"&gt;'VIEWNAME'&lt;/span&gt;&lt;span style="color: #007700"&gt;);&lt;br /&gt;print &lt;/span&gt;&lt;span style="color: #0000BB"&gt;$view&lt;/span&gt;&lt;span style="color: #007700"&gt;-&amp;gt;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;preview&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #DD0000"&gt;'default'&lt;/span&gt;&lt;span style="color: #007700"&gt;, &lt;/span&gt;&lt;span style="color: #0000BB"&gt;$args&lt;/span&gt;&lt;span style="color: #007700"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #0000BB"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=OySmRtGAPjw:KbCcMkVMS6Q:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=OySmRtGAPjw:KbCcMkVMS6Q:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Tue, 10 Aug 2010 12:02:27 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">71 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/embed-drupal-views-using-php#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/71</wfw:commentRss>
</item>
<item>
 <title>Help Test The New Drupal.org Theme</title>
 <link>http://mydrupalblog.lhmdesign.com/help-test-new-drupalorg-theme</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;Just passing along this call for testing of the new Drupal.org theme - &lt;a href="http://groups.drupal.org/node/24886"&gt;How to verify Mark Bolton’s mockups against the staging site&lt;/a&gt; - which I saw in my feed reader this morning. Seems like readers of this blog would be the perfect candidates :)&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=2cP7As-Q_8c:gs0mx54rg04:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=2cP7As-Q_8c:gs0mx54rg04:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Sun, 02 Aug 2009 11:17:11 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">68 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/help-test-new-drupalorg-theme#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/68</wfw:commentRss>
</item>
<item>
 <title>Drupal Theming + jQuery Basics (inc. Drupal Behaviors)</title>
 <link>http://mydrupalblog.lhmdesign.com/drupal-theming-jquery-basics-inc-drupal-behaviors</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;In this tutorial you'll see how to implement a toggling effect using jQuery within your Drupal theme whilst utilising Drupal behaviors.&lt;/p&gt;
&lt;p&gt;The finished effect can be seen in this &lt;a href="http://www.lhmdesign.com/drupal-jquery-demo" title="Drupal jQuery demo"&gt;Drupal jQuery demo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The toggle is achieved via a two-step process:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Step 1 - add content and markup to a node&lt;/li&gt;
&lt;li&gt;Step 2 - implement jQuery, utilising Drupal behaviors, which will enable the toggling to work&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=3S-NSf7rGuM:i2IQnwNa1Ks:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=3S-NSf7rGuM:i2IQnwNa1Ks:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Tue, 28 Jul 2009 16:34:28 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">67 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/drupal-theming-jquery-basics-inc-drupal-behaviors#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/67</wfw:commentRss>
</item>
<item>
 <title>Truncate A Drupal View Node Title</title>
 <link>http://mydrupalblog.lhmdesign.com/truncate-drupal-view-node-title</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It appears that I missed the very obvious solution to this problem (!) which, as pointed out by a couple of commenters, is to use the ‘Trim this field to a maximum length’ option within the settings for the node title field.&lt;/p&gt;
&lt;p&gt;I’ll leave this post in place as I think it still serves as a useful guide on how to create template override files for views, but please be advised that for implementing truncation of a views node title it is easier to:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;navigate to the view's 'Edit view viewname' page (/admin/build/views/edit/viewname) and click the ‘Node: Title' link&lt;br /&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blogimg/truncate_drupal_view_node_title-9.png" alt="Truncate Drupal view node title" /&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;li&gt;check the ‘Trim this field to a maximum length’ checkbox, and adjust the settings as required&lt;br /&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blogimg/truncate_drupal_view_node_title-8.png" alt="Truncate Drupal view node title" /&gt;&lt;/span&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=NNkVB8X_moU:n8TQeiXqfKM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=NNkVB8X_moU:n8TQeiXqfKM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Sun, 14 Jun 2009 15:24:23 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">66 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/truncate-drupal-view-node-title#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/66</wfw:commentRss>
</item>
<item>
 <title>Creating Custom Regions In Drupal 6 Themes</title>
 <link>http://mydrupalblog.lhmdesign.com/creating-custom-regions-drupal-6-themes</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;Previously, I covered the topic of &lt;a href="http://mydrupalblog.lhmdesign.com/creating-custom-regions" title="Custom Drupal 5 theme regions"&gt;creating custom regions in Drupal 5 themes&lt;/a&gt;. However, Drupal 6 introduced a new process for creating custom regions in themes and it is still one of the topics people ask about most frequently.&lt;/p&gt;
&lt;p&gt;So, here's a tutorial on how to create custom regions in your Drupal 6 themes. In this example I will use the Garland theme, and insert a new region called 'Uber content', which I'll position above everything in the main content area.&lt;/p&gt;
&lt;p&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blogimg/custom-regions-drupal-6-themes-1.png" alt="Custom Drupal 6 theme region" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It's basically a two-step process:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;step 1 - define the custom region in your theme's .info file&lt;/li&gt;
&lt;li&gt;step 2 - insert some PHP in your theme's page.tpl.php file wherever you would like the new region to appear&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=7hvYSE8vfh0:S75ch2JdxtY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=7hvYSE8vfh0:S75ch2JdxtY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Thu, 28 May 2009 18:57:22 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">65 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/creating-custom-regions-drupal-6-themes#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/65</wfw:commentRss>
</item>
<item>
 <title>Using PHP In Your Drupal Theme's Footer</title>
 <link>http://mydrupalblog.lhmdesign.com/php-drupal-theme-footer</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&lt;br /&gt;
Drupal’s default 'Footer message' area (to which you can add content via the admin section - Administer &amp;gt; Site configuration &amp;gt; Site information) will not parse PHP.&lt;/p&gt;
&lt;p&gt;If, for example, you add a copyright message to your footer message area such as "© Copyright 2009" it'll be fine until the New Year begins and you have to go in and manually change it to "© Copyright 2010". So, instead, it would be great if you could handle the date dynamically using the following PHP code (see &lt;a href="http://php.net/date"&gt;http://php.net/date&lt;/a&gt; for further PHP date details):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="codeblock"&gt;&lt;code&gt;© Copyright &lt;span style="color: #000000"&gt;&lt;span style="color: #0000BB"&gt;&amp;lt;?php &lt;/span&gt;&lt;span style="color: #007700"&gt;echo &lt;/span&gt;&lt;span style="color: #0000BB"&gt;date&lt;/span&gt;&lt;span style="color: #007700"&gt;(&lt;/span&gt;&lt;span style="color: #DD0000"&gt;'Y'&lt;/span&gt;&lt;span style="color: #007700"&gt;); &lt;/span&gt;&lt;span style="color: #0000BB"&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;However, try adding that to the default 'Footer message' area and it will simply output the entirety of the code as text, ignoring the PHP tags.&lt;/p&gt;
&lt;p&gt;&lt;span class="blog-img"&gt;&lt;img src="http://mydrupalblog.lhmdesign.com/files/blogimg/php_drupal_theme_footer_1.png" alt="No PHP in a Drupal footer message" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So, what to do?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution 1:&lt;/strong&gt;&lt;br /&gt;
Create a block (admin/build/block/add) containing the code, set its input format to PHP, and then place that block in the footer region via the main blocks settings page (admin/build/block). Crazy simple.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=NPr5-8W-80Q:vCLOfsXm77w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=NPr5-8W-80Q:vCLOfsXm77w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Sun, 17 May 2009 11:43:51 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">64 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/php-drupal-theme-footer#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/64</wfw:commentRss>
</item>
<item>
 <title>My Drupal Blog RSS Feeds Updated</title>
 <link>http://mydrupalblog.lhmdesign.com/my-drupal-blog-rss-feeds-updated</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;Just a quick note to say that the My Drupal Blog RSS feeds have been updated. &lt;/p&gt;
&lt;p&gt;The local URLs are still the same:&lt;br /&gt;
Posts - &lt;a href="http://mydrupalblog.lhmdesign.com/rss.xml"&gt;http://mydrupalblog.lhmdesign.com/rss.xml&lt;/a&gt;&lt;br /&gt;
Comments - &lt;a href="http://mydrupalblog.lhmdesign.com/crss"&gt;http://mydrupalblog.lhmdesign.com/crss&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=yA87MVWLQZY:BimRZ80Ijmg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=yA87MVWLQZY:BimRZ80Ijmg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Fri, 01 May 2009 12:49:16 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">63 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/my-drupal-blog-rss-feeds-updated#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/63</wfw:commentRss>
</item>
<item>
 <title>Been A While!</title>
 <link>http://mydrupalblog.lhmdesign.com/been-while</link>
 <description>&lt;div class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;&lt;div class="field-items"&gt;&lt;div class="field-item even"&gt;&lt;p&gt;&lt;a href="http://lhmdesign.com/portfolio#the-fray" title="Lhmdesign - The Fray"&gt;Work&lt;/a&gt;, &lt;a href="http://lhmdesign.com/portfolio#american-idol-music" title="Lhmdesign - American Idol Music"&gt;work&lt;/a&gt;, and more &lt;a href="http://lhmdesign.com/portfolio#ciara" title="Lhmdesign - Ciara"&gt;work&lt;/a&gt; have meant that I’ve rather neglected this blog as of late. But no more! Content is a-comin’ (slowly ;) ).&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=15Jqp2UNv7E:8UfhK7G34Yc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/MyDrupalBlog?a=15Jqp2UNv7E:8UfhK7G34Yc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/MyDrupalBlog?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description>
 <pubDate>Wed, 29 Apr 2009 11:10:05 +0000</pubDate>
 <dc:creator>Laurence</dc:creator>
 <guid isPermaLink="false">62 at http://mydrupalblog.lhmdesign.com</guid>
 <comments>http://mydrupalblog.lhmdesign.com/been-while#comments</comments>
 <wfw:commentRss>http://mydrupalblog.lhmdesign.com/crss/node/62</wfw:commentRss>
</item>
</channel>
</rss>
