Another nice snippet Freddy.
By the way, to quote you on the,
SMF/TP versions tested: SMF 1.1.11 + TP v1.0.5 beta 1; SMF 2.0 RC2 + TP v1.0 beta5
I've just tested it on my site, running SMF 1.1.11, TP 0.9.8 and it works nicely. (Bottom of page, link in sig) Just in case anyone (like me) is still running 0.9.8