TinyPortal

Development => Block Codes => Topic started by: Rocket on April 12, 2008, 01:52:15 AM

Title: Single post in block
Post by: Rocket on April 12, 2008, 01:52:15 AM
I am trying to put one post into a block, sort of an announcement message.  Is there an SSI code that could be used for this?

Thanks!

Rocket
Title: Re: Single post in block
Post by: IchBin on April 12, 2008, 01:59:44 AM
I have a mod at SMF for grabbing a single post. You can also get it at my site. It adds an SSI function to grab a specified post. Search at SMF for single message to find it if you'd like.
Title: Re: Single post in block
Post by: Rocket on April 12, 2008, 02:12:55 AM
Ok, added the mod, but am not having success in adding it to a block.  Should this be in a PHP block?

ssi_grabMessage($message_id=1)
Title: Re: Single post in block
Post by: JPDeni on April 12, 2008, 02:46:57 AM
Put a ; at the end and put it into a php block.


ssi_grabMessage($message_id=1);

Title: Re: Single post in block
Post by: Rocket on April 12, 2008, 03:22:34 PM
Thank you!

In the immortal words of Forrest Gump... "I'm not a very smart man"
Title: Re: Single post in block
Post by: JPDeni on April 12, 2008, 04:32:34 PM
Quote
In the immortal words of Forrest Gump...

:) One more thing that you've learned. I forget those sneaky ; all the time.