First of all, if you're using a free phpbb forum (free as in invisionfree.com is for IPB) it won't work.
Let's start off here.
$dbms = 'mysql';
$dbserver = 'localhost';
$dbport = '';
Leave those three alone, unless your host specifies otherwise.
$dbname = 'Database Name';
$dbuser = 'Database Username';
$dbpasswd = 'Database Password';
Replace the proper information in the proper spot. If your database name was 'phpbb_db', then you would replace 'Database Name' with 'phpbb_db'.
Same for the username, and password.
phpbb3 is the default one, so if you don't remember what you put, then use that. It's the same one you used at installation.
If you want the comments/replies links to work, then you have to set the following variable correctly:
$forumpath = "nforum";
On the demo site, the script was on 'http://www.n-etwork.com/
' and the forum was at 'http://www.n-etwork.com/nforum
'. The forum path would then be 'nforum'.
Last thing to be modified, is forum id.
$forum_id = "1";
That was what I used because my news forum is the first, with the id being 1. you can easily get the forum id from the url of the section you want to get the posts. If my url was viewforum.php?f=4, then my $forum_id should equal "4".
If you need me to go in-depth with anything else, just ask.