Looks to me on program install you specified your forum as the path to the gallery
You can login to vbulletin admin and go to the gallery admin configuration and place the proper server paths and urls to your vbgallery install and you will be all set.
There was a "vbwrite" product installed to vBulletin that made an edit to the headerinclude template.
- The product was uninstalled but the template edit the hack made was still embeded in the template.