Greetings,
I'm very new to drupal, and I'm getting started trying by trying to create a new module which will allow registered users full access to a set of public and private forums, but guests will only have read access to public forums. Here's where I've got to so far. (This is with drupal v4.5 downloaded from this site a couple of days ago, running on WinXP Home on Apache with a MySQL backend.)
Created a new module named pforums.module and a new table named pforum. Both are more or less clones of forum.module and forum table. All references to forum in pforum.module are replaced by pforum.
Added code to create and check two new privileges in pforums_perm and pforums_access so I can configure roles to be able to view/post to pforums.
Amended pforums_menu to check "access pforum topics" rather than "access content" when checking if a user can read the contents of pforum.
This allows me to have two forum types: pforums and forums. Assign read/write privileges to registered user role and no privileges to guests. This works fine. All users can read the public forums and only registered users can read the pforums.
However, here it gets tricky. I want users to be able to use tracker.module to list past forum posts, but I don't want guests to be able to list the pforum posts. Unfortunately tracker.module lists all recent content based on the contents of the node table. Although if a guest clicks on the header of a pforum post he gets an "Access denied" page, even so I would prefer for this particular site if those headers weren't visible in the first place.