Words in the forum topic title that should be filtered are not in the forum topic list. When viewing the actual forum topic node the words are filtered in the title. This appears to be a bug with the word filter module.

CommentFileSizeAuthor
#4 ForumBlocks.png54.09 KBWeka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jaydub’s picture

Category: bug » feature

This is not a bug in wordfilter per se. The way the Forum module works when it builds it's topic list is to build the list of topics (title, username, time, etc) via an SQL query. The results of this query are passed to a theme function defined in the Forum module. The way wordfilter module works for the body of a node or comment is via Drupal's standard input formats. Node and comments titles are processed by utilizing Drupal's hook_nodeapi and hook_comments which will allow the node/comment title to be processed at node/comment display time. The forum topic list is not processed through the standard Drupal hooks so wordfilter cannot process the titles.

That being said, I have sorted out a way this can be done for the Forum module by adding a template processing function to process the forum topic titles before they are passed to the Forum forum-topic-list.tpl.php template.

jaydub’s picture

Status: Active » Fixed

See if this works for you by downloading a development snapshot.

http://drupal.org/cvs?commit=317936

Status: Fixed » Closed (fixed)

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

Weka’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Closed (fixed) » Active
FileSize
54.09 KB

Thank you very much for addressing this issue.

I have tested Wordfilter 6.x-1.x-dev (2010-Apr-03) and found that the filter is applied to forum topic list. However, the Active forum topics and New forum topics blocks still display the original words.

I have also tested Word Filter module on a site running Advanced Forum and the topic listings do not get filtered there.

I understand that this is caused by the way input filters are handled in core and don't expect you to come up with a solution, just wanted to report my experience.

Thank you very much for a great module.

Weka’s picture

The first topic listed at the bottom of each block in the screenshot do get filtered. The only diference is that that post has been marked as Promote to front page. Hope this helps.

So far it looks like that checking the Promote to front page check box makes the filter work even in Advanced Forum.

jaydub’s picture

Assigned: Unassigned » jaydub
mxh’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 support ended on February 24th 2016. https://www.drupal.org/drupal-6-eol