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 (http://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.
Do you try to close that boards for guest...
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
How can I find out?
Can anybody please help?
Anybody?
?
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? :)
Or even look it up in the function DB - http://support.simplemachines.org/function_db/index.php?action=view_function;id=514
How are you calling it currently?
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?
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));
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!