• 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!

[Znote AAC] Show outfits on top 5

Webo

Otland 4ever
Joined
Oct 20, 2013
Messages
621
Solutions
10
Reaction score
229
Location
Warsaw
Hello ;)

Old:

cjrgxFG.png

New:
0cVi39c.gif


How to install:

1. Go to layout/widgets/topplayers.php
2. Replace the code below:
PHP:
    <div class="sidebar">
        <h3>Top 5 players</h3>
        <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a>'. $player['level'].'<br>';
           $count++;
            }
            }
            ?>
    </div>

 
The solution may be this but it requires style repair and the outfits are not animated
This:
Code:
https://static.tibia.solutions/outfits/index.php?id=
To this:
Code:
https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id=
 
The solution may be this but it requires style repair and the outfits are not animated
This:
Code:
https://static.tibia.solutions/outfits/index.php?id=
To this:
Code:
https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id=
You can create own host with animated images ( Outfit Images - 10.99 ), just download:
MEGA

My host is offline. I'm trying to get info from hosting company what is wrong.
 
My host is again online. Hosting company detected some trojan in my files and blocked it. After another scan they unblocked it, maybe it was false-positive detection or it was oold wordpress that I removed last night ;)
I hope it will stay 24/7 without breaks like for last 6 years.
 
Hello ;)

Old:

cjrgxFG.png

New:
0cVi39c.gif


How to install:

1. Go to layout/widgets/topplayers.php
2. Replace the code below:
PHP:
    <div class="sidebar">[/B]
[B]        <h3>Top 5 players</h3>
        <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a>'. $player['level'].'<br>';
           $count++;
            }
            }
            ?>
    </div>


is very close, the name of the level, how I put a space after the name or a (level) after the name
example:
Peter (30)

IQwlld9.jpg


<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Top 5 Level</h3>
</div>
<div class="panel-body">
<table class="table table-condensed table-content table-striped">
<tbody>
<?php
$cache = new Cache('engine/cache/topPlayer');
if ($cache->hasExpired()) {
$players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
$cache->setContent($players);
$cache->save();
} else {
$players = $cache->load();
}
if ($players) {
$count = 1;
foreach($players as $player) {
echo '<img style="margin-top: -35px; margin-left: -45px;" src="http://35.198.49.71/animatedOutfits...'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a>'. $player['level'].'<br>';
$count++;
}
}
?>
</tbody>
</table>
</div>
</div>
 
@Pedrook Try this:
PHP:
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title">Top 5 Graczy</div>
    </div>
    <div class="panel-body">
        <table class="table table-condensed table-content table-striped">
            <tbody>
        <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<tr><td><div class="pull-left push-15-r"><img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img></div> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a> <div class="panel-title pull-right"><code>'. $player['level'].'</code></div></td></tr>';
           $count++;
            }
            }
            ?>
            </tbody>
        </table>
    </div>
</div>
 
@Pedrook Try this:
PHP:
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title">Top 5 Graczy</div>
    </div>
    <div class="panel-body">
        <table class="table table-condensed table-content table-striped">
            <tbody>
        <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<tr><td><div class="pull-left push-15-r"><img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img></div> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a> <div class="panel-title pull-right"><code>'. $player['level'].'</code></div></td></tr>';
           $count++;
            }
            }
            ?>
            </tbody>
        </table>
    </div>
</div>

Thank you very much, God damn you <3
 
@Pedrook Try this:
PHP:
<div class="panel panel-default">
    <div class="panel-heading">
        <div class="panel-title">Top 5 Graczy</div>
    </div>
    <div class="panel-body">
        <table class="table table-condensed table-content table-striped">
            <tbody>
        <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<tr><td><div class="pull-left push-15-r"><img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img></div> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a> <div class="panel-title pull-right"><code>'. $player['level'].'</code></div></td></tr>';
           $count++;
            }
            }
            ?>
            </tbody>
        </table>
    </div>
</div>

I was using the code in neptune it gave bad;
nwUgDUf.jpg
 
this idea sounds pretty good. i dont have the topplayers.php. once you guys get it done and working please let me know where it can also be installed for those who dont have the topplayer.php
 
Fixed. There you go guys. copy from <?php to ?> and replace it from <?php to ?> on your php.


Thanks webo!

Lua:
 <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a> (<span>' . $player['level'].')<br>';
           $count++;
            }
            }
            ?>


Capture.PNG
 
Fixed. There you go guys. copy from <?php to ?> and replace it from <?php to ?> on your php.


Thanks webo!

Lua:
 <?php
            $cache = new Cache('engine/cache/topPlayer');
            if ($cache->hasExpired()) {
                $players = mysql_select_multi('SELECT `name`, `level`, `experience`, `looktype`, `lookaddons`, `lookhead`, `lookbody`, `looklegs`, `lookfeet` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
                $cache->setContent($players);
                $cache->save();
            } else {
                $players = $cache->load();
            }
            if ($players) {
            $count = 1;
            foreach($players as $player) {
            echo '<img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images.ots.me/animatedOutfits1090/animoutfit.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'&g=0&h=3&i=1"></img> <a href="characterprofile.php?name='.$player['name'].'">'.$player['name'].'</a> (<span>' . $player['level'].')<br>';
           $count++;
            }
            }
            ?>


View attachment 45027
which layout are you using?
 
which layout are you using?
This layout i just edited with photoshop

web design.PNG
 
This layout i just edited with photoshop

View attachment 60360
good looking layout :D
how did you solve the issue asscoiated with oufit not being displayed in character profile, highscores etc? could you share those codes?
 
I did share them they should be on the comment you quote first. Scroll up. It says fixed.
good looking layout :D
how did you solve the issue asscoiated with oufit not being displayed in character profile, highscores etc? could you share those codes?
 
Back
Top