Your forum got hacked through Photopost that does not sound right there. The number one issue with
vb getting hacked is through using
vb hacks or mods.
You can not separate the two without you writing some special script to import users into Photopost and then reinstalling Photopost as a standalone.