Themers
Drupal Module Wiki
I have been looking for a single point where we can get the comprehensive documentation about Drupal Installation. I am proposing creation of a Wiki. This will help new-bies like me as well as maintainers/developers as most of the issues will be solved within the WIKI.
Swapnil Bhartiya
Cumulus - installation and usage
The Cumulus module provides a very nice eye candy way to display 3D tag clouds.
The 12 steps to get up and running
- Download the project from http://drupal.org/project/cumulus
- Unpack and upload the project to your 'sites/all/modules' directory
- Using the editor of your choice, create a new file named cumulus.js
- Point your browser to either http://pratul.in/files/cumulus.js or http://pratulkalia.googlepages.com/cumulus.js
- Copy the javascript code to your new cumulus.js file and save.
- Upload the new cumulus.js file into the cumulus module directory at 'sites/all/modules/cumulus'
- Enable the module at 'admin/build/modules'
- Gather id's of taxonomy vocabulary that you want cumulus to operate on by navigating to 'admin/content/taxonomy'. Hover over the "edit vocabulary" operation link to see the vocab id in the browser status bar. In the case that your browser has no status bar, you can also click the "edit vocabulary" link and then read the vocabulary id out of the url.
- Insert your cumulus enabled vocab id's into the block configuration at 'admin/build/block/configure/cumulus/0' as comma separated values. This field is the second one from the top.
Author Pane user picture (avatar)
Author Pane deliberately does not use the theme_user_picture() function for displaying the user picture (avatar) to allow greater control over it in specific pane instances. Instead, it uses the function author_pane_user_picture($account, $caller, $picture_preset) which is called from template_preprocess_author_pane() to get the user picture formatted to display on that pane instance.
Parameters:
- $account - The fully loaded user object. If all you have is a UID, you can get the object with
$account = user_load($uid);where $uid is a variable holding the user id. - $caller - (optional) This ID comes from the preprocess_author_pane and is passed through as a way to track who is calling the function. By checking the $caller, you could, for example, link the avatar on forum posts but not on the user profile page. (This is an example and is not actually implemented.)
- $picture_preset - (optional) This is an imagecache picture preset that, if given, and if imagecache is enabled, will be used to size the user picture on the author pane instance.
Drupal 6.x reserved words
I'm developing my custom modules and templates and hit a bug when trying to create a region on my theme called 'Navigation'. Since I was unable to find any Drupal reserved word list (and can't find that information on any other place), I did a try-and-error process.
I plan to put here any other word that I found and I hope that this could help someone in the future, if more people helps.
Since I'm using Drupal 6, this is the Drupal 6 Reserved words list.
- Navigation: when trying to call a region as 'Navigation', nothing happens and no content is assigned to '$navigation', despite the fact that there is blocks assigned to 'navigation' section.
Multiple different versions of jQuery co-existing
or:
Resolving jQuery plugin dependencies in Drupal without touching the version in core (or using jQuery Update)
Recent versions of jQuery include a noConflict() function which restore the previous definition of the $() function and, optionally, the jQuery() function.
This provides a way of using later versions of jQuery for particular purposes, without affecting the version that core and contrib are using.
