Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | ForumBlocks.png | 54.09 KB | Weka |
Comments
Comment #1
jaydub CreditAttribution: 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 CreditAttribution: jaydub commentedSee if this works for you by downloading a development snapshot.
http://drupal.org/cvs?commit=317936
Comment #4
Weka CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: jaydub commentedComment #7
mxhDrupal 6 support ended on February 24th 2016. https://www.drupal.org/drupal-6-eol