Tyson12302
New Member
- Joined
- Aug 6, 2014
- Messages
- 264
- Reaction score
- 4
As you see on the image, i cant create another character. Can i change this. Is it because of my script? Please help.
It's not a bug. Znote just forget to add the button.Most likely a bug in your layout, check the default one if it has a "create character" link, in that case take the url and use it on the layout you got.
echo '+ <b><a href="myaccount.php" class="menu">My Account</a><br />
+ <b><a href="createcharacter.php" class="menu">Create character</a><br />
It's not a bug. Znote just forget to add the button.
Are you sure you are not /ghost?Could not update, but i forgot to say. I was logged in as "God" does that appear on "Onlinelist"?
I tried it with other chars that aren't gods,cms or gms. And it still didnt show.Are you sure you are not /ghost?
<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?>
<h1>Who is online?</h1>
<?php
$array = online_list();
if ($array) {
?>
<table id="onlinelistTable" class="table table-striped table-hover">
<tr class="yellow">
<th>Name:</th>
<th>Guild:</th>
<th>Level:</th>
<th>Vocation:</th>
</tr>
<?php
foreach ($array as $value) {
$url = url("characterprofile.php?name=". $value['name']);
echo '<tr class="special" onclick="javascript:window.location.href=\'' . $url . '\'">';
echo '<td><a href="characterprofile.php?name='. $value['name'] .'">'. $value['name'] .'</a></td>';
if (!empty($value['gname'])) echo '<td><a href="guilds.php?name='. $value['gname'] .'">'. $value['gname'] .'</a></td>'; else echo '<td></td>';
echo '<td>'. $value['level'] .'</td>';
echo '<td>'. vocation_id_to_name($value['vocation']) .'</td>';
echo '</tr>';
}
?>
</table>
<?php
} else {
echo 'Nobody is online.';
}
?>
<?php include 'layout/overall/footer.php'; ?>