Raggaer
Godly Member
Hello, today I made this simple view character for Modern ACC
-Screenshot :
- How to install this :
1 - Go to
2 - Open the file
3 - Errase all content and paste this
-Screenshot :
- How to install this :
1 - Go to
Code:
\system\application\views
2 - Open the file
Code:
view_character
3 - Errase all content and paste this
PHP:
<?php
require_once("system/application/config/create_character.php");
if(in_array(strtolower($player->name), $config['restricted_names']))
error("You are not authorized to view this character.");
else {
if($player->isDeleted()) alert("This character has been deleted.");
if($player->isNameLocked()) alert("This character has been name locked.");
try {
$comment = nl2br(decodeString($player->getComment()));
}
catch (Exception $e) {
$comment = "Could not load comment.";
}
?>
<?PHP
$GLOBALS['player'] = $player;
echo '
<center><table width=80% border="1" cellpadding="3" cellspacing="3">
<tr align="center" bgcolor="#cfdfe1">
<td>Name</td>
<td>Sex</td>
<td>Position</td>
<td>Premium</td>
<td>Last login</td>
<td>Vocation</td>
</tr>
<tr align="center">
<td>
<b>'.$player->GetName().'</b>
</td>
<td>';
?>
<?PHP
echo $sex = ($player->getSex() == 1) ? "Male" : "Female"
?>
<?PHP
echo'
</td>
<td>
';
?>
<?PHP
$playerg = $player->GetGroup();
if ($playerg == 1) {
echo 'Player';
} else if ($playerg == 2) {
echo 'Tutor';
} else if ($playerg == 3) {
echo 'Senior tutor';
} else if ($playerg == 4) {
echo 'Community Manager';
} else if ($playerg == 5) {
echo 'Gamemaster';
} else if ($playerg == 6) {
echo 'Admin';
}
?>
<?PHP
echo'
</td>
<td>
';
?>
<?PHP
echo $prem = ($account->IsPremium()) ? "Yes" : "No";
?>
<?PHP
echo'
</td>
<td>
';
?>
<?PHP
echo $llog = ($player->GetLastLogin() == 0) ? "Never" : UNIX_TimeStamp($player->GetLastLogin);
?>
<?PHP
echo '
</td>
<td>
';
?>
<?PHP
$playerv = $player->GetVocation();
if ($playerv == 1) {
echo'Sorcerer';
} else if($playerv == 2) {
echo'Druid';
} else if($playerv == 3) {
echo'Paladin';
} else if($playerv == 4) {
echo'Knight';
} else if($playerv == 5) {
echo'Master Sorcerer';
} else if($playerv == 6) {
echo'Elder Druid';
} else if($playerv == 7) {
echo'Royal Paladin';
} else if($playerv == 8) {
echo'Elite Knight';
}
?>
<?PHP
echo '
</td>
</center></table>
';
?>
<?php
$GLOBALS['player'] = $player;
$ide = new IDE;
try {
$ide->loadInjections("character_view");
}
catch(Exception $e) {
error($e->getMessage());
}
}
?>