|
Ok never mind.. solved this issue! Code:
<a style=<?php if(getaccess("accounts",$newsusers,$newsaccess)) { echo "onfocus=this.blur() class='navlink accounts' href=?action=options&mod=accounts>Accounts</a>"; } else { echo "display: none;>"; } ?> Soo, now a member with rights to edit "Accounts" (set by admin) will see the link in the menu on the left. If else the link will dissapear. | |||
| 05:34pm 22nd Jul 08 | Last edited by Southdistrict at 05:33am 24th Jul 08 |
|
Southdistrict, I actually added this functionality to the next release before I put it on hold. I'm glad you figured it out though.
| |||
| 06:40am 7th Aug 08 | _______________ Chris - Network-13 |
|
I used the code to hide the admin options but it doesnt seem to work with the categories option. Here is the code i have for categories: Code:
<a style=<?php if(getaccess("cats",$newsusers,$newsaccess)) { echo "onfocus=this.blur() class='navlink categories' href=?action=options&mod=categories>Categories</a>"; } else { echo "display: none;>"; } ?> | |||
| 10:29pm 20th Sep 08 | Last edited by Someone at 03:11pm 21st Sep 08 |