News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

displaying most recent topics from 1 forum on your frontpage?

Started by 2pac, September 05, 2007, 09:35:48 PM

Previous topic - Next topic

2pac

hi! im currently designing a website and i have a frontpage and a message board and so on

anyway i was wondering if anyone knows what i can do to display the latest topics on a html table in my front page

my website is

http://www.ninerskickass.com

if yo wanna take a look

anyway, i want to display the three latest topics posted in, in the little table on the top right corner of my front page

i am very illiterate when it comes to coding, so if any one could please help me i would be very appreciative

thank you!

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

2pac

cool thanks, but i got 1 problem, my webpage file is index.html

i guess it has to be .php or .shtml


how would i go about changing that? and would i just be able to copy  and paste the rest of the code? or would i have to start all over?

JayBachatero

You can just rename the .html to .php and it will work like normal.  Just that you have to call SSI.php inside php tags.

<?php
require_once('/path/to/SSI.php');
?>

<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <?php ssi_recentTopics(); ?>
    </body>
</html>
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

2pac

cool i got it to work!!!

*sigh*

i still have one more question though...

how can i display stuff from just one forum? instead of all forums

Advertisement: