2
What version of XOOPS are you using?
The code you are using in your theme is Smarty code. Smarty code only works in templates and themes. You'll need to use the php equivalent in your custom block and set the block content type to php.
Best Regards,
James
Insanity can be defined as "doing the same thing over and over and expecting different results."
Stupidity is not a crime. Therefore, you are free to go.