So your saying this is in your vbulletin templates?
If you turn off your vbulletin integration boxes under admin edit integration does it appear in your page source anymore?
If you upload clean photopost stuff then the code should not exist in photopost and then you know its pulling it from
vb which means you need to sanitize and remove the code from
vb templates etc
Places to look in
vb would be the header or header-inc templates