wordfilter does it work on blog and forum body?
mariabarra - August 7, 2008 - 05:22
| Project: | Wordfilter |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
I recently installed wordfilter,
Is it supposed to work on body and title of content types?
I have 2 issues
1) the title of the forums are not filtered when showed in a block created through a view
2) titles get filtered but the body of forum, comments and blogs do not
Did anyone experience the same issues?
Thank you

#1
1) The titles of forums are taxonomy terms and so at this time
do not get filtered by wordfilter because wordfilter only operates
on node and comment titles and bodies. I will likely add the
ability to filter on taxonomy terms BUT the filtering on taxonomy
terms would be permanent as the filter would rewrite the text
and store it in the taxonomy term database record because
you cannot modify taxonomy terms on-the-fly the way you can
node and comment titles and bodies via hook_nodeapi and hook_comment.
2) Please check admin/settings/filters and make sure you enable
the wordfilter filter for each input filter that you wish to be
filtered.
#2
ok looks like we can hook in word filtering for views with
hook_views_pre_view(). Views results in Full Node and
Teaser View already get filtered via the standard Drupal
hooks but not List and Table view.
This would be for node/comment titles derived from Views
in List and Table view in block or page mode as it seems
you were reporting in point #1. However it was unclear
if you meant the forum title as in the taxonomy term/forum term
which is not filtered by wordfilter or you meant the title of a
forum -post- in which case we can fix this.
Will get this working and add it to the module.
#3
Added in code to attempt to filter our node titles and comment
titles in List and Table display mode for Views 1.
I have not figured out the equivalent hook in Views 2 to modify
views results so for now this change is only in the 5.x branch.
#4
Subscribing, interesting in terms wordfilter.
Couldn't similar terms be used in someway? So the original can still be found back?
greetings,
Martijn
#5
#4 I'm not quite sure what you mean. Are you asking about filtering taxonomy terms?
#6
Hi Jaydub,
No I am thinking with you how to be able to set the wordfilter in taxonomy term with may be the possibility to make this variabel as with nodes.
And may be setting the original temporarely in similar terms is a suggestion to not loose the original.
Is this clear please?
greetings,
Martijn