News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Show 10 latest topics on other page

Started by laeresh, May 19, 2009, 02:24:34 PM

Previous topic - Next topic

laeresh

I am going to make a php mmo game site. and i'm going to use the following structure.
/ will be the home page, displays latest news + menu's
/s1 will be world 1
/s2 will be world 2
etc...
/forum will be the SMF forum ^^.
Now i would like to have the 10 latest topics to appear on my page in / but i'm having trouble doing this.
I looked  at the code and i just couldn't find a way to do it...

I hope any of you can help me with this ^^.
Would be a great help ;).

Yours all,
Laeresh

SolidSnake2003

You can include in an external php page using SSI.php

Here is an example code to work:

Place this before <html> in your page
<?php require('/home/info/username/html/smf/SSI.php'); ?>

Place this where ever in the page you would like the posts to show up:

<?php ssi_recentTopics(10); ?>

Hope this helps you

laeresh


olufemo


Advertisement: