any good way to hide individual topics [message #36068] |
Fri, 02 March 2007 05:45 |
rdthoms
Messages: 12 Registered: January 2007
Karma: 0
|
Junior Member |
|
|
I have a FUDforum linked to a few nntp newsgroups. These are high quality newsgroups but still the occasional SPAM message comes through. I'm trying to moderate my forum by hiding the SPAM so the forum readers don't have to see it.
The problem is that I can delete the original SPAM message but then when others respond to the newsgroup with messages like "don't spam here" or worse flame wars erupt, then all of those responses come in as new topics and also have to be deleted.
I searched around and it seems that you cannot hide individual posts but you can move posts to a hidden board. So that is what I'm doing. I was hoping that I could move the offending topic to a hidden "Trash" board and then future nntp syncs would automatically put any responses to the SPAM topic also into the trash board but it seems that the nntp sync does not do that.
Am I missing something or do I need to go in and start hacking? If hacking is required - any suggestions?
I'm thinking I'd never have to "lock" a topic on a nntp forum so I could just "lock" the SPAM and then put in a hack to hide "locked" topics.
Thanks,
Richard
|
|
|
|
|
Re: any good way to hide individual topics [message #36132 is a reply to message #36126] |
Wed, 07 March 2007 00:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The ideal choice is to create a hidden forum called SPAM and move all topics where the "root" message (the 1st message) is considered to be spam into it. To move a topic you simply need to adjust the forum_id value in the threads table.
FUDforum Core Developer
|
|
|
|
Re: any good way to hide individual topics [message #36195 is a reply to message #36141] |
Wed, 07 March 2007 23:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Your idea sounds like a good plan.
As far as code goes you really just need one line
$msg_approved = q_singleval("SELECT apr FROM fud26_msg WHERE id=".$id);
FUDforum Core Developer
|
|
|
|
|
|
|
Re: any good way to hide individual topics [message #36276 is a reply to message #36268] |
Mon, 12 March 2007 22:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Rebuilding of the thread index can be done by executing the rebuild_forum_view_ttl() with the forum id as the only parameter. The function can be found inside the th_adm.inc file.
FUDforum Core Developer
|
|
|