Drupal articles

Tinymce and filtered HTML

19th Jun 2007

Just a quick one this - you will probably find that when you use Tinymce and the standard Filtered HTML input format, all your text bunches up and doesn't break correctly.

Once solution to this is to use Full HTML - fine for the admin user but not so good for your average member of the great unwashed.

So, the solution is to goto admin/settings/filters and configure the "filtered HTML" filter. You then want to add

and
to the list of allowed tags.

Everything should now be lovely!

Read more

Modifying the Drupal local tasks to include the destination

17th Jun 2007

There is nothing worse than having your browsing flow interrupted by a login screen that does not return you to your origional destination. Drupal manages to get around this problem by allowing you to append a "destination=XXX" query string parameter to the 'user' login URL.

This is excellent and works well, except what happens if the user clicks the register tab while on the login screen - the destination query string is lost and the user has to resort to the back button.

This little snippet attempts to solve this problem - stick it into your template.php file, it very...

Read more

Getting the drupal captcha module to work

16th Jun 2007

This article applies to the current dev release of both the captcha and the textimage module. It involves modifying captcha.inc file which is distributed with the textimage module - it is therefore only a temporary solution and should be treated with caution!

Step one - download and install.

To get the captcha module up and running you need the following modules

captcha

textimage

form-store

Step two - Turn on form store and form-collect

The form store and form collect modules allow you to build up a "store" of forms used on the site, to which you can then apply captchas...

Read more

Computerminds see the light(enna)

14th Jun 2007

Lightenna logo

Computerminds are pleased to be working on a number of Drupal projects with Bristol based consultancy Lightenna

Read more

Highlander training - there can be only one ...

14th Jun 2007

Computerminds are delighted to be working on a new site for the York based training company Highlander, not least because of the fun we can have saying "there can be only one" at every given opportunity.

Highlander logo

The site is to be built in Drupal 5 and will feature collaborative blogs, aggregated industry feeds, live chat between site users and the highlander staff - plus a number of community features.

The site is due for launch early July 2007 - watch this space ...

Read more

Computerminds take on content-wire

14th Jun 2007
Content wire logo

Computerminds are proud to be working on the relaunch of the excellent content-wire site. The site has been going since 2001 and in its own words is a niche editorial product covering narrow vertical technology sectors, e-business, new economy and cyberculture.

The current site suffers from some design and structural issues, but through using Drupal Computerminds will be able to give the content the platform it deserves.

The site is due for release at the end of June 2007 - watch this space ...

Read more

Computerminds work with Realworks media

14th Jun 2007
Realworks media logo

Computerminds are pleased to be acting as Drupal consultants for the London based design firm Realworks media. By using Computerminds for the hardcore Drupalizing, Realworks are able to concentrate on delivering the high impact designs they do best.

Read more

Booktribes mentioned in the guardian

29th Mar 2007

Its only a small mention, but its a mention none the less ... in the letters page of Thursday's (29th March) guardian. And a small link on the their website too

http://technology.guardian.co.uk/weekly/story/0,,2044602,00.html

Read more

Example code to build an upload form in Drupal

27th Mar 2007

Putting together an upload form in Drupal 5 is easier than you think - there are just a couple of things you need to remember ...

The form is built like this:


function build_upload_form(){
    $form['#attributes'] = array('enctype' => "multipart/form-data");
    $form['file_upload']=array('#type'=>'file','#title'=>'Filename');
    $form['submit']=array('#type'=>'submit','#value'=>'Upload file');
    return $form;
}

And the submit is handled like so, note - the value passed into file_check_upload is the name (terminal array key) of the form element defined in your form building function ...


function upload_form_submit() {
    $file = file_check_upload('file_upload');
    //handle the file, using file_save_upload, or something similar
    if ($file){
    $file = file_save_upload($file,'some_path');
    }
}

And thats it...

Read more

Our top tools for developing and debugging with Drupal

20th Mar 2007

It is perfectly possibly to work with Drupal using the free tools that come with Windows, nothing more than notepad and Internet Explorer - but just because its possible doesn't mean its a good idea!

We work with Drupal all day everyday - and rely on a small arsenal of applications to stop us going insane!

1. Firefox - (http://www.mozilla.com/en-US/firefox/ )

Everybody has heard of firefox right? The browser that has MS running scared (and inspired the significant changes in IE7) is great for general browsing - but with a couple of add-ons it becomes the developers best friend.

2...

Read more