TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 29, 2024, 11:34:14 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 90
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 44
  • Total: 44

Filter Forums out of Recent Topics list

Started by belghast, October 28, 2008, 10:34:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

belghast

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

Renegd98

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

IchBin

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.

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