Skip to: Site menu | Main content


New Drupal Module: OG Invite Restrict

Invite page with OG Invite Restrict active.

I just committed the initial development version of a Drupal module I recently created for a client. The module, OG Invite Restrict, allows a site administrator to restrict thier users' ability to invite people to groups to only current users.

Normally, the organic groups' (OG) invite functionality allows users to enter both usernames and email addresses on the invite form. In some cases, a site administrator may want to limit entry to only current users.

The module not only restricts the form to only usernames, it also adds autocomplete to the username field.

Thanks to Ozmosis for sponsoring development of this module.

Submitted by michael on Wed, 12/05/2007 - 3:13pm
Filed under:

Drupal: Toggling "posted" Information in Content Types

File this one under "holy-cow-I-can't-believe-how-much-time-I-just-spent-figuring-out-how-to-this". What I'm talking about is this: the "posted" information is the information stored in the PHPTemplate's $submitted variable: "posted 2007-08-01 12:32:42 by admin". Normally, this information is displayed right before or right after the node's main content. I recently ran across this problem when I was working on a site with numerous content types - all created with CCK. I was working on theming one of the content types and I couldn't figure out why the $submitted variable wasn't being populated when the node was displayed.
Submitted by michael on Thu, 08/09/2007 - 6:18pm
Filed under:

Additional Search Blocks in Drupal

Ever need to create additional search blocks for your Drupal installation? One use might be so that you can theme or position the block differently depending on which page the block appears on.

It's actually quite easy to do - all you need to do is create a new module that implements "hook_block" and then create a new block and call the "search_box" function (from search.module) to populate the box with the correct form elements. Here's the code:

Submitted by michael on Tue, 08/07/2007 - 5:31pm
Filed under:

Drupal: Customizing the "more" Links in Views

Everytime I have to dig a little deeper into the views module, I'm always more and more impressed with the thought that went into the module by Earl Miles and the other authors. A recently had a request from a client to modify the "more" link that is shown at the bottom of blocks that are generated by views.

Default 'more' link

Submitted by michael on Fri, 07/20/2007 - 4:21pm
Filed under:

Drupal and SEO: My Basics

Let me start this post by saying that I'm not an expert on Search Engine Optimization (SEO). I do know the basics about Google's PageRank and keywords, but I've made it a point in the past few months to start getting to know some of the various Drupal modules that can assist in SEO.

SEO is at best an artform. If you're looking for strategies that will guarantee your site a top ranking on Google, you've come to the wrong place.

Submitted by michael on Sat, 06/16/2007 - 8:33pm
Filed under: