Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: rogelpm on June 30, 2009, 01:29:50 PM

Title: How To Add & Automatically update Recent Topics on My Site
Post by: rogelpm on June 30, 2009, 01:29:50 PM
I am using dreamweaver CS3 in cratng my website, I was stuck on how I will going to put codes in order to update automatically the RECENT POSTS/TOPICS in my website frontpage. Can you teach me the codes?
Title: Re: How To Add & Automatically update Recent Topics on My Site
Post by: Arantor on June 30, 2009, 09:33:13 PM
You need to use the SSI.php part.

In the front page, add this at the very top of the code:

<?php include("forum/SSI.php"); ?>


Of course, change that to suit the path from your homepage to your forum.

Then, where you want the recent topics to be, you use either ssi_recentPosts or ssi_recentTopics, depending on which you want. The default behaviour for those is as it is on this page (http://www.simplemachines.org/community/ssi_examples.php).