The path would be the same yes. Your urls would just be different. You would point the subdomain gallery.domain.org to your photopost server and say one to your forum
http://forum.domain.org http://gallery.domain.org
Now the only thing you want to make sure is set in photopost and vbulletin is your cookie domain is set to .domain.org so it works with subdomains