Mafia Mobsters Posted July 13, 2011 Share Posted July 13, 2011 Hey, I am currently trying to create a new staff panel with the GRPG code. But one thing is not working for me and I don't know how to fix it. I am trying to get | Staff panel, behind the Vote and Refer links with this code: <a href="vote.php">Vote</a> | <a href="refer.php">Refer</a> | <a href="rmstore.php">Upgrade Account</a> <?php if ($user_class->admin == 1) { <a href="admin/panel.php">Admin Panel</a> } ?> Does anyone know what i'm doing wrong? It does not show when having admin acces, Also Dreamweaver says its bugged... Greetings:cool: Quote Link to comment Share on other sites More sharing options...
Mafia Mobsters Posted July 13, 2011 Author Share Posted July 13, 2011 Nevermind. I got it..:D <a href="vote.php">Vote</a> | <a href="refer.php">Refer</a> | <a href="rmstore.php">Upgrade Account</a> | <?php if ($user_class->admin == 1) { echo'<a href="staffpanel.php">Staff Panel</a>'; } ?> Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted August 6, 2011 Share Posted August 6, 2011 Hello mafia, You know they is different lvl's of staffing in GRPG? you should change ($user_class->admin == 1) to ($user_class->admin > 0) Then all your staff members can get to the admin panel :3 Quote Link to comment Share on other sites More sharing options...
Mafia Mobsters Posted August 7, 2011 Author Share Posted August 7, 2011 Hi ShadyCoco. Well since I have different staff positions than GRPG, I'm coding it like this: if ($user_class->admin == 1) { } if ($user_class->gamemod == 1) { } if ($user_class->forummod == 1) { } And so on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.