Closed (outdated)
Project:
Wordfilter
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Nov 2009 at 15:32 UTC
Updated:
28 Nov 2016 at 10:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jaydub commentedThis 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.
Comment #2
jaydub commentedSee if this works for you by downloading a development snapshot.
http://drupal.org/cvs?commit=317936
Comment #4
weka commentedThank 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.
Comment #5
weka commentedThe 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.
Comment #6
jaydub commentedComment #7
mxh commentedDrupal 6 support ended on February 24th 2016. https://www.drupal.org/drupal-6-eol