This looks good and I could certainly use it on my forums (
http://www.modthesims2.com/)
One thing though I need clarifying: It's mentioned that it takes the first attachment.. what if the first attachment is not an image? Does it display no attachment available?
If so, then would there be a way of looping until it does get the first image available only in the first post on the thread? I'm guessing this would add another query though.
Regards,
Delphy