If you want to include an external php file on your vBulletin templates you’ll need more than just following this https://vbulletin.com/docs/html/templates_externalfiles
Instead of just creating a plugin like:
You will need to add a last line, as following:
You will have to change the “TEMPLATE” and “path/to/this/file/myfile.php” as fits your needs.