That's why is not working.

Try this:
$adminpath = 'admin';
BTW, I hope you did not replaced the forum index.php and global.php with the vbHome ones... if you want to have everything in the same folders as the forum, make sure you rename the vbHome files not the forum ones, then call vbHome first with a .htaccess file.
I strongly recommend you to use the folders schema I posted in the previous post, just to avoid problems and headaches.
If you really really really want to have everything in the same folder, rename vbhome files to home.php and homeglobal.php, then change the reflected include_once() to point to homeglobal.php
No need to worry about location, since the vbhome global.php takes care of everything.