Someone how can recomend any mods for the SMF forum?
I’am looking for a mod that can list the 10 last forum post in the front of my website, like this: http://www.euroharmony.com/site/main.php (scroll down to Latest Forum Messanges)
Someone how can recomend any mods for the SMF forum?
I’am looking for a mod that can list the 10 last forum post in the front of my website, like this: http://www.euroharmony.com/site/main.php (scroll down to Latest Forum Messanges)
As far as i know that isn’t an SMF forum mod, but they coded it so that it would show up on the homepage.
Cheers
Dan C
Thank you
If any of you know how or can you point me in the right direction, I would have been very grateful.
Here you go ->
<?php
require_once('SSI.php');
$data = ssi_recentTopics($num_recent = 8, $exclude_boards = null,
$include_boards = null, $output_method = 'array');
foreach($data as $post)
{
print $post['link'] . ' ' . $post['poster']['link'] . '<br />';
}
?>
You will have to adjust your path to SSI.php for your server. Also this only returns the post title and the screen name of the poster. There is a lot of data that comes back in the $data array that you can echo with this piece of code. You can find all the data variables in the smf support forums, the “recent = 8” determines how many topics the script returns. This is working in a live environment for me, I am just working on making it display nicely.
You can see what this returns on my board here ->
http://www.simpilotgroup.com/test.php
Thank you
I try this and see what I can do whit this
goran - Here is a good link that details all the ssi.php functions in smf. Has been a time saver since I found it.
http://www.simplemachines.org/community/ssi_examples.php
I have a new test page that prints all the functions on my site now, check it out.
http://www.simpilotgroup.com/test.php
Still trying to figure out how to get the data into tables and such…
---- EDIT - 8/31 ----
I have it working on the main page of the site here -
http://www.simpilotgroup.com/newenglandair/index.php
Let me know if you need help.
Yes, you’d use the SSI function in combination with the registration module - just replace the phpBB specific code with the ones from the SSI