SMF Support > SMF 2.0.x Support

Integrating SMF Most Recent Topics Into Site's Home Page

(1/1)

bergkamp32:
I am working on a site where the SMF is under the site's home page. I want to display the most recent topics on the main site home page as they are listed on the SMF main page (there is a section called Latest Updates showing the avatar, topic, latest post, poster and links).

I have found documentation about including ssi.php in my main page which gives me access to ssi_recentTopics(). But I am looking for something that will give me what I'm seeing on the SMF main page, in that format. Where is this listing coming from? Is it a different function or a template file? Could this be easily incorporated into another web page (as the results of ssi_recentTopics() can).

I realise I can put the results of ssi_recentTopics() into an array and then do more a customised layout by stepping through the array, but from what I can tell in order to get the avatar I'd need to run a separate query to the SMF database avatar information is not part of the array returned form ssi_recentTopics().

Thanks in advance for any assistance.

Chas Large:
Firstly, sorry for the delay in responding to your query.

Looking at http://www.simplemachines.org/ I don't see "Latest Updates" with Avatars, only "Latest News". Can you post a link to what you refer to?

I assume you've checked out the ssi examples that is supplied with SMF? access it via yourdomainname.xxx/ssi_examples.php

As far as I know this is the full list of available calls, to get something more you'll either need to recode manually or perhaps consider using a portal system like SimplePortal, I've used this and the modules that can be placed on a Standalone Home page are quite extensive.

Navigation

[0] Message Index

Go to full version