Jump to content
MakeWebGames

Recommended Posts

Posted

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:

Posted

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>';
}

?>
  • 4 weeks later...
Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...