Excellent work. Many thanks.
Ive asked support to add this patch
http://www.viart.com/php_modification.html
to the new release so that it becomes a standard feature for programers.
(later).... which they have now done.
Block php modifications should be put in a folder called "blocks_custom".