We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    I am trying to show the most recent forum posts from my SMF forum on the Site home page which is run on MODx 1.0.4

    As soon as I include my snippet which is inside a chunk I get a blank page output.

    This is my snippet
    <?php
    $topics = ssi_recentTopics(3, null, null, 'array');
     foreach ($topics as $topic)
     { 
    echo ' <li><a href="', $topic['href'], '">', $topic['subject'], '</a> ', 'by ', $topic['poster']['link'], ' on ', $topic['time'], '</li>'; } unset($topic);
    ?>


    The code works fine on a stand alone php page I am calling the snippet like this [!ForumPosts!]

    Can anyone give me some clues to where things might be going wrong.

    Many thanks
      • 12584
      • 208 Posts
      ok sorted it another stupid typo embarrassed