Bottom of the article you just quoted:
https://vborg.vbsupport.ru/showthread.php?t=228112
Please see this article for help with rendering templates -
[vB4] Rendering templates and registering variables - a short guide
In a nutshell:
a) insert the php code from the first post here
Code:
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'My Page Title';
b) register the variable $output
c) update your template so it does print the variable $output