ok, well here's what I did. I edited ubbtnews.php to add the correct settings for my DB, and made sure it worked by running it manually from the URL line in my browser. Then I edited my template (in my case, postlist.tmpl), and added my code right underneath the following bunch of table code :
code:
</table>
</td>
</tr>
</table>
<br />
This is the code I inserted, starting on line 83 :
code:
<table width="{$theme['tablewidth']}" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="{$theme['cellpadding']}" cellspacing="{$theme['cellspacing']}" width="100%" border="0" class="tableborders">
<tr class="darktable">
<td>
<!-- UBBTPRINT; -->
include('./addons/ubbtnews.php');
<!-- echo <<<UBBTPRINT -->
</td></tr></table></td></tr></table><br />
What this does is add a new row below the main/search/my home buttons, displaying the news items however you have them set up. Once this is in, you will need to edit ubbtnews.php again, and comment out the
code:
require ("$path/main.inc.php");
line on line 53. This is because the ubbtnews.php code is no longer being called standalone, so the main.inc.php is already included.
And that's it. Sorry for the bad description, it's the first time I've tried to explain something like this to someone else.
Have fun
Grahame
=======