Drupal Module : Rounded Corner

If you are a web developer then you probably know how much trouble it is to do a rounded corner using pure css + html tag only.

Sure you can use some of css techniques such as creating a small pseudo area on each corner and supply it with a corner image to simulate the rounded corner looks.

While its possible to do a rounded corner using pure css and one may debate that using jQuery to round your corner is not really browser compliant, Its really possible and usable in production site to utilize jQuery in rounding your element corner.

Drupal Theming User Registration Page

Theming drupal user registration page can be challenging if you don't know what to do.

First of all it's very annoying that drupal doesn't provide a hook_theme for the user registration page by default.

Because of lack of hook_theme for it, we need to create the hook_theme by our selves.

It can be done in module level or theme level, but really it is kinda pointless to do this in modular level unless we want to distribute the code or reuse the code in future use.

In this article we will discuss only how to add the hook_theme using the theme level.

Drupal Tips : Display your block anywhere you like

When building a drupal theme sometimes we need to display a block region in an unusual way.

For example, displaying drupal block region in search result page at the middle of the search result item.

One may say, how can we do that?

The answer is..

Drupal Tips : Saving Taxonomy Terms id to node using node_save()

When we create a node programmatically by utilizing drupal node_save() api, we expected that the taxonomy id is saved also by node_save().

It can be achieved if we pass the right information to the $node before invoking the node_save() api.

One can better understand the way $node stores the taxonomy terms data by analyzing the structure of $node->taxonomy.

Drupal Module : Password Strength

We loves the way drupal show the password strength meter when user try to register or change their password.

But how about if we want to enforce strict "high" level password rather than suggest as the drupal core password meter?. And how about if we want to check the strength of the password from server side to prevent the low level password to be saved?

Drupal Module Review -- CacheExclude

This small module is very useful if you want to disable cache just for specific page url.

For example, you have a custom page that needed to be dynamically updated. While caching it will have a great performance boost but if the anonymous user viewing the specific site then most likely it will get the cached content.

Utilizing this small module can prevent drupal for caching those specific page by configuring the module to skip cache for certain page url.

Module project page : http://drupal.org/project/cacheexclude

Drupal Tips : Removing unwanted link from tabs

Sometimes we want to limit a link in the tabs that shown to user.

Let say we want to remove link called "Contact"...

While this code below is sufficient to delete unwanted link from tabs :

Project Multimedia Center Module

I am planning to build a multimedia suite module for drupal, currently what I have in mind is the module should have these features :

1. Upload Image file
2. Upload Video file
3. Upload Audio file
4. Able to create "Album" for all of three media type
5. Galleria or Gallerific type of Image display
6. Allow comment in the album
7. Play the Audio using jquery + ajax + flash with playlist
8. Play the video using flash
9. Rating for album
10. Flash Upload

Tips: Battling the persistent cache

Sometimes when you are building a module for drupal 6 you may encounter this situation :

" ... Trying to get a data loaded to form or theme using node_load($nid) function ... "

And you have make sure that you have changed the database entry for the related node :

" ... I am using ajax query to change the database entry for xxx field in the cck content type ..."

But why the loaded data from node_load still show the old database entry as before the ajax change?

Theming Private Message - Message Threads

Most experience drupal builder knows that sometimes in the module folder the module author provides us with tpl (template) file that can be used with our themes to redesign / theme the layout for the particular module.

This is also the case for the private message module, you can use the privatemsg-view.tpl.php that you found the module directory and change the layout for the message threads view.

To do so you just need to copy the file to your theme directory and start editing the content of it.

Pages