Okay, well, I tried a few things and actually got this hack to work very easily in vb3!
Basically, you follow the same instructions, except the functions.php file is now in the "includes" folder.
Then, the line of code to look for is:
PHP Code:
if ($vboptions['addtemplatename'] AND $gethtmlcomments)
Just throw the first part of the hack in
before this line, and then follow exactly the same instructions for the last part of the hack.
Then follow the standard instructions to apply the conditions to your vb3 templates.
I have no idea if this is the best, or the most elegant, way of doing this - but it is working 100% successfully on my vb3.0.0 installation.
Hope this helps anyone else out there.