Web Development

Web Development - Tips, HowTos, Starting, Utilities, Editors, Languages etc.

Cross browser compatibility is one of the most important concerns of an HTML/CSS developer. Here’s how you can easily add shadow effect to your div blocks with cross-browser compatible CSS. Simply add the below code to the div to which the effect is to be added. You can change the size, strength and direction of the shadow in all browsers, except for IE, in which you can change only the strength and direction of the shadow.

Continue reading

We start thinking about global variables when we want something to be available just everywhere. One case is when we want a particular variable to be available to all modules in a site. In Drupal, global variables are usually defined in settings.php. With that, all modules can access that variable.

Continue reading

When you want to move a Drupal site from one hosting server to another you have to ensure that the site works the same way on the new server as it used to work on the old server. There is no real fool proof way of doing this other than to meticulously document all the custom aspects associated with setting up the site and verifying it on the new server. The following is a checklist of information you have to collect before you move your Drupal site from one server to another.

Continue reading

We were testing our newly implemented modal popup for a login functionality. It was working pretty good in Firefox, Opera, and Chrome but not in IE8. When attempts to login by clicking on a login link the login modal was not appearing in IE8. Firebug said nothing, but jquery-1.7.2.min.js in IE showed the following error:

Continue reading

One of our clients sent us images they want to put in the website as pdf files. There were 100 files each containing a single image. Opening each of these in gimp and then saving it as pngs was a nightmare. For all such situations, ImageMagick is there for your rescue. With mogrify - a command utility available in the ImageMagick package, bulk converting all these pdf files to png was child's play.

Continue reading

Some times we wish to exclude some files and directories when we try to take backup of a website. With tar it is possible. Use the --exclude option. For example, if you want to exclude .git folder and the imagecache directory inside the files folder, use the command:

tar -zcvf abc.com.tar.gz --exclude ".git/*" --exclude ".git" --exclude "sites/default/files/imagecache/*" --exclude "sites/default/files/imagecache" public_html

Continue reading
  • By anoopjohn on July 25, 2012 - 23:22
  • OpenOffice
0

OpenOffice Calc is surprisingly an excellent tool for creating wireframes. Wireframes can be created very easily in OpenOffice Calc using the standard shapes available from the drawing toolbar and also by merging cells in the sheet. Each sheet can be used to define a single wireframe and then a single spreadsheet document can contain all the wireframes for a given project. OpenOffice Calc also allows you to export the full set of wireframes as a pdf document with one page corresponding to each sheet in the document. Here are some tips to create good wireframes using OpenOffice Calc.

Continue reading
  • By anoopjohn on July 4, 2012 - 22:16
  • Boost
0

Boost is a module that allows for static caching on a Drupal site for improving performance for anonymous users. You can read more about how to install and configure boost here. Boost comes with a boost crawler that can crawl your site and refresh the boost cache. Here is a simple script that can be used to refresh the boost cache without enabling the boost crawler.

Continue reading

As the world of internet grows day to day, the more educated and ever-wanting userbase now needs more data asynchronously. They don’t like to wait or load another page to see their data. In such situations we developers need to use more and more AJAX (Asynchronous JavaScript and XML - http://en.wikipedia.org/wiki/Ajax_(programming)) in the development of websites. Using AJAX in your web-development workflow is not that much difficult as you think. There is already a wide range of famous ajax libraries that make handling asynchronous requests easy for us.

Continue reading
  • By prasanna.tv on June 28, 2012 - 22:23
  • Drupal
1

Drupal’s Nice Menus Module provides a highly customizable and nice-looking dropdown menu for Drupal websites. To allow maximum customizability, it includes a CSS file and a javascript file where you can try out your own recipes. The following steps should help you make nice looking drop down menus for your Drupal website using the Nice Menus module:

Continue reading
  • By jiby.john on June 26, 2012 - 23:08
  • Drupal
0

Have you ever wondered how that cool site you saw last day had those cool interfaces and you wished your Drupal site could have the same coolness? jQueryUI is your saviour here. jQueryUI is one of the most popular JavaScript libraries out there in the world of web development. jQueryUI allows you to add very cool user interface elements to your website without much effort.

Continue reading

Solution for CKEditor not working in a Drupal 6 site.

One day, all of a sudden we found out that the CKEditor was not working on our Drupal 6 site. It had literally disappeared from our website taking the whole text area on the edit page with it. This meant that we could not create any articles as long as the CKEditor was not working. On seeing this, the first thoughts that flashed through our head was to either update the module or apply a patch believing that the CKEditor module had crashed. However our fears were unfounded and the solution turned out to be more simple than we expected.

Continue reading

Developing a Drupal website is a complicated and long process. You have to check whether all the design and functionalities meet with the client specifications. And before the site going to be live you have to check certain criteria.These checklists describes the criteria that should be tested before a site going to be live.

Continue reading
  • By anju.r on June 18, 2012 - 22:11
  • Safari
0

Wine helps you to run windows application in Ubuntu. Sometimes even though wine exists on your system, fonts which work perfectly fine on other browsers might be displayed wrongly in Safari. To fix this common font issue found in Safari working under wine on Ubuntu, you need to update the Wine repository on your system.

Continue reading

Are you looking to create a block of nodes related to one of the taxonomy terms in your current node? Just take an easy way to get this done on your Drupal site.

For Drupal 7, follow these steps:

Continue reading

CKEditor Module integrates one of the most popular online editors into the Drupal content management system. This module enables you to have a full-featured and customizable WYSIWYG editor in your Drupal website. In Drupal it is easy to install and configure CKEditor from within the Drupal administration panel.

Still having issues with file upload button in ckeditor?
Then follow these steps for a perfect CKEditor installation:

Continue reading

On a Drupal site that came up for some minor alterations recently we came across an issue where some menu links disappeared for anonymous users while they appeared normally for the administrative users. On digging further we came across an issue with an implementation of hook_db_rewrite_sql in a contributed module.

Continue reading

Are you looking to configure Drupal with nginx Server? Here is how you build nginx from source with php upload progress module in ubuntu.

Create a directory nginx-src and change to that directory

mkdir nginx-src
cd nginx-src

Then download the source package via apt

Continue reading

We get frequent requests to rebuild existing sites using Drupal. When we get such a request it would help to have a copy of the full site on our local server to make it easier for themers and developers to reuse whatever existing components that can be salvaged from the original site. Wget is a powerful tool that can help mirror websites locally or on any web servers.

Continue reading

In Drupal 6, when you are working on a new project and when you change menu items from MENU_NORMAL_ITEMS to MENU_LOCAL_TASK or vice versa you will run into a scenario where the menu_links table entries won't get changed.

Continue reading