View Single Post
The core of the code could be adapted from this earlier post.