PDA

View Full Version : Set reply criteria for "recent threads" module


sully02
12-16-2004, 12:44 PM
I want to set up my recent posts/threads module so that a thread will only show up if it has reached x number of replies. I have a segment of my forum that is infamous for posting one liners that clog the recent posts module.

Any help would be greatly appreciated.

sully02
12-16-2004, 09:26 PM
I'd just like to reply that I figured it out after a little while looking at the code.

For those curious, you can make this modification by finding:

WHERE open <> '10' AND thread.visible = 1 $iforumperms $inforums $notdeleted

And replacing it with:

WHERE open <> '10' AND thread.replycount > x AND thread.visible = 1 $iforumperms $inforums $notdeleted

Where x is the number of minimum replies a post needs to show up there.

Our Sponsors
 

sully02
12-18-2004, 01:26 PM
If anybody knows how I could do it, I'd like to make it an option in each user's control panel where they can choose the value of x in the above post.