Can I test for: if $loggedin in WP Integrated site?

Hi,

I've added the following to footer.tpl in my portal theme:

{if $loggedin}
Logged in
{else}
Logged out
{/if}

And it works at my WHMCS url:

http://clients.digitalessence.net/

but doesn't show anything in my WP Integration of my client area.

Also I've noticed if I add any <div> to the footer.tpl it stops any of it being parsed.

I really want to be able to style my Admin area with divs and conditions but have run up against a brick wall.

Thanks.