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.
Technical Blog
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.
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.
I have a few images in a folder on a Drupal site I was recently working on. The Drupal site also had a content type that contained a title and an image field and I had a requirement to create a node for each of these images. Read on to find out how to add a file to the image field of a node programmatically in Drupal 6.
In one of our Drupal projects which sells products online, our clients requirement was to collect tax from some states and to exempt other states from tax collection. We implemented this by integrating taxcloud account with ubercart using uc_taxcloud module. Read on to know how we implemented this.
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.
I have created a module for my Drupal project. That module requires a vocabulary that should be created when installing the module itself. To create the vocabularies, while installation itself we have to implement the code in the install hook. Read on to know the code to create a vocabulary named as 'Categories'.
When I was working on a website in Drupal 6 I wanted to theme the pager provided by views in a custom way. Finally I found a solution for the issue. If you also want to theme the pager in a View for your Drupal website you can follow the method below.
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.
One of our Drupal 6 clients wanted us to implement a feature where nodes belonging to a particular content type where to to be posted to their official twitter feed as soon as they were published. We had done a feature on How to automattically tweet published content on twitter from a Drupal 7 site. Read on to know how to do it in Drupal 6.
On one of our recent projects we had an issue where the Drupal site search was not working. There was a search.html file present in the home folder to handle a Google custom search page outside of Drupal. Since the filename was not the same as the drupal search path we did not expect it to be the cause for the Drupal search to not work.
We have created and released a new module Boost Captcha to allow static page caching of pages with forms with captcha without running into the captcha session timeout errors. By helping boost cache more pages the module will allow for better performance without compromising on spam protection.
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.
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.
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
A few Drupal users have found out that Colorbox does not open the login link in a Menu when it was expected to do so. If you are looking a solution for this scenario with Colorbox in your Drupal site then read on to find out more.
Here is the solution
A few Drupal users had found out that their site Contact form does not load in Colorbox when calling it with the relative page url. If you are facing the same issue with Colorbox in your Drupal site the continue reading.
Here is the most probable solution.
This article will be explaining how to create custom block and how to add the custom block in to quick tabs, programmatically. If you want to display the block inside a node you can refer our artilce How to print a block inside a node on a Drupal 6 website.
First lets create a custom block using hook_block. In this block what I want to display is when we provide a url, need to display corresponding alexa graph for the particular site.
One of our Drupal clients requested us for a feature in a mobile version of their Drupal website in which, a user accessing the mobile version of their website, should be able to automatically initiate a call on clicking the telephone number appearing in the website. If you want to know "How to start a call when a user clicks on a number in a mobile version of a Drupal website, then continue reading.
While working on Drupal Views, we might want to examine the query executed by the View to get its data. Analyzing the query may help us to identify why the view does not produce expected result. Read on to know how to view the SQL query executed by a View.