• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior AAC] 0.3.6 Group-Based Admin Panel

Skynox

Authorized Bartender
Joined
Jun 16, 2007
Messages
24
Reaction score
0
Location
Stockholm, Sweden
I wanted to have two separated administration panels for GM/God's.
It took a while cause my knowledge of PHP are very limited. And now when
I finally made it, I want to share this with those who want
Group-based administration panels and find php coding difficult.


---------------------------------------------------------------

Example: (This is how my panels look)

God Panel
----------------------------------- Gamemaster Panel
*Administration ----------------------------- *Banishments
*Namelock Manager ------------------------ *Namelock Manager
*Report Manager --------------------------- *Report Manager
*Massmail
*Banishments
*GM Manager (Requested)

-------------------------------------------------------------------------



Add this in your config.php above
$config['site']['access_admin_panel'] = 4; // access level needed to open admin panel
Code:
$config['site']['access_gamemaster'] = 3; // access level needed to open admin panel, Gamemasters


Find this at the bottom of your layout.php.

PHP:
 <?PHP
if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) {
echo '<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);"><div id="lool" CLASS=white>
<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>
<tr><td height="10">&nbsp;</td><td><a href="?subtopic=INSERT1"><font color="white"><b>LINK1</b></font></a><br><a href="?subtopic=INSERT2"><font color="white"><b>LINK2</b></font></a><br><a href="?subtopic=INSERT3"><font color="white"><b>LINK3</b></font></a><br><a href="index.php?subtopic=INSERT4"><font color="white"><b>LINK4</b></font></a><br><a href="?subtopic=INSERT5"><font color="white"><b>LINK5</b></font></a></td></tr></table></div>
    <div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>
  </div>';
 }
?>
Replace it with this.
PHP:
<?PHP
if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) {
echo '<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);"><div id="lool" CLASS=white>
<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>
<tr><td height="10">&nbsp;</td><td><a href="?subtopic=INSERT1"><font color="white"><b>LINK1</b></font></a><br><a href="?subtopic=INSERT2"><font color="white"><b>LINK2</b></font></a><br><a href="?subtopic=INSERT3"><font color="white"><b>LINK3</b></font></a><br><a href="index.php?subtopic=INSERT4"><font color="white"><b>LINK4</b></font></a><br><a href="?subtopic=INSERT5"><font color="white"><b>LINK5</b></font></a></td></tr></table></div>
    <div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>
  </div>';
 }
 else
 
 if($group_id_of_acc_logged >= $config['site']['access_gamemaster']) {
echo '<div id="NewcomerBox" class="Themebox" style="background-image:url('.$layout_name.'/images/themeboxes/admin/admin.png);"><div id="lool" CLASS=white>
<table><tr><td height="30">&nbsp;</td><td>&nbsp;</td></tr>
<tr><td height="10">&nbsp;</td><td><a href="?subtopic=INSERT1"><font color="white"><b>LINK1</b></font></a><br><a href="?subtopic=INSERT2"><font color="white"><b>LINK2</b></font></a><br><a href="?subtopic=INSERT3"><font color="white"><b>LINK3</b></font></a><br><a href="index.php?subtopic=INSERT4"><font color="white"><b>LINK4</b></font></a><br><a href="?subtopic=INSERT5"><font color="white"><b>LINK5</b></font></a></td></tr></table></div>
    <div class="Bottom" style="background-image:url('.$layout_name.'/images/general/box-bottom.gif);"></div>
  </div>';
 }
 ?>
Edit the INSERT and LINK parts in the layout.php to costumize the links of your panels.
Remember to make a copy of your original layout.php before editing something.

I hope that someone can have any use of this.

Kind regards,
Skynox
 
maybe a few screanshots of it please?
lol this doesnt need explanation. its like the same admin panel, just with less features for gms:
God Panel ----------------------------------- Gamemaster Panel
*Administration ----------------------------- *Banishments
*Namelock Manager ------------------------ *Namelock Manager
*Report Manager --------------------------- *Report Manager
*Massmail
*Banishments
*GM Manager (Requested)
 
Or actually, it changes only the right admin panel in tibiacom lay right?
well, whatever.
its still good ofc
 
maybe a few screanshots of it please?

Well if you want to see it. I'll post screens on the panel's, but what is there to explain? is explaind quite well in the top post.

Or actually, it changes only the right admin panel in tibiacom lay right?
well, whatever.
its still good ofc

Yeah basicly that is just a minor change to limit access for gamemasters.
On my server I decided to make it that way. Someone might want the same
and why not share this whit them?

Kind regards,
Skynox
 
Whats the GM manager?

A script where you can create/promote player to another group.
It doesnt exist yet, as I wrote next to it "(Requested)".
I'm trying to create a script that will create a character to
a group of your choice and automatically updates the account.page_access
in the database to the right value.

I wrote a thread some day ago where I requested someone
who can make a GM Manager-script
http://otland.net/f295/request-create-gm-characters-64939/
 
Back
Top