<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.kinetasystems.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>PHP</title>
 <link>http://www.kinetasystems.com/blog/tags/php</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Three tips for comment theming in Drupal</title>
 <link>http://www.kinetasystems.com/blog/three-tips-for-comment-theming-in-drupal</link>
 <description>	&lt;p&gt;
Today I&amp;#8217;m just demonstrating a few simple theme adjustments to comments. Comments in Drupal 5 are &amp;#8220;not sexy&amp;#8221;, out of the box, so in this short post I&amp;#8217;m going to illustrate how to:&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;change the text on &amp;#8220;submitted&amp;#8221; lines in comments (just a little)&lt;/li&gt;
		&lt;li&gt;add nofollow to username links &amp;#8211; unless you&amp;#8217;re feeling generous&lt;/li&gt;
	&lt;/ul&gt;
	&lt;ul&gt;
		&lt;li&gt;remove the &amp;#8220;not verified&amp;#8221; marker from anonymous users&lt;/li&gt;
	&lt;/ul&gt;

&lt;?php
// change the &quot;submitted by&quot; text to &quot;posted by&quot;
// note that you can alter the date display too, by changing the way 
&lt;p&gt;&lt;a href=&quot;http://www.kinetasystems.com/blog/three-tips-for-comment-theming-in-drupal&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.kinetasystems.com/blog/three-tips-for-comment-theming-in-drupal#comments</comments>
 <category domain="http://www.kinetasystems.com/blog/tags/drupal">Drupal</category>
 <category domain="http://www.kinetasystems.com/blog/tags/php">PHP</category>
 <category domain="http://www.kinetasystems.com/blog/tags/planet">Planet</category>
 <category domain="http://www.kinetasystems.com/blog/tags/seo">SEO</category>
 <category domain="http://www.kinetasystems.com/blog/tags/themes">Themes</category>
 <pubDate>Wed, 26 Mar 2008 06:09:30 -0400</pubDate>
 <dc:creator>Nik</dc:creator>
 <guid isPermaLink="false">82 at http://www.kinetasystems.com</guid>
</item>
<item>
 <title>Creating custom error pages in Drupal</title>
 <link>http://www.kinetasystems.com/blog/creating-custom-error-pages-in-drupal</link>
 <description>	&lt;p&gt;Currently there are three options for creating error pages in the Drupal system, that I know of. I&amp;#8217;m going to show here which I think is the best, for reasons of usability, performance and general webmaster sanity. At the foot of this article, there&amp;#8217;s some free code too!&lt;/p&gt;

	&lt;p&gt;The options:&lt;/p&gt;

	&lt;ul&gt;
		&lt;li&gt;Drupal&amp;#8217;s built-in support for error pages (@ /admin/settings/error-reporting)&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/search404&quot;&gt;Search404.module&lt;/a&gt; (404&amp;#8217;s only, of course)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=&quot;http://drupal.org/project/customerror&quot;&gt;Customerror.module&lt;/a&gt; (404 &amp; 403)&lt;/li&gt;
	&lt;/ul&gt;

	&lt;h2&gt;Drupal&amp;#8217;s build in error page support&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kinetasystems.com/blog/creating-custom-error-pages-in-drupal&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.kinetasystems.com/blog/creating-custom-error-pages-in-drupal#comments</comments>
 <category domain="http://www.kinetasystems.com/blog/tags/drupal">Drupal</category>
 <category domain="http://www.kinetasystems.com/blog/tags/modules">Modules</category>
 <category domain="http://www.kinetasystems.com/blog/tags/php">PHP</category>
 <category domain="http://www.kinetasystems.com/blog/tags/planet">Planet</category>
 <category domain="http://www.kinetasystems.com/blog/tags/usability">Usability</category>
 <pubDate>Tue, 26 Feb 2008 19:28:43 -0500</pubDate>
 <dc:creator>Nik</dc:creator>
 <guid isPermaLink="false">83 at http://www.kinetasystems.com</guid>
</item>
<item>
 <title>Adding website section images in Drupal themes</title>
 <link>http://www.kinetasystems.com/blog/adding-website-section-images-in-drupal-themes</link>
 <description>	&lt;p&gt;Quite frequently I&amp;#8217;ve been asked about putting images into site &amp;#8220;sections&amp;#8221;, depending on path or menu trail. Look up, that &amp;#8220;Blog&amp;#8221; image is what I&amp;#8217;m talking about. It&amp;#8217;s on all blog related pages. So, here goes &amp;#8211; it&amp;#8217;s nice to be able to finally offer this information here.&lt;/p&gt;

	&lt;p&gt;The first main chunk of code attempts to get a menu item and build an image link from that. The second chunk assumes failure of the first and tries again using a partial path method. &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.kinetasystems.com/blog/adding-website-section-images-in-drupal-themes&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.kinetasystems.com/blog/adding-website-section-images-in-drupal-themes#comments</comments>
 <category domain="http://www.kinetasystems.com/blog/tags/drupal">Drupal</category>
 <category domain="http://www.kinetasystems.com/blog/tags/php">PHP</category>
 <category domain="http://www.kinetasystems.com/blog/tags/planet">Planet</category>
 <category domain="http://www.kinetasystems.com/blog/tags/themes">Themes</category>
 <pubDate>Sat, 23 Feb 2008 14:06:26 -0500</pubDate>
 <dc:creator>Nik</dc:creator>
 <guid isPermaLink="false">67 at http://www.kinetasystems.com</guid>
</item>
<item>
 <title>Where do I create PHPTemplate variables in Drupal theming?</title>
 <link>http://www.kinetasystems.com/blog/where-do-i-create-phptemplate-variables-in-drupal-theming</link>
 <description>	&lt;p&gt;Here&amp;#8217;s some code, which you can put into your template.php file. It demonstrates how to insert code into that file, so you can make new variables available to page, node and comment template files. Examples of where this is useful are shown in the snippet below.&lt;/p&gt;
&lt;?php
function _phptemplate_variables($hook, $vars = array()) {
  switch ($hook) {
    case &#039;page&#039;:
      // code relating to variables for page templates here
      // EXAMPLE - is the current user logged in?
      $vars[&#039;logged_in&#039;] = ($user-&gt;uid &gt; 0) ? TRUE : FALSE;
      break;

    case &#039;node&#039;:
&lt;p&gt;&lt;a href=&quot;http://www.kinetasystems.com/blog/where-do-i-create-phptemplate-variables-in-drupal-theming&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.kinetasystems.com/blog/where-do-i-create-phptemplate-variables-in-drupal-theming#comments</comments>
 <category domain="http://www.kinetasystems.com/blog/tags/drupal">Drupal</category>
 <category domain="http://www.kinetasystems.com/blog/tags/php">PHP</category>
 <category domain="http://www.kinetasystems.com/blog/tags/themes">Themes</category>
 <pubDate>Mon, 11 Feb 2008 15:54:31 -0500</pubDate>
 <dc:creator>Nik</dc:creator>
 <guid isPermaLink="false">78 at http://www.kinetasystems.com</guid>
</item>
</channel>
</rss>
