Im trying to use this code to show something on the menu navigation for certain usergroups only, i got it working good right now with this:
What i want to do differently though now is changed it so if $level is unset, to display something, so basically if the member was not signed in, it would show a login form.PHP Code:<?php
if($level == Admin)
{
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="7%"> </td>
<td width="81%"> </td>
</tr>
<tr>
<td width="88%" colspan="2" bgcolor="#032241">
<p align="center">
<img border="0" src="images/nav_admin.gif" width="134" height="37"></td>
</tr>
<tr>
<td width="7%" bgcolor="#032547"> </td>
<td width="81%" bgcolor="#032547"> </td>
</tr>
<tr>
<td width="7%" bgcolor="#032547"> </td>
<td width="81%" bgcolor="#032547"> <b><font face="Verdana" size="1"> <a href="index.php?page=addstory">Add Story</a></font></b></td>
</tr>
<tr>
<td width="7%" bgcolor="#032547"> </td>
<td width="81%" bgcolor="#032547"><b><font face="Verdana" size="1"><a href="index.php?page=editstory">Edit Story</a></font></b></td>
</tr>
<tr>
<td width="7%" bgcolor="#032547"> </td>
<td width="81%" bgcolor="#032547"><b><font face="Verdana" size="1">
<a href="index.php?page=memberslist">Users List</a></font></b></td>
</tr>
<tr>
<td width="7%" bgcolor="#032547"> </td>
<td width="81%" bgcolor="#032547"><b><font face="Verdana" size="1">
<a href="index.php?page=viewapps">View Applications</a></font></b></td>
</tr>
</table>
<?php
}
?>
How could i do this?







Bookmarks