Thanks ChiliVB... it's working now, but I still encounter a problem... Check the screenshot. This happens after editting a post already containing an itemstat BB code in it. This is done in WYSIWYG editor btw, and when editing, the original item seems to be opened as a normal link.
Is there a way to fix this? I looked through the posts here, but couldn't find a solution.
Also just noticed that it doesn't yet work with vbadvanced plugin.. it doesnt display the item in the news posts when you place a [item]xxxx[/item] in the news post.
Weird.. didn't change anything to the code a while, tried it again, and now it doesnt work at all anymore