2
make sure you tick the box that says php code or whatever.
and don't use the open/close tags <? ?>
also, get used to using long tag like <?php instead of short tag <? it's better practice, as sometimes short tags can be disabled in php.ini
eitherway tho, when pasting code into the blocks either select html or php but don't use the tags.. as XOOPS does it for you.