39
I don't understand why it is not working for you if that's all that you have in the theme.html file to call on the banner.
I myself don't use the if statments i just put
<{$xoops_banner}>
where i want the banner to be and turning it off and on within preferences is no problem.
Sorry I couldn't help =(