Possible to exclude a certain board from SSI?

Started by mrbones, October 07, 2009, 02:11:45 PM

Previous topic - Next topic

mrbones

I've got an SSI include on my home page that shows the most recent posts. Is it possible to exclude a certain board from showing up on there?

Here's the home page: www.atvflorida.com

I want to get rid of the Politics board from showing up. Is it possible?

It would be nice to also exclude it from the Board Index, too.

LOVELORD


karlbenson

It is possible to exclude boards in 2.0 with an extra parameter.
function ssi_recentPosts($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo')

I'm not sure whether its possible for 1.1.x though as some new parameters were added


mrbones




Marcus Forsberg

Quote from: mrbones on October 07, 2009, 04:59:55 PM
How can I find out?

How about trying the code karlbenson posted and see if it works for your version? :)

Arantor

Holder of controversial views, all of which my own.


mrbones

Current call is: ssi_recentTopics()

I looked at the link and came up with this:

ssi_recentPosts ([10[,('53')]]);

Testing page: http://www.atvflorida.com/index2.php

This is the board I'm trying to exclude from the call.

http://www.atvflorida.com/forum/index.php/board,53.0.html


It must be wrong because the output looks the same. What did I mess up?

Arantor

The [ and ] mean the things are optional. Plus the formatting wasn't quite right and confused it a little.

Try: ssi_recentPosts (10, array(53));
Holder of controversial views, all of which my own.


mrbones

That did it! Thank you, thank you, thank you!

I put the code on the home page.

http://www.atvflorida.com/index.php

No more Politics on the home page! Yahoo!

Advertisement: