TinyPortal
Development => Feedback => Topic started by: Neobane on March 28, 2007, 10:12:58 PM
I have a user who wants to contribute a "Word of the Day" section to the website.
I want to be able to archive her posts in the forums and then have the most recent post shown in a block on the front page.
I already have my top "Site News" and recent posts block going in the center block. Right now, I have the WotD going into a Block on the right panel using an article block and php to pipe the forum rss into the block.
The problem with this is that it will start to feed all of the WotDs instead of just the last one. Any way of getting just the last one to show up in the block?
http://www.loudmouths.org/forums/index.php
Would the SSI function of boardNews do what you're looking for?
Edit:
<?php
ssi_boardNews($board = *boardnumber*, $limit = 1, $start = null, $length = 250, $output_method = 'echo');
?>
That'll yank the newest message off of the given board, trim it to 250 characters.
Here's (http://www.simplemachines.org/community/index.php?topic=13016.0) a relevant link from SMF that explains it a bit.