News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SSI recent topics - syntax for excluding boards

Started by minstrel, June 12, 2006, 12:49:49 PM

Previous topic - Next topic

minstrel

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?

kegobeer

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.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")


ckgb

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

Advertisement: