drupal

Drupal 5.0 upgrade - call to undefined function module_exist()

Now that the great Drupal 5.0 is out, I've been moving various production web sites over to it. Bruce's Brain has been running on the beta for a while, so you don't really see changes here. Other sites all moved over just fine.

Then I hit my 'main' web page (Craft A Craft) - few teething pains... few problems tracking down modules that I had used that have been upgraded, etc.

Create Drupal Block to display changing content (i.e. banners, ads, etc.)

I wanted to display various banner ads in a Drupal 'block'... no problem, just create a block and put in the appropriate ad code... but then I wanted to rotate ads between some different things in a random manner. (This doesn't have to be ads... any content will work).

  1. Create a 'content type' for your ads - I used 'block content'.
  2. Add a single text field (named 'Content') and set the options as desired.
  3. Create a new view.
  4. Enable 'Block' and choose a type... I used 'Full Node'

Drupal Image cannot be copied (uploaded)

When trying to upload (attach) an image to an Image node, I would get an error concerning 'could not copy ...' with a path. Everything seemed fine.

Seems that this has happened before:

http://drupal.org/node/84405

In essence you have to turn OFF image attach for image nodes... a bit counter-intuitive, but...

Go to admin/settings/content-types/image and disable 'attach images' and 'attachments' (if applicable) for image nodes.

Google on-site search embedded in Drupal

Embedding Google's search results page doesn't work by default in Drupal. This applies to a couple of their offerings now, including Adsense for Search and the brand new Google Custom Search Engine stuff. As a workaround, in the "search box" code they give you, change the:<input type="text" name="q" size="20" maxlength="255" value="">to<input type="text" name="as_q" size="20" maxlength="255" value="">

Provide public/private nodes in drupal

Use the tac_lite module - follow the instructions in the readme.txt file.

Syndicate content