Okay let's go through this again.
You can use this on separate domains if the programs are on the same server and mysql is on the same server. These are the parameters.
Therefore if those requirements are met then simply place the proper routines where they are needed. Fill out the $link and mysql select db lines with the proper info to connect to Photopost database in inc_features2.php. Then at the bottom place the forum database information to connect to the
vb forum the include is being shown on so
vb can continue on with its stuff