tutorials

Diana tiro con arco olimpico representado el remarketing de Google
Google remarketing is a powerful tool for displaying AdWords ads to visitors to our web site based on a set of rules that can be customized. The drupal webform module is one of the most used, especially to create contact forms, information requests, registrations, etc. In this article we will explain how to make a module that allows us to remarket to users who have submitted a form with a specific value selected, which will create a callback in our module responsible for creating the webform submission confirmation url, including only a single parameter of product, service or topic on which we want to remarket.  We will use as an example a webform that has a product selection component in which there are 3 options: 1 | Premium 2 | Advanced 3 | Basic The aim is for the webform submission confirmation page to include the selection code for which the user has requested information, so that we can configure our AdWords product knowing what the user is interested in. To do this, we will set a confirmation page with a fixed part and a second dynamic part, including the selected product from the webform, so the possible URLs in our example would be: /envio-realizado/1 /envio-realizado/2 /envio-realizado/3 We must additionally configure the webform to use a custom URL that we create as the confirmation page and add it to the parameters that the user has selected on the form. The first thing to do is create the module, in Drupal's hook_menu, which will provide a custom URL and callback to handle these requests. We will call our example "webform_remarketing." /** * Implements hook_menu(). */ function webform_remarketing _menu() { $items = array(); $items['envio-realizado/%'] = array( 'title' => 'Submission received', 'description' => 'Confirmation page for webform', 'page callback' => 'webform_remarketing _confirmation_page', 'page arguments' => array(1), 'access arguments' => array('access content'), ); return $items; } Once we have created the menu, we need to add the function defined in the callback page that will provide the content for display on screen: /** * Confirmation page menu callback. */ function webform_remarketing _confirmation_page ($producto) { return . t('Submission received') . ; } This function is an example for teaching purposes, so it just shows a simple message.  Logically, it's common to want to show more content, so it's good to remember that all content displayed to the user should use a theming feature so it can be easily modified by the site developer. The next step we need to take is to modify the configuration webform to use the confirmation page that we created in our module and pass the value selected by the user.  To do this, edit the webform options in the "form settings" tab.  Among other options, there is a section called "address redirection" which offers 3 options.  We need to select "Custom URL" and enter the URL that we defined in our module and make the webform correctly pass to the second part of the URL the value set by the user in the product selection component.  For this we use the corresponding token, which in this case would be [submission: values :?] where the “?” must be replaced by the form_key of the component.   Assuming that the value is “product," what we should put in this field would be: envio-realizado/[submission:values:producto] With this, we have achieved our goal.  When a user fills out the form and requests information about a product, the confirmation URL includes the code for that product, so we can configure remarketing using these URLs in AdWords and set our campaigns.
Rocket launching
Optimize the performance of your website with Drupal Boost, a module that provides a cache for static pages Drupal allowing a significant improvement in the performance for sites that receive traffic preferably from anonymous users. It is the best option to improve and optimize our sites hosted on shared hostings. Boost stores and compresses (gzip) HTML content, XML, Ajax, CSS and JavaScript. In this tutorial videoe, we explain to you how to install and configure the Boost module in Drupal 7. I hope you have find this helpful, you can leave your comments or questions and we’ll try to answer them all.   Esperamos que os haya servido de ayuda, podéis dejar vuestros comentarios o dudas y trataremos de responderos a todos.
Aplicando Parches a módulos drupal desde Mac OS X
The software required to apply patches onto any Drupal module comes by default on every version of Mac OS X. It is the patch command which must be launched from the command line through the Terminal.app    Applying patches through Terminal.app The first thing to do is a backup of the patch to be applied (i.e. ejemploparche.patch) and copy it over to the same folder where the .module file lives. Once this is done, check that the patch to be applied and the module are the same version by opening both files with a text editor and double-checking the review numbers. Review numbers look like this: diff -u -r1.51 example.module This command will search for version 1.51 of the example module. If the version number is different than the expected one, several error messages will be displayed in the command line and you will cry in front of your Mac. If the version number coincides, we can proceed. Open the Terminal.app (Application/Utilities). A window will popup with something like this: Last login: Fri Nov 14 08:56:19 on console Ordenador-de-pepe:~ admin$ Using the cd command (change directory) browse to the folder where both the module and the patch live in (i.e. "cd ~/Users/Sites/Misitiodrupal/sites/all/modules/example_module/") Tip: you can drag & drop a file or folder from Finder to the terminal window and the path will auto complete. Basically you only need to type “cd” (with a final space) and drop the folder where the module & patch live and then press Enter. Once you are in the correct folder, run the following command but replacing the name of the patch with the name of your patch: $ patch < ejemploparche.patch (NB: do not type the $ sign, this is only to show you how the command will look like I the command line) That’s it! The original module is patched and ready to be used.
How can we help?Get in touch