Drupal

Patch to enable print City and Country in Debug Mode for GeoIP API

Hello folks.

I did a small patch to include the Country and City in Debug mode for module GeoIP API  with Drupal 6, the debug mode for this module is important in development process and useful if you don't access to computers in other countries.

You can follow the issue request to include in next release at: http://drupal.org/node/1006424

Merry Christmas

enzo

Views Exposed Filters With a Reset Button

Hi folks

Views module is maybe one of the most powerful module on drupal, and when we create exposed filters in order to help the end user find any result it is even better, however if the user wants to reset a search, either he needs to click back on the web browser or go to the url again.

How to make the VBO option "Modify node taxonomy terms" works

When you put content taxonomy fields and VBO modules working together this can be frustrating with the "Modify node taxonomy terms" option.

AttachmentSize
views_bulk_operations-674864.patch1.38 KB

New Releases for Taxonomy Accordion Module

Hello folks

I just released a new version (6.x.1.3) for Taxonomy Accordion module to fix the bug http://drupal.org/node/989724.

Also, I released a new version 6.x.2.1 to enable the active trail path to start with the proper container accordion open, in order to maintain a consistent user navigation experience.

Enjoy it

Regards,

enzo

How to delete a specific node cache via code in Drupal 6

Hello folks.

If you for some reason need to delete via code the cache of a specific node and revision, you can use the snippet code listed below.

The cache_content table has a cid key this key is formed by [content:node_id:node_revision_id] , so imagine  you have a Node id: 500 and Node Revision Id: 1583 , then to delete the cache for this specific node and revision, you must run this sql.

How to get all records from a Display View in Drupal 6 via Code

Hello folks.

If you for some strange reason need to get how many records a view has in total without pagination, and you have the option to do this with php code, check the snipet code listed below.

<?php
$view = views_get_view('my_demo_view');
$view->get_total_rows = true;
$view->set_display('default');
$view->execute();
print "Total Records in my demo view:" . $view->total_rows;
?>

Enjoy it

enzo

Patch to disable redirect to External URLs with GlobalRedirect Module

Hello folks

A customer requested to remove an apparently security issue, caused by Global Redirect in the way it handles the request to translate node/xx to the human URL inside Drupal.

Well this treatment generates a problem with requests like this http://www.domain.com/?q=http://domain2.com, redirecting the customer to http://domain.com website.

How to send HTML email with drupal_mail function in Drupal 6

Hello folks.

If you need to send html email with drupal_mail function in your module,  here is a sample to achieve this requirement.

1. Implement the hook_mail in YOURMODULE

Bugfix for Drupal Taxonomy Accordion Module

Hello folks

I just released a new version (6.x.1.1) for Taxonomy Accordion module to fix the bug http://drupal.org/node/948952, now this module is enabled to render taxonomy term as Term Id or Term Name.

Enjoy it

Regards,

enzo

Drupal Views Argument base on Taxonomy Term ID from URL Synonym

THE DRUPAL PROBLEM

Turns out that setting up a view to sincronize with the Taxonomy TermID from URL works great, the problems begin if the Term ID in the URL is a synonym, then you get then nothing out of it.

THE DRUPAL SOLUTION

Select PHP Code instead of the Term ID from URL and copy the following code. Basically what it does is get the term from the url, which is a synonym. View image for more details

$request_uri = urldecode($_SERVER['REQUEST_URI']);
$term = end(split("/",$request_uri));
return $term;

Pages

Subscribe to Drupal