Home
N-13 News
Forums
Help
Search
Username
Password
Register
Forgot password?
How to add image to post
necklacesdiscou
Known bugs - 4.0.3
necklacesdiscou
Latest
N-13 News 4.0.3
What is N-13 News?
Where can I get help?
Known bugs
Forums
Help & Support
Hide admin options
Southdistrict
Posted on 22 Jul 2008, 18:47:58
Access: Member
Total Posts: 6
Joined: 2008-07-22
Hi there,
is there a way to "hide" al the options where normal members can't go? Like: access, banned ips and so on..
Those sections are only available with admin accesslevel. So not really necessary to show them to normal members :)
I've been trying with a lot of things like:
style="<?php if($getaccess['accesslevel'] == "1") { echo "onfocus=this.blur() class=navlink accounts href=?action=options&mod=accounts>Accounts</a>"; } else { echo "display: none;"; } ?>"
But it just won't work.
Please help
Grtz, SD.
PS: awesome script btw.
#286
Last edited by Southdistrict at 2008-07-24 10:33:58 Reason:
Southdistrict
Posted on 22 Jul 2008, 22:34:35
Access: Member
Total Posts: 6
Joined: 2008-07-22
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.
#288
Last edited by Southdistrict at 2008-07-24 10:33:39 Reason:
Chris
Posted on 07 Aug 2008, 11:40:47
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Southdistrict, I actually added this functionality to the next release before I put it on hold. I'm glad you figured it out though.
#319
Someone
Posted on 21 Sep 2008, 03:29:30
Access: Member
Total Posts: 1
Joined: 2008-09-21
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;>"; } ?>
#422
Last edited by Someone at 2008-09-21 20:11:02 Reason:
Network-13.com © 2013