Update your site slogan with Twitter

Themers/Designer - A simple example of the module put to use would be using the twitter_fetch_timeline call to retrieve a users timeline and insert the resulting text into the site_slogan variable.

$twarray = twitter_fetch_timeline('username');
$site_slogan = $twarray[0][text];

Placing this text nearest the top of a theme page such as page.tpl.php. Will subscribe the site slogan to the 'username's latest tweet posting.

Zenophile module - Zen 7.x-3.x and earlier


Note: The "Zenophile" module is Not being developed for Zen-7.x-5.x

The module Zenophile 7.x-1.1 works with theme Zen 7.x-3.1,
but Not with Zen 7.x-5.x.

See... There won't be a new release of Zenophile for Zen 5, But thanks for using Zenophile in the past.

Zenophile allows themers to very easily create Zen sub-themes without all the tedious file copying and find-and-replacing required when creating sub-themes by hand. See Zenophile's project page for more information.

Installation and usage

  1. Install the Zen theme, if you haven’t already.
  2. Install and enable the Zenophile module like any other module. (Note that installing Zenophile is only necessary to create themes with it; it is not necessary to enable Zenophile to use a theme that Zenophile has already created, and Zenophile may be disabled and uninstalled after themes are created.)
  3. If necessary, grant roles the permission to use Zenophile.

Drupal 6 - How To: Inline Images with ImageField and ImageCache using HTML

So you upload an image or three to your node, and you're wondering: "how do I get them in there?" ;) Well here's how I got them in there.

To follow this tutorial, you will need:

  • To feel comfy writing your own HTML for images, e.g. <img /> tags
  • To have installed CCK, ImageField and ImageCache.
  • To be familiar with how an ImageCache preset affects the upload process of an image when you use an image field to upload it.

You will also need the following information:

  1. The name of your uploaded image file
  2. The name of your image preset (the "image preset namespace"). Navigate to your ImageCache settings and hit "edit" for the preset in question - you should be able to see the preset name space.
  3. The name of the folder where your image field will store its images. To find this, go to content management and get to the configuration page for your image field. You want to know the "File path" under "Path settings".
    Warning: If you are using tokens to determine this, you will also have to figure out exactly what the path will be for your uploaded image.

Ubuntu Server 9.04

Apt-get will not install Solr properly on Ubuntu 9.04, so please follow the instructions on this link:

URL Fill

This module allows you to fill title, body, and CCK fields from the URL. It auto-populates a field with a value from the URL.


Supported Fields

It supports both single and multi-value fields. It has support for the following field types:

  • Node Title
  • Node Body
  • Textfields
  • Number fields (Float, Integer, Decimal)
  • Node Reference
  • User Reference
  • Content Taxonomy

Setting up fields to be auto-filled

For each field you want to be able to auto-fill, you must configure in the node or field configuration pages.

  • Node configuration can be found at Administer->Content Types->edit
  • CCK Field configuration can be found at Administer->Content Types->Manage Fields->Configure

Here you may set-up the variable from the URL you wish to get data from, and configure other options. For cck fields, the variable defaults to field_yourfieldname, for node title and body fields, it defaults to title and body respectively.

A note about multi-value CCK fields
If your cck field is allowed to have more than one value, then to properly fill from the URL you will need to append [] to the end of the url variable. For example:

    Views tips and recipes for image module

    This page contains various tips, tricks, and recipes for doing stuff with the views support in the image package. Please add your own!

    Display Only Nodes with Attached Images by Using Relationships

    The Image Attach module allows the creator of a View to limit the display to only those nodes which have an image attached to them. In Drupal 5/Views 1, this was accomplished via a filter; in Drupal 6/Views 2, it is done via a Relationship.

    1. In the Views edit screen, click the plus sign next to Relationships to add a new relationship.
    2. Under Defaults: Add relationships, check the box for Image attach: Attached image nodes.
    3. Click add.
    4. Under Defaults: Configure Relationship Image attach: Attached image nodes, check the box for Require this relationship.
    5. Click Update.
    6. Click Save to save your View.

    The resulting View will display only nodes that have attached images.

    Finding 'orphaned' images

    If you use images only with image attach, you may want to 'clean up' image nodes that are no longer attached to a node.
    A view of image nodes with the following will show you only image nodes that don't have an attaching node:


    Subscribe with RSS Subscribe to RSS - Site administrators