News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

April 05, 2020, 08:29:51 PM

Login with username, password and session length


  • Total Posts: 189582
  • Total Topics: 20808
  • Online Today: 65
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 39
Total: 39

Author Topic: Filter Forums out of Recent Topics list  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Filter Forums out of Recent Topics list
« on: October 28, 2008, 04:34:44 PM »
On one of the forums I run there is a board that we have for all manner of incendiary topics like politics and religion.  I thought by walling it off in that area it would make the forums in general easier to use.  However all of the recent political discussion threads are clogging up the Recent topics block we have on the side.  Is there an easy way to modify the recent topics to ignore ANY topic in a certain forum?   I have been searching for a place to modify the SQL to block any post with a BOARD_ID of 25 but have yet to find the right spot.

Anyone have ideas?


Offline Renegd98

  • Hero Member
  • *****
  • Posts: 733
Re: Filter Forums out of Recent Topics list
« Reply #1 on: October 28, 2008, 07:12:32 PM »
There is a code snippet that I am sure I saw here that allows you to create an array of the boards that you want checked for recent topics.

See this link:,1234.0.html

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Filter Forums out of Recent Topics list
« Reply #2 on: October 29, 2008, 08:47:29 AM »
Most definitely. The ssi_recentTopic() function already lets you choose which boards to exclude. However, there are several topics that do this already. Renegd98 has posted one of them.

Here's an example of the ssi you could use if you wanted.
Code: [Select]
ssi_recentTopics(10, 5, 'echo');
10 = number of  topics displayed
5 = board ID that you want to exclude (you can exclude multiple boards by using an array)
echo = default to echo out the topics