Drupal

A nice addition to comments

Here's a little snippet for hook_form_alter that will put another "Save" button right below a comment preview. This way users don't have to scroll all the way down past the edit form to save a comment after preview, it's right there.

This is for Drupal 6.

<?php
 
if ($form_id == 'comment_form' &&($form_state['post']['op'] == t('Preview'))) {
   
$form['top_submit'] = $form['submit'];
   
$form['top_submit']['#weight'] = -19;
   
$form['top_submit']['#suffix'] = t('Save your comment, or make changes below.');
  }
?>

Faceted Drupal Certification

in

There's been some buzz about Drupal certification programs recently. Whoever takes up that task, if anyone does, I hope they implement focused certification instead of some monolithic certificate.

Server configuration, themes, module development, site architecture, and the like are all sufficiently advanced topics to merit their own certification. Breaking it down like that might also help realize certification programs sooner, if organizations could focus on developing a program just for the topics they specialize in instead of the whole of Drupal.

Anonymous Comment Email Verification

Attached is a module that requires anonymous comments to have the supplied email address verified before they enter the normal comment workflow.

wysiwyg editors and script placement

In my experience, wysiwyg editors, at least FCKeditor and TinyMCE, won't work if scripts are loaded at the bottom of the page. However, it's great to have the scripts down there for the perceived performance boost.

So, conditional statements in the page.tpl.php to the rescue!

Segmentation by OG in Google Analytics

Another patch today at Google Analytics to allow for segmentation by Organic Groups. I'll give the same rationale I gave there here: Segmentation by OG seems like a good idea because they tend to indicate user interests, and are usually aggregate so they don't violate the Google TOS.

Syndicate content