8
hi at all,
yes, this is functionally, becauce your include in a custom_block begins from the XOOPS_ROOT_PATH automatically.
I think, if you edit (as example your test2.php file) and include there as first the mainfile.php:
<?php
include("../../mainfile.php"); //change the ../ to your rootpath
?>
so it still work too. (Maybe the header.php and the footer.php is also required to include too.)
Greez Thom