Download & Extend

drupal 6 support for Filter by node type

Project:Filter by node type
Version:5.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:milianw
Status:closed (fixed)

Issue Summary

I've ported this module to drupal 6. Patch is attached.

I will add a way to select input formats for comments now. Those patches will take my patched drupal 6 code as a base.

PS: I was forced to select a version but 5.x-1.x-dev is not correct. Please add drupal-6.rc4 or similar and reassing this issue.

AttachmentSize
drupal6.patch6.11 KB

Comments

#1

Updated patch

AttachmentSize
drupal6.patch 5.84 KB

#2

and yet another updated patch which solves a problem I encountered

AttachmentSize
drupal6.patch 5.92 KB

#3

This is really important for me to switch to D6. Unless someone can give me a better way to use filtered html for forums and raw html for everything else in the same user role. Is this module maintained anymore?

#4

It is, but I only use it on one site so I am not paying close attention to it. I will need it for D6 myself, though, so it will happen. I just need to clear some time to review this patch. :-) Please stand by.

#5

will_in_wi: It would be great if you could at least test my patch to see wether it works for you or not.

#6

And if it does, mark this issue RTBC. :-) Thanks.

#7

Status:needs review» reviewed & tested by the community

Works for me. Even under windows.

#8

Is this module maintained? I think a good option at this point would be to apply the patch and push out a 6.x-dev release.

#9

I can only second will_in_wi's request: Just today I was contacted via email by someone who wanted to use this module on a Drupal 6 installation but couldn't get it working. Since my patches are based upon a CVS checkout it should be pretty easy to incorporate them. If there is any problem please notify me.

For future references I've updated the patch so this module now also adheres to Drupal coding standards according to the Coder module.

I'm additionally attaching the current patch and a tarball of the version I successfully use in production use on my personal website.

Happy testing!

AttachmentSize
drupal6_updated.patch 8.35 KB
filterbynodetype_drupal6.tgz 9.41 KB

#10

Thanks! We're going to be using and testing this for the next little while on a soon-to-be production site. Everything looks good for now.

#11

Title:drupal 6 support» drupal 6 support for Filter by node type

#12

when will this patch be commited?

#13

Status:reviewed & tested by the community» needs work

There's an error on line 72 of your patched version (haven't checked if this is in the original version):

<?php $form['body_field']['format']['collapsed'] = 0;?>

['collapsed'] should be ['#collapsed']! Drupal dies on certain node edits otherwise.

#14

zoo33,

I ran in the same problem! The edit would just fail until I applied your fix.

Thank you!
Alexis Wilke

#15

subscribing

#16

Thanks for the port!

#17

This works for me too with the fix from #13. How can we get this moved to an official drupal 6.x release of this module? Is the module maintainer the only one who can do that? Or can we assign someone else to the task to get it done?

#18

would be nice if someone takes over a 6.x branch
this seems to be a "must have" module

#19

would love to see this patch in the official

#20

subscribing. thanks

#21

The patch in #9 fails horribly for me when run against the 5.x branch (which is the most up to date version, as I don't use HEAD). From visual inspection it looks like the changes are drastic, too, so I don't know that I'll be able to fix it up.

#22

Status:needs work» fixed

I've gone ahead and updated the alter hook directly. It's much simpler than #9 above; I don't really know what half of that code was doing. I've branched a Drupal 6 version.

While I was at it, I got rid of the separate admin form and moved the configuration to each node type's page. That should be much cleaner, and makes the code considerably shorter, too. (It's only 3 functions!) Tarballs should appear shortly.

--project followup subject--

Automatically closed -- issue fixed for two weeks with no activity.

#23

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here