Jump to content

Recommended Posts

  • 1 month later...
  • Administrators
Posted

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

  • Administrators
Posted

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.  ;)

  • Administrators
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...