I've never heard of freeforums before, so I can't tell you how good it is. I do know that it isn't one of the "bigger" forums, and therefore the amount of support is smaller.
If you don't need to allow people to log in to the main site, you could just query the database running the forum (for the member list) without too much hassle.
As for actual code, that realy depends on what you're looking for.
If you're building it on SMF, the SMF site has examples written in PHP. If you're looking to do it from scratch, PHP is very commonly used and there are examples everywhere. (PHP.net is the official site with one of the best documentations available for any language).
I don't know if you want an ad-based solution, or if you want to host it yourself. The latter gives you all the freedom you need, but costs money. This board is hosted at hostzero.com, which costs $20 in setup, after which you only need to pay for the domain. ($10 a year, depending on the domain you (.com, .net etc.)