TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 237
  • Total: 238
  • lurkalot

Word of the Day

Started by Neobane, March 28, 2007, 10:12:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Neobane

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

maxnorris

#1
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 a relevant link from SMF that explains it a bit.

This website is proudly hosted on Crocweb Cloud Website Hosting.