Top posters from where? A forum you own? if so just query the forums database to pick them up ranking my post count.
The exact details of how depends both on your db structure and which programming language your site is written in but the concept is as above.