Thank you, that got me started. I actually found the code in a postbit for the mod, and it looks like this:
Code:
$rec = $vbulletin->db->query_read("
SELECT count(*) mark
FROM ".TABLE_PREFIX."vbimghost
WHERE userid='".$post['userid']."' and imgprivate='0'
");
$row = $vbulletin->db->fetch_array($rec);
$post['vbimghost']=$row['mark'];
I tohught the issue may be because it's querying based on the $post['userid'] and that when I post an announcement, there is no such variable, but that is not the case. $post['userid'] is used in the announcement, so that part is OK.
Now I am stuck. I can only guess that somehow, this plugin isn't being used when the postbit of an announcement is pulled, but I don't know why.