goran298 Posted July 17, 2009 Report Share Posted July 17, 2009 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) Quote Link to comment Share on other sites More sharing options...
Strider Posted July 18, 2009 Report Share Posted July 18, 2009 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 Quote Link to comment Share on other sites More sharing options...
goran298 Posted August 28, 2009 Author Report Share Posted August 28, 2009 Thank you If any of you know how or can you point me in the right direction, I would have been very grateful. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 28, 2009 Administrators Report Share Posted August 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
goran298 Posted August 28, 2009 Author Report Share Posted August 28, 2009 Thank you I try this and see what I can do whit this Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 31, 2009 Administrators Report Share Posted August 31, 2009 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 31, 2009 Administrators Report Share Posted August 31, 2009 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.