Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: jjmac on May 07, 2005, 12:51:44 AM

Title: Display a board from your forum on your web page
Post by: jjmac on May 07, 2005, 12:51:44 AM
I wrote this simple program for my web site and thought other people may (or may not) find it useful. Basically you choose a board to use as announcements, then you include this file onto your web page somewhere and it will display the latest announcements with a link to go to the forum and read the entire thing. Pretty simple, and the output is bland unless you use some CSS. Here's what mine looks like:

(http://www.kromefx.com/projects/mod_sample.gif)

Instead of posting all the code here (so it doesn't take up all the space) I just have a link to a txt file that is the code. Copy and paste it if you want to use it, or right click/download and rename it to .php. Here's the link:  http://www.kromefx.com/projects/forum_news.txt

Hope someone finds it useful. :)

[edit]Perhaps I should have posted this in Tips and Tricks? If so would someone be kind enough to move it? Thanks :)[/edit]
Title: Re: Display a board from your forum on your web page
Post by: Cool Surfer on May 09, 2005, 10:18:57 AM
Cool Php script. Thanks :)
Title: Re: Display a board from your forum on your web page
Post by: Thantos on May 09, 2005, 10:29:25 AM
Why not use ssi_boardNews()?
Title: Re: Display a board from your forum on your web page
Post by: jjmac on May 09, 2005, 12:58:23 PM
Quote from: MikeMill on May 09, 2005, 10:29:25 AM
Why not use ssi_boardNews()?
hmmm. Mainly because I didn't know about it. I've never used a forum software before. I'll check it out, thanks :)
Title: Re: Display a board from your forum on your web page
Post by: Thantos on May 09, 2005, 04:21:43 PM
Search for SSI.php :)
Title: Re: Display a board from your forum on your web page
Post by: PatriiickEmin on August 22, 2009, 05:44:12 PM
How can I use ssi_boardNews() to display my forum news on another web site? Thanks.
Title: Re: Display a board from your forum on your web page
Post by: Tony Reid on August 23, 2009, 08:20:19 AM
Use RSS instead.

http://www.simplemachines.org/community/index.php?topic=25009.0

Then simply place an RSS reader on the other site.