|Improving the UI of Drupal Proximity Searches||
In this Drupal video tutorial, we improve the UI of our proximity search (created with the Views, Gmap and Location modules) by validating postal codes submitted by users and displaying a status message if there are no nodes within the given proximity.
To achieve this, this tutorial shows you how to implement hook_form_alter to return a message to the user if they incorrectly enter a postal code and hook_views_pre_render to check our views result and display a message if no results are being returned.
This tutorial is predicated on the following video tutorials:
|Gmap, Location, Module Development|
|Custom Emedded Node Reviews||
In this video tutorial, we walk through a custom Node Review module (shared on this site) which embeds reviews in the node content so users do not have to go to a new page to submit a review. It is similar to the Node Review module but that module requires users to leave the node they are reviewing to submit their own review. This module is perfect for Ubercart product reviews to help upsell products. The tutorial is only 9 minutes long and if you don't care how the module works, just download it and start using it -- it is based on Drupal 6.
I've committed a patch to the Nodereview module on drupal.org to include the ability to embed node reviews using Fivestar. You can get it here.
|Module Development, Node Review, Fivestar, Voting API|
|Drupal Module Development: Creating a Related Nodes Block 2 of 2||
In this Drupal video tutorial, we continue on with developing a related node queue that was started in Tutorial 1. We check to see how many nodes are returned with the same taxonomy terms and if it is less than 5, we run another query for nodes of the same content type.
This video is about 19 minutes in length and I apologize in advance, but the PIP video goes a little off half way through. Rest of the video is fine though.
|Drupal Module Development: Creating a Related Nodes Block Tutorial 1 of 2||
In this Drupal Video Tutorial, we take a look at custom module development. With our module, we create a block that will list other related nodes based on the taxonomy terms of the node being viewed. In this tutorial, we'll look at how to call hook_block, how to manage the $op variable, querying the database and returning a value to our block.
While this is easily done with the Views module, we'll this a step further in Tutorial #2 and ensure we get 5 random results and if 5 aren't available, we'll populate the list with additional nodes based on the content type we are viewing.
This tutorial is about 34 minutes in length and I apologize in advance for the sound quality.
|Overriding the Simplenews Subscription Block: Tutorial 2 of 2||
This tutorial is about 14 minutes in length and will cover some basic Drupal module development concepts.
|Simplenews, Module Development|
|Simplenews Subscription Block Override - Tutorial 1 of 2||
In this Drupal Video Tutorial, we look at the Simplenews module and create a custom module to override the Simplenews subscription block. Using hook_form_alter, we rename the Simplenews save button and remove the Simplenews radio buttons for subscribe and unsubscribe.
This tutorial could also be considered a basic Drupal module development tutorial as we call hook_form_alter via a custom module. When viewing this tutorial, I assume you familiar with Simplenews and have the module already installed and Simplenews subscription block enabled.
In tutorial 2 for Simplenews Subscription Block Override, we replace the "save" button with an image button and introduce some jquery to our custom module so that the Simplenews subscription form fields is prepopulated with "Subscribe..." which disappears when a user clicks on the form field.
|Simplenews, Module Development|