Project:autocategorise
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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?

Comments

#1

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

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

#3

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);
}
}

#4

Version:6.x-1.3» 6.x-1.x-dev
Status:postponed» needs review

Here is the current 6.x-1.x-dev with code cleanup from #696474: Code cleanup ported to drupal 5.

Even if you don't want to maintain it it would be good if it was a release that people could download form the module page.

AttachmentSize
autocategorise_5.tar_.gz 3.43 KB

#5

This version sets the Autocategorise button weight heavy so that it ends up at the bottom with the other buttons all the time.

AttachmentSize
autocategorise_5_2.tar_.gz 3.48 KB
nobody click here