&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>
First make sure you configured properly the TFS version on config.php (this might be TFS_03, TFS_10, etc.)
Then go to \www\Lua\TFS_03 and you will see some creaturescripts folder. Install thoose scripts on your server to get sure they're linked to the mysql script.
Then, go to config.php again and check search $config['show_outfits'] and try replacing to
Code:// Show outfits $config['show_outfits'] = array( 'shop' => true, 'highscores' => true, 'characterprofile' => true, 'onlinelist' => true, // Image server may be...
when Open image in new tab Opens ِAddons normallyWhat address shows up when you right click the picture -> open in new tab?
What address shows up when you right click the picture -> open in new tab?
i have two QuestionWhat address shows up when you right click the picture -> open in new tab?
// Show outfits
$config['show_outfits'] = array(
'shop' => true,
'highscores' => true,
'characterprofile' => true,
'onlinelist' => true,
// Image server may be unreliable and only for test,
// host yourself: https://otland.net/threads/item-images-10-92.242492/
'imageServer' => 'https://outfit-images.ots.me/animatedOutfits1099/animoutfit.php'
);
i have two Question
1- and how hiden vocations <7 in support.php "support Team"
2- how hiden profile Onwer in characterprofile
if can help me in
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
?><h1>Support in-game</h1><?php
$cache = new Cache('engine/cache/support');
if ($cache->hasExpired()) {
// Fetch all staffs in-game.
if ($config['ServerEngine'] == 'TFS_03') {
$staffs = support_list03();
} else $staffs = support_list();
// Fetch group ids and names from config.php
$groups = $config['ingame_positions'];
// Loops through groups, separating each group element into an ID variable and name variable
foreach ($groups as $group_id => $group_name) {
// Loops through list of staffs
if (!empty($staffs))
foreach ($staffs as $staff) {
if ($staff['group_id'] == $group_id) $srtGrp[$group_name][] = $staff;
}
}
if (!empty($srtGrp)) {
$cache->setContent($srtGrp);
$cache->save();
}
} else {
$srtGrp = $cache->load();
}
$writeHeader = true;
if (!empty($srtGrp)) {
foreach (array_reverse($srtGrp) as $grpName => $grpList) {
?>
<table id="supportTable" class="table table-striped">
<?php if ($writeHeader) {
$writeHeader = false; ?>
<tr class="yellow">
<th width="30%">Group</th>
<th width="40%">Name</th>
<th width="30%">Status</th>
</tr>
<?php
}
foreach ($grpList as $char) {
if ($char['name'] != $config['website_char']) {
echo '<tr>';
echo "<td width='30%'>". $grpName ."</td>";
echo '<td width="40%"><a href="characterprofile.php?name='. $char['name'] .'">'. $char['name'] .'</a></td>';
echo "<td width='30%'>". online_id_to_name($char['online']) ."</td>";
echo '</tr>';
}
}
?>
</table>
<?php
}
}
echo'</table>'; include 'layout/overall/footer.php'; ?>
&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>
Hide owner information when someone is searching for it in a character searchFirst make sure you configured properly the TFS version on config.php (this might be TFS_03, TFS_10, etc.)
Then go to \www\Lua\TFS_03 and you will see some creaturescripts folder. Install thoose scripts on your server to get sure they're linked to the mysql script.
Then, go to config.php again and check search $config['show_outfits'] and try replacing to
Code:// Show outfits $config['show_outfits'] = array( 'shop' => true, 'highscores' => true, 'characterprofile' => true, 'onlinelist' => true, // Image server may be unreliable and only for test, // host yourself: https://otland.net/threads/item-images-10-92.242492/ 'imageServer' => 'https://outfit-images.ots.me/animatedOutfits1099/animoutfit.php' );
Make sure all options are true, and copy the 'imageServer' direction. If this dont work, please provide more information such as TFS version you're using and protocol. But at least this changes will give you more information of what is getting wrong.
Regards!
Post automatically merged:
This probably get merged, here it goes support.php (just replace)
About hide profile, please be more clear of what you need. You mean automatically hide information of other character accounts? Not showing names? Group privileges?Code:<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; ?><h1>Support in-game</h1><?php $cache = new Cache('engine/cache/support'); if ($cache->hasExpired()) { // Fetch all staffs in-game. if ($config['ServerEngine'] == 'TFS_03') { $staffs = support_list03(); } else $staffs = support_list(); // Fetch group ids and names from config.php $groups = $config['ingame_positions']; // Loops through groups, separating each group element into an ID variable and name variable foreach ($groups as $group_id => $group_name) { // Loops through list of staffs if (!empty($staffs)) foreach ($staffs as $staff) { if ($staff['group_id'] == $group_id) $srtGrp[$group_name][] = $staff; } } if (!empty($srtGrp)) { $cache->setContent($srtGrp); $cache->save(); } } else { $srtGrp = $cache->load(); } $writeHeader = true; if (!empty($srtGrp)) { foreach (array_reverse($srtGrp) as $grpName => $grpList) { ?> <table id="supportTable" class="table table-striped"> <?php if ($writeHeader) { $writeHeader = false; ?> <tr class="yellow"> <th width="30%">Group</th> <th width="40%">Name</th> <th width="30%">Status</th> </tr> <?php } foreach ($grpList as $char) { if ($char['name'] != $config['website_char']) { echo '<tr>'; echo "<td width='30%'>". $grpName ."</td>"; echo '<td width="40%"><a href="characterprofile.php?name='. $char['name'] .'">'. $char['name'] .'</a></td>'; echo "<td width='30%'>". online_id_to_name($char['online']) ."</td>"; echo '</tr>'; } } ?> </table> <?php } } echo'</table>'; include 'layout/overall/footer.php'; ?>
<!-- Player level -->
<tr>
<td>Level</td>
<td><?php echo $profile_data['level']; ?></td>
</tr>
What I mean is when any player enters the name of the server owner, he does not see any information about his page and what he is wearing, And so on , no one can search for who got it group < 6 or 7 When he searches for him a message appears :Character "NAME" does not exist.Hmm, still don't get what you mean by owner information, i'm kinda lost sometimes xD, but if helps, this lines are samples of what is shown in your character profile.
For example, if you dont want to show the character level, just remove
Code:<!-- Player level --> <tr> <td>Level</td> <td><?php echo $profile_data['level']; ?></td> </tr>
and that will be enought
<?php if ($profile_data['hide_char'] == 1) ....then.... hide everything from character
Thank you, I hope someone introduces thisOk now I get it, all can I say is that you need to can use hide_char parameter from znote_players or create a new table, to call it on characterprofile.php. For example:
Code:<?php if ($profile_data['hide_char'] == 1) ....then.... hide everything from character
I dont know how to properly code the "hide everything from character" part on .php but maybe someone of the forum will do, regards!