TinyPortal

Development => Support => Topic started by: nukirk on October 16, 2007, 05:24:49 PM

Title: Turning Forum Posts into articles
Post by: nukirk on October 16, 2007, 05:24:49 PM
Is there a way that I can turn one of the boards into a "blog article" so that when I post an article, it will have the format of an article with comments but without making it look like a forum post?
Title: Re: Turning Forum Posts into articles
Post by: G6Cad on October 16, 2007, 05:45:19 PM
Not at this time no in the TP Package, but if i remember correctly i think some one asked about this before.
Look in the block code and snippets or do some search on the subject and see if you can find it.
Title: Re: Turning Forum Posts into articles
Post by: lebisol on October 16, 2007, 10:48:55 PM
Is it the look or the comment feature that you are after?
Title: Re: Turning Forum Posts into articles
Post by: nukirk on October 17, 2007, 06:14:30 AM
Quote from: lebisol on October 16, 2007, 10:48:55 PM
Is it the look or the comment feature that you are after?

Both actually... the look so that it don't look like a forum post and the comment feature so people can comment on it.

Kinda like... make it Wordpress without Wordpress.
Title: Re: Turning Forum Posts into articles
Post by: lebisol on October 17, 2007, 07:19:53 AM
I have seen some posts of code used in custom 'recent articles' that you can perhaps modify and hardcode condition in sense of
if membergroup=admin echo 'regular article-with post count displayed'
else
echo' tweaked article display'

If you want to use this as 'real hit counter' then I think you would also need to look for mod/snip that eliminates bot hits.

Lots leg work but there may be something already done.
Look through >> this post (http://www.tinyportal.net/index.php?topic=4983.0)<<
All the best!
Title: Re: Turning Forum Posts into articles
Post by: Zetan on October 17, 2007, 09:15:42 AM
Use SSI functions.

PHP block or article

ssi_boardNews($board = 40.0, $limit = 5, $start = null, $length = 610, $output_method = 'echo');

Board = Board number.. hover over the board title to get the number.
Limit = How many topics to display
Length = Character count

Turn off Article comments.. You will be commenting the static Article and not the content within the Article otherwise.

For an example, my site home page uses SSI functions in the Reviews, News and Gossip.. Events and Releases.
For more info, search SMF.

Your forum install includes:

http://yoursite.com/ssi_examples.php

and

http://yoursite.com/ssi_examples.shtml

Title: Re: Turning Forum Posts into articles
Post by: texasflats on October 25, 2007, 01:07:17 AM
How would I show the post from 3 different boards on one page? I'm trying to put them in a 3 column table for fishing reports from three different areas. Is that possible?

Anyone?
Thanks in advance.
Title: Re: Turning Forum Posts into articles
Post by: lebisol on October 25, 2007, 01:13:59 AM
use the code Zetan gave you and repeat it for as many forums you want.
Title: Re: Turning Forum Posts into articles
Post by: texasflats on October 25, 2007, 01:19:32 AM
I'd tried that already, the first one appears but thats it. Thanks.