{if $SESS_LOGGED == '1'}
{$method->exe('affiliate','user_view')}
<!-- signup for an affiliate account -->
{if ($affiliate_user_view == false)}
{$block->display('affiliate:user_add')}
<!-- display the affiliate account -->
{else}
{$block->display('affiliate:user_view')}
{/if}
<!-- login/register for an account -->
{$block->display('account:user_login')}