Using php code directly is disabled as of security reasons.
We could have taken the other plugin, Garvin mentioned, but this is for sidebar output too and isn't smartified, so this should not help us according to your wishes.
OK, this is what I would try, if you want the topics in the page footer section only.
If you use a modern template like bulletproof or anything like it, you can find a config.inc.php file in your template folder. Open it and add (underneath the dont hack part):
Code: Select all
<?php
if (IN_serendipity !== true) {
die ("Don't hack!");
}
// get the smf framework
require("/home/daxueyin/public_html/forum/SSI.php");
// assign a smarty variable to the topics
$serendipity['smarty']->assign('ssi_recentTopics', ssi_recentTopics());
...
Code: Select all
{$ssi_recentTopics}
HTH,
Ian