590
Using custom blocks is indeed much easier.
No need for php.
As Mamba proposed in his first answer, there is the solution to act in the theme.tpl file
The best is to use the available tools which are the management of the custom blocks but if we want to use tpl files, we could do this :
In the theme.tpl
<{if $xoops_page == "index"}>
<{include file="$theme_name/tpl/my_content.tpl"}>
<{/if}>
and in the file my_content.tpl
<{if $xoops_isuser|default:false}>
<h3>My content for members</h3>
<p>Content here</p>
<{else}>
<h3>My content for anonymous</h3>
<p>Content here</p>
<{/if}>