Drupal 5 backport?

pianomansam - January 29, 2009 - 16:08
Project:autocategorise
Version:6.x-1.3
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:postponed
Description

I've looked around for a module that offers similar functionality for D5 but am having a tough time. Tried autotag but with it's requirements of JQuery Update I can't get it working properly. How tough would it be for someone to backport this to Drupal 5?

#1

matslats - January 29, 2009 - 18:38
Status:active» postponed

This is not a complex module and should offer few challenges to backport.
Do you have the resources to do this?
Don't forget to send it so it can be made available for everyone!
Please note there is a version 2 of the module coming very soon.
The mechanism will be the same but there are many more options.
tom_h is in charge of that

#2

eodonnell - February 4, 2009 - 13:32

I'm trying to get this functionality for Drupal 5 as well - this looks perfect!

#3

pianomansam - February 6, 2009 - 17:50

I've developed for Drupal 5 but haven't touched anything for Drupal 6 yet. I wanted this sort of functionality to be integrated into another module I am using, but I was able to figure out the logic behind this. Here's the main logic for Drupal 5...

//Search body for taxonomy terms and tag node when any are found!!!
$body = $node->body;
$words = explode(" ", $body);
foreach($words as $word){
$term = taxonomy_get_term_by_name($word);
if (!empty($term)){
//print_r($term);
@db_query('DELETE FROM {term_node} WHERE nid = %d AND tid =  %d', $node->nid, $term[0]->tid);
db_query('INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)', $node->nid, $term[0]->tid);
}
}

 
 

Drupal is a registered trademark of Dries Buytaert.