drupal

Commenting

So I've turned anonymous commenting back on for blog posts. In the old Wordpress installation comment spam was handled by akismet and comments were moderated.

Now that I've converted most of the content to Drupal I'm testing a new approach. Anonymous users can now comment again but they must fill out some rudimentary contact information as well as successfully submit a Math CAPTCHA. Once this is accomplished their comment will be published.

If this method works then no problems, if it doesn't then the next step would be to use an Image CAPTCHA. If that fails then the final solution would be to use the Image CAPTCHA in conjunction with comment moderation which I'd really rather not do.

Also to note is that I've turned off new user account creation. If you really feel as though you need an account here then email me directly or use the contact form. Be prepared to justify your need for an account.

Let's see how it goes. Let the games begin.

Drupal Themes Mission Statement

In some Drupal Themes there is support for displaying the "Mission Statement" across all pages and in others this support is limited to the "Front Page" or "Main Page".

If you are ever using one of the themes with limited mission statement support and want to display the mission statement across all pages you can use this to do so.

In template.php add the following to the bottom of the file:

function _phptemplate_variables($hook, $vars = array()) {
// Make custom variables available to theme templates
switch ($hook) {
// Send new variable $custom_mission to page.tpl.php
case 'page':
$vars['custom_mission'] = variable_get('site_mission', '');
break;
}
return $vars;
}

Then in page.tpl.php change:

<?php if ($mission) { ?><?php print $mission ?><?php } ?>
to be

<?php if ($custom_mission) { ?><?php print $custom_mission ?><?php } ?>

These 2 changes should allow the "Mission Statement" to be displayed across all pages.

New Drupal 5 release

Drupal 5.7 was just released.

There are no new features in this release. Only bug fixes.

The following bugs have been fixed since the 5.6 release:

  • #208700 by pwolanin. Fix bad backport of #194579. Modified to use Form API.
  • #118569 by bevan: document how should one set RewriteBase, if under a VirtualDocumentRoot. Backport by Bart Jansens.
  • - Patch #115606 by Junyor, thesaint_02: added support for PHP 5.2's 'recoverable fatal errors'.
  • #209409 by Heine, webernet, dww: more accurate register globals value checking

Go get it here.

Site Moved

I've moved all the content off of http://fusion94.org/blog and have imported here into the Damage Studios site. It was getting tiring trying to determine where to blog and since the old site was running WordPress and I'm now doing more Drupal related work it made sense to move it into Drupal. Thanks to PathAuto and aliasing about 98% of the old urls redirect properly.

I know that there are some things not quite right but I hope to resolve these issues in the next week or so.

Go PHP 5

I hope more people and projects decide to support this initiative.

PHP 4 has served the web developer community for seven years now, and served it well. However, it also shows its age. Most of PHP 4's shortcomings have been addressed by PHP 5, released three years ago, but the transition from PHP 4 to PHP 5 has been slow for a number of reasons.

PHP developers cannot leverage PHP 5's full potential without dropping support for PHP 4, but PHP 4 is still installed on a majority of shared web hosts and users would then be forced to switch to a different application. Web hosts cannot upgrade their servers to PHP 5 without making it impossible for their users to run PHP 4-targeted web apps, and have no incentive to go to the effort of testing and deploying PHP 5 while most web apps are still compatible with PHP 4 and the PHP development team still provides maintenance support for PHP 4. The PHP development team, of course, can't drop maintenance support for PHP 4 while most web hosts still run PHP 4.

To learn more about this please visit: Go PHP5

Copyright 2002-2008 Damage Studios