Technical Blog

Zyxware default image2
| 3 min read
The article explain how to make mp3 files directly streaming on your website without users having to download the file. To do so I am using contributed module from Drupal that is Soundmanager2 module. It provides the Drupal interaction with the soundmanager2 libraries containing three default player style. Here I am just creating a content type for uploading the mp3 files. By creating a node to this content type we can upload the files and displaying mp3 player will be done by soundmanager2 libraries. For integrating MP3 file in your Drupal 7 , you need download modules and the libraries.
Zyxware default image2
| 1 min read
In Drupal 6, the configuration of vocabulary itself has an option to specify the content types that requires this vocabulary. There is only global settings for the vocabulary. If we set the vocabulary as multiple select, it will apply to all of the content types to which it belongs. We can not set this field as multiple select in one content type and single select in others.
Zyxware default image3
| 3 min read
One of our Drupal clients was using banner ads for their affiliates to bring in more members. Unfortunately these banner ads were placed inside the content with a page (A Drupal node) and the embed code for the banner ads generated using PHP code by enabling the PHP filter. If you have spent time in the Drupal world you would be knowing that enabling the PHP filter within the content area is a big security vulnerability. So the alternative was to use tokens. Read on to know how to replace a token within the content area of a node in Drupal.
Zyxware default image2
| 3 min read
There are certain cases were we need a copy of our database. In this case we need to export the database in the sql format. This is a simple process and can done in few steps. Certain cases we need full database for example if we need a backup copy of database we need to export the full database and in cases we need to export only certain table from the database. Both are possible. Both the exporting steps are given below
Zyxware default image4
| 2 min read
If you want to display large amount of content in a page on your site then using text scrollers would be one of the best methods. For example if you have lot of news and events to be displayed in a site, then using text scroller will allow the user to scroll over all the data.This can be easily implemented using views and jcarousel module. Read on to know how to display contents as text scroller in Drupal sites?.
Zyxware default image1
| 3 min read
When we try to theme a Drupal website certain case we need to create particular region in the Drupal website. Adding region for a Drupal website is not a hard task, even a developer first creating a Drupal website can create a region. In order to add regions inside a Drupal website we only need to add a few lines extra for that. Below there are three version of drupal for the drupal 6 and 7 version creating the region is same but for the Drupal 5 version it is slightly different.
Zyxware default image1
| 4 min read
In Drupal, if you have a content type and you want to change the output of any field to something else you can use field formatter with field API. This enables a display settings for any fields in a content type and where you can manage the output as you wish. This article shares how to create a field formatter for your Drupal content types. There are some contributed modules for custom field formatters. But if you really want to create or learn about creating a field formatter programmatically, just go through this article
Zyxware default image3
| 5 min read
If we create a drupal website and if we are trying to add a new theme for the website from the themes available what to do ? The first thing is to find a suitable theme for the website as per the requirement of the site. Before searching for a new theme we need to do certains things, try to sketch out the general layout of the new site. There are few thing we need to give some importance.
Zyxware default image2
| 4 min read
When your trying to implement a new feature(say a module or theme) in your local machine for a website, first thing you have to test is the compatability in all browsers. If you want to test your feature in multiple machines, its not always easy to download and setup on each machine. In my case, I am using Ubuntu and I have to always test compatability of a site in IE browsers which cannot be installed in ubuntu. So what I did here is created a virtual host for my site in my local machine and using my ip address I created a virtual host in other machines so that I could easily access all my sites in my local machine from diffrent machines.
Zyxware default image1
| 2 min read
This article explains how to programmatically, save custom additions to the user object when a new user account is created in Drupal. We can understand this with an example. Say, we want to create a default album with every newly created user, then we can use the following to save the custom additions. Similarly any of your additions can be done after referring the following.
Zyxware default image4
| 4 min read
This is an article about how you can create a custom color switching theme with the help of Drupal 7 color module. Color module is a Drupal core module comes with Drupal and you can use this module to colorize your theme. Garland is a Drupal theme which uses color module to colorize its various content. If you want to know more about how to create a colorized theme by using Drupal 7 color module read on.