When I looked through the elementary php lessons I am slowly working through I saw the final stage is 'Build Your Own Forum' . It's very basic, but I don't know maybe there is something you could use there:
http://www.homeandlearn.co.uk/php/php.html
http://www.homeandlearn.co.uk/php/php.html