Drupal

Adding audio to a drupal site a la Podcast style

The most useful porject presently available with Drupal to introduce Audio to your site seems to indeed be the Audio module.

It is reasonably well documented but you may find these links helpful since it is a complex bundle of modules

Difference between variable placeholders in Drupal

I ran into a problem using the t() function where my url generated using the l() function was coming through as

<a href="http://www.bbc.co.uk">BBC</a>
I discovered that it was because I was using the wrong placeholder.

Placeholders in Drupal t() function

There are three special varaible placeholders in Drupal which are used in the t() function. They are intended to signal different types of variables to be replaced in translation string.

Downloading drupal modules and themes when drupal.org is unavailable or slow

If you have ever got frustrated when Drupal.org is busy or slow and you want to download a module you can! All you need to do is visit ftp://ftp.drupal.org/pub/drupal/files/projects

Drupal Tip Bits

The Group 42 site has some excellent links to Drupal articles covering issues such as styling links, styling tables, caching, patches and much much more. Well worth a mooch!

Getting Drupal RSS / XML Data into flash easily

I have been looking at creating some interfaces with flash from data held in Drupal. I didn't want to use complex methods such as web services gateways so it occured to me that I could expose my data using XML and views. Flash is pretty good at reading in XML. I used the following code to prove the concept taken from an example an kirupa.com

This Flash action script takes the rss feed for my site and passes it into Flash.

Webforms Module

The webform module provides the ability for Site Adminsitrators to generate complex forms for a Drupal website without the need to write any code. It has an intuitive forms based administrative interface which is very well described on this Webform Module Screencast.

Locked out of my drupal user 1 account

Nightmare of nightmares, you have forgotten your user 1 account login for your Drupal Site, and for some reason the password retrieval just will not work. How do you get back into your site administration? If you have database access, the answer is simple.

update users set pass=md5('PASS') where uid = 1;

This sets your user 1 password to PASS .

Making taxonomy descriptions have TINYMCE rich text editor in Drupal

Insert this code into your template.php in your theme and you gain control over which fields are editable using TINYMCE

function phptemplate_tinymce_theme($init, $textarea_name, $theme_name, $is_running) {
switch ($textarea_name) {
// Disable tinymce for these textareas
case 'log': // book and page log
case 'img_assist_pages':
case 'caption': // signature
case 'pages':
case 'access_pages': //TinyMCE profile settings.
case 'user_mail_welcome_body': // user config settings
case 'user_mail_approval_body': // user config settings

Multilingual categories

There is a steep learning curve when approaching Internationalisation of Drupal Sites. I stumbled into trouble when working with multiple foreign taxonomies. I found that there is some goood documentation if you know where to look on the Drupal Website

Syndicate content