• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

PHP Fit code inside highscores.php

Jpstafe

Member
Joined
Aug 8, 2011
Messages
223
Reaction score
23
I have two outfits folders one for display it in shop and another one for characterprofile, powergamers and more
my highscores.php is displaying the outfits from shop and i need to change it, attempted to do it myself

Lua:
?>
                    <tr>
                        <?php if ($loadOutfits): ?>
                            <td class="outfitColumn"><img src="<?php echo $config['show_outfits']['imageServer']; ?>?id=<?php echo $vocGroup[$type][$i]['type']; ?>&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>"; ?>
                    </tr>
                    <?php
                }
            }
        }
        ?>
    </table>


this code display the outfits, from characterprofile.php that i need but i don't know how to change the code to make it fit or work inside highscores.php
Code:
                <td rowspan="2" style="width: 48px;">
                <?php
                echo '
                <div style="position:relative; left:-25px; top:-48px;">
                    <div style="background-image: url(layout/outfitter/outfit.php?id='.$profile_data['looktype'].'&head='.$profile_data['lookhead'].'&body='.$profile_data['lookbody'].'&legs='.$profile_data['looklegs'].'&feet='.$profile_data['lookfeet'].');
                        width:64px;height:64px;position:absolute;background-repeat:no-repeat;background-position:right bottom;">
                    </div>
                </td>';
                ?>
                </tr>

highscores.php
characterprofile.php here is the code that displays the outfits which i need
 
Top