Felipe93
Ghost Member
I'm using this layout [Znote AAC] old school layout with the latest ZnoteAcc Release downloaded from github and the layout is giving few erros like for example this one
the code that is giving error is this one
to be more specific, exactly this line/part:
I have understood that this layout was made for oldschool servers ( 7.72 ) but im using a newer version (8.6) so that might be causing the issue or the layout it's not longer complatible with ZnoteAcc or something beucase it's was made on another Znoteacc version.
The thing is that how could i adapt the code to make it compatible with newer versions or even how could remove part of the code properly to get it working without outfit displaying.
or adapt it. I have checked un-edited highscores.php
but i can't get it to work in this highscore.php from the layout.
Please Help
Code:
Warning: Undefined array key "looktype" in D:\xampp\htdocs\layout\sub\highscores.php on line 211
Warning: Undefined array key "lookhead" in D:\xampp\htdocs\layout\sub\highscores.php on line 211
Warning: Undefined array key "lookbody" in D:\xampp\htdocs\layout\sub\highscores.php on line 211
Warning: Undefined array key "looklegs" in D:\xampp\htdocs\layout\sub\highscores.php on line 211
Warning: Undefined array key "lookfeet" in D:\xampp\htdocs\layout\sub\highscores.php on line 211
Code:
<?php
echo '<div style="position:relative; left:-32px; top:-32px;width: 32px;height:32px;">
<div style="background-image: url(layout/outfitter/outfit.php?id='.$scores[$type][$i]['looktype'].'&head='.$scores[$type][$i]['lookhead'].'&body='.$scores[$type][$i]['lookbody'].'&legs='.$scores[$type][$i]['looklegs'].'&feet='.$scores[$type][$i]['lookfeet'].');
width:64px;height:64px;position:absolute;background-repeat:no-repeat;background-position:right bottom;">
</div>';
?>
to be more specific, exactly this line/part:
Code:
'.$scores[$type][$i]['looktype'].'&head='.$scores[$type][$i]['lookhead'].'&body='.$scores[$type][$i]['lookbody'].'&legs='.$scores[$type][$i]['looklegs'].'&feet='.$scores[$type][$i]['lookfeet'].');
I have understood that this layout was made for oldschool servers ( 7.72 ) but im using a newer version (8.6) so that might be causing the issue or the layout it's not longer complatible with ZnoteAcc or something beucase it's was made on another Znoteacc version.
The thing is that how could i adapt the code to make it compatible with newer versions or even how could remove part of the code properly to get it working without outfit displaying.
or adapt it. I have checked un-edited highscores.php
Lua:
<?php if ($loadOutfits): ?>
<td class="outfitColumn"><img src="<?php echo $config['show_outfits']['imageServer']; ?>?id=<?php echo $vocGroup[$type][$i]['type']; ?>&addons=<?php echo $vocGroup[$type][$i]['addons']; ?>&head=<?php echo $vocGroup[$type][$i]['head']; ?>&body=<?php echo $vocGroup[$type][$i]['body']; ?>&legs=<?php echo $vocGroup[$type][$i]['legs']; ?>&feet=<?php echo $vocGroup[$type][$i]['feet']; ?>" alt="img"></td>
<?php endif; ?>
<td><?php echo $i+1; ?></td>
<td><?php echo $flag; ?><a href="characterprofile.php?name=<?php echo $vocGroup[$type][$i]['name']; ?>"><?php echo $vocGroup[$type][$i]['name']; ?></a></td>
<td><?php echo vocation_id_to_name($vocGroup[$type][$i]['vocation']); ?></td>
<td><?php echo $vocGroup[$type][$i]['value']; ?></td>
<?php if ($type === 7) echo "<td>". $vocGroup[$type][$i]['experience'] ."</td>"; ?>
Please Help