Technical Blog

Zyxware default image1
| 2 min read
We encountered a situation when developing a Drupal site where our client website had been recently migrated to a new server. We had been using git as our version control system for almost all of our Drupal projects and this one was no exception. Now the new server did not have git installed and we needed one very quickly. So instead of requesting a support ticket and waiting for a response we decided to install git manually. Read on to know how to compile and install git on a live server.
Zyxware default image3
| 3 min read
What do you do if you have to take your Drupal site into maintenance mode from the command line? Well you can do this easily if you have drush set up on your server. With drush you can do quite a lot powerful drupal administration tasks right from the command line. In Drupal 6 The following drush command will take your Drupal site offline drush vset site_offline 1 The following drush command will take your Drupal site back online drush vdel site_offline In Drupal 7
Zyxware default image3
| 2 min read
On one of our recent Drupal projects we came across an issue where the file browse button was not triggering the file selection dialog in IE10 in Windows 8. The problem was diagnosed to be the result of jquery not getting the click event from the button. The site was using jquery 1.44 and this problem is supposed to be fixed in later versions of jquery.
Zyxware default image2
| 3 min read
One of the challenges with working with dynamic websites is that you have to keep fighting malicious users who regularly sap your server capacity with rogue crawling of your site. To do this you would have to monitor and analyze the traffic patterns on the server regularly. You would definitely want to do this when you have load spikes on the server and you wish to find out the IP addresses, user agents and the specific URLs which resulted in these spikes.
Zyxware default image3
| 3 min read
In this article I am going to tell you how to redirect anonymous users to a login form on 403 access denied pages in Drupal. There are some contributed module that provides you this feature but, if you really want to create a custom one for your site just try this. Here I will show you a PHP snippet that redirecting to login page for anonymous users on access denied.
Zyxware default image1
| 2 min read
Sometimes we use Drupal view_query_alter to add or modify the view's where clause. To add a new WHERE clause we may use add_where property. Whenever we use an add_where, it will create a WHERE clause along with an AND condition. There will be some cases were we need to use OR instead of AND. So if you want to know more about how to use OR clause in hook_view_query_alter, read on to know more.
Zyxware default image3
| 3 min read
One of our Drupal clients wanted to us to enable members of her site to bookmark their favorite nodes. We went to work immediately as we knew that this task could be accomplished by the Drupal Flag module. The flag module did enable us to implement that feature easily. Nevertheless we needed to add text near to the flag button/link on a specific node without affecting its display in a view. Read on to know how to dd text to a flag in a node when working with the Drupal Flag module.
Zyxware default image4
| 2 min read
We had recently worked with a client of ours to help port the Drupal 6 version of the Moneris Payment Gateway module for Drupal to Drupal 7. Moneris is a popular payment gateway in Canada. The upgraded module has been submitted in an issue under the Moneris issue queue - https://drupal.org/node/1276770. Once it is tested and verified by the community the maintainer will be pushing the code to the repository.
Zyxware default image1
| 2 min read
We have released a new Drupal module to fight spam - Spam Blackhole. This is a simple module to fight automated spam submissions on Drupal sites by bots that are not manually supervised. The module requires that Javascript is enabled on the site that is running the module. The module works by replacing the form action with a dummy URL while the form is generated from Drupal and then replacing the dummy URL with the actual URL when the user clicks the form submit button.
Zyxware default image3
| 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. Adding regions to drupal 7.x and drupal 6.x versions