1
Hi, I have been trying to put a login bar into a theme, this is what I am trying to acchieve:
When a guest visits the site they see
Quote:
Welcome Guest (Login | Register)
with Login and Register linking to user.php and register.php then when they login I want them to see
Quote:
with the Username linking to thier profile.
This is the code I had tried which resulted in an internal error
Welcome <{if $xoops_isuser == false}>Guest
( <a href="<{$xoops_url}>/user.php">Logina> | <a href="<{$xoops_url}>/register.php">Registera>
) <{/if}><{if $xoops_isuser> <a href="<{$xoops_url}>/user.php"><{$xoops_uname}>a><{/if}>
I am guessing ive got the smarty code totally wrong, could someone be kind enough to post the correct code for what I am try8ing to achieve?
Thanks
Michael Jackson = King Of Pop
Xoops = King Of CMS