1
hi,
Besides the a drop down menu i intergrated with my website I want a seperate link for the admin section when the user is an admin and a link for a user that isn't logged in. I used a simple if/else to get info on type of user.
As far is the Admin link goes there's no problem, works perfectly. But when i want to add a second if for the user that's hasn't logged in yet it doesn't work. Even worse, XOOPS remeains blank!
I used this code. When I take out the second if part it works perfectly.
<{if $xoops_isAdmin == true}>
<tr>
<td colspan="2" id="headerbar" align="left">|<a href="<{$xoops_url}>/admin.php">Admin sectie!</a>|</td>
</tr>
<{if $xoops_isOnline == false}>
<tr>
<td colspan="2" id="headerbar" align="right">|<a href="<{$xoops_url}>/user.php">log in</a>|</td>
</tr>
<{else}>
<tr>
<td colspan="2" id="headerbar" align="right"></td>
</tr>
<{/if}>
I got this "&xoops_isOnline" form the API DOC but I had little hope this was gonna work anyway. Mayby someone knows wich one I am supposed to use.
btw: If you think my code is messy, plz consider i just started only looking at this code last week, all new to me, only used to plain html before XOOPS