TinyPortal

Development => Block Codes => Topic started by: Swampy on August 08, 2010, 03:49:46 PM

Title: Recent Topic block for a Specific Area(s)?
Post by: Swampy on August 08, 2010, 03:49:46 PM
Recent Topic block for a Specific Area(s)?

Is there block code for the above that will work with this release of TP?

I have a huge need for it.

Much thanks in advance.

Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Freddy on August 08, 2010, 03:59:20 PM
Look through the snippets.
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Swampy on August 08, 2010, 04:24:24 PM
Quote from: Freddy on August 08, 2010, 03:59:20 PM
Look through the snippets.

I did but they all seemed for much early versions.  Do you have a recommendation which one?
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Freddy on August 08, 2010, 04:35:43 PM
Not really no but if you find one that looks all right I can try converting it....guessing you are on the newest TP and SMF2 ?
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Swampy on August 08, 2010, 05:02:28 PM
Quote from: Freddy on August 08, 2010, 04:35:43 PM
Not really no but if you find one that looks all right I can try converting it....guessing you are on the newest TP and SMF2 ?

This is the one I was looking at.

http://www.tinyportal.net/index.php?topic=1234.0

SMF 2.0 RC3 and latest TP
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: ZarPrime on August 08, 2010, 06:02:25 PM
If you are talking about getting the latest topics from a specific board on your forum, this is not as difficult as it used to be with earlier versions of SMF.  There are some new ssi functions that make this fairly easy.  The advanced mode of the recent topics function works pretty well for this.


ssi_recentTopics($num_recent = 5, $exclude_boards = null, $include_boards = 15, $output_method = 'echo');


Placing this into a php block will let you show the last 5 topics from board #15.

ZarPrime
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Swampy on August 08, 2010, 06:08:09 PM
Much thanks and appreciation ZarPrime!!!

You Rock!
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: ZarPrime on August 08, 2010, 06:14:34 PM
Sure, NP.  Can we go ahaead and mark this solved then? :)

ZarPrime
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Swampy on August 08, 2010, 06:26:57 PM
sure!
Title: Re: Recent Topic block for a Specific Area(s)?
Post by: Freddy on August 08, 2010, 07:21:03 PM
Great idea ZP  O0