What's been on my mind

Drupal Johannesburg July 2008 meetup summary

Submitted by charles on

The third Drupal Johannesburg meetup took place on the 19 July 2008 at Obsidian Systems, and was well attended, by around 25 people (I didn't count, just guessing). While we are still feeling our way around the structure of these meetings, this month's meetup was a step in the right direction. Andre from Cerebra gave a workshop to demonstrate the power of Drupal's CCK module. During the workshop he created a site which allows users to post reviews of cell phones. Some of the modules he used were: contemplate for quick theming of content type data - we were warned not to leave the generated code in contemplate, but to then create a node template and paste the code there, as this is more maintainable because it's not stored in the database. He used the automatic node titles module (plus token) to create useful, and search engine friendly titles.

Stay up to date with Drupal, and discover good Drupal resources

Submitted by charles on

Planet Drupal aggregates drupal related blog posts from a number of drupal sites and bloggers. I've only recently discovered it, but have already found some incredibly useful drupal posts here. For example, this one shows you how to allow "everyone, including “anonymous users”, to be informed of updates to nodes right inside their content", something very similar to what a client has just asked me to do.

Disable tinymce for fields in drupal module: webform

Submitted by charles on
I normally disable tinymce for certain textareas by overriding the tinymce function theme_tinymce_theme. This allows me to target textareas by their name attribute. For example, to disable the editor for all cck fields that I have named 'description', and all the devel modules 'php code' block textareas, one would put the following in that function: function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) { switch ($textarea_name) { // Disable tinymce for these textareas - using the field's name attribute

Make a user agree to a drupal site's terms and conditions

Submitted by charles on
Came across a module that does exactly this, the Legal module. When an anonymous user registers to use a drupal site, they get presented with the normal registration form with the terms and conditions of the site below. If an administrator adds a user, the first time the user logs in, before they can go any further, they need to accept the terms and conditions. In both cases, it's just a checkbox at the bottom of the terms and conditions that they must check before being allowed to continue.

Drupal support irc channel

Submitted by charles on
If you can't find what you're looking for on the drupal site, you might want to try the drupal support irc channel, and ask your question there. Using your irc client, login to: /server irc.freenode.net [after connecting successfully] /join #drupal-support

Firefox images getting extra space when in table cell

Submitted by charles on
Disclaimer: OK - so I know I shouldn't be using tables, but sometimes, I just have to. Was trying to figure out this extra space around an image that was sitting in a table cell. Came across this article which explains why. It's to do with using a strict doctype, and the fact that the images are by default inline which display on top of the baseline. Quick fix for me was to apply the following style to the offending images: .header-image {display:block}