Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: minstrel on June 12, 2006, 12:49:49 PM

Title: SSI recent topics - syntax for excluding boards
Post by: minstrel on June 12, 2006, 12:49:49 PM
I can get a list of recent topics using this:

<?php ssi_recentPosts(30); ?>

or apparently this:

<?php ssi_recentPosts('30'); ?>

However, I haved about 5 "private member" boards that i wish to exclude. Looking at ssi.php I see this:

// Recent post list:   [board] Subject by Poster Date
function ssi_recentPosts($num_recent = 8, $exclude_boards = null, $output_method = 'echo')


I've tried every variation I can think of to put in the board numbers after the "30" in the call above and all of them generate some sort of error.

Can anyone tell me specifically how to do this?
Title: Re: SSI recent topics - syntax for excluding boards
Post by: kegobeer on June 12, 2006, 02:16:54 PM
ssi_recentPosts(30, array(1, 2, 3, 4, 5));

30 is the number of posts to pull, and the boards to exclude are in the array.
Title: Re: SSI recent topics - syntax for excluding boards
Post by: minstrel on June 12, 2006, 02:45:10 PM
Thank you! :)
Title: Re: SSI recent topics - syntax for excluding boards
Post by: ckgb on March 22, 2007, 06:01:59 PM
Hello,

I have the following setting - ssi_recentTopics(35, array(9,26,96));

Based on the code I am supposed to have 35 recent topics displayed. Yet I have a number which varies all the time. Kinda like the displayed number depends either on time topics were updated or on the number of not displayed topics (this way displayed recent topics will be smth like: 35 minus excluded boards = actually displayed recent topics)

But those are just guesses.

I really want to have 35 displayed with 9,26,96 excluded. So if you know the solution I would appreciate your help.

Thank You