News: TinyPortal Release Schedule. Please read this update for More Info.

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

October 23, 2019, 10:29:13 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189118
  • Total Topics: 20767
  • Online Today: 73
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 52
Total: 52

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

0 Members and 1 Guest are viewing this topic.

belghast

  • 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?

Thanks

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:  http://www.tinyportal.net/index.php/topic,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