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

AAC outfits images znoteacc

Jeyci

Banned User
Joined
May 6, 2023
Messages
289
Solutions
3
Reaction score
36
Hello
i use tfs 1,5 in windows 10

I use znoteACC. the outfits images are not being displayed in my website. i chnged the database and something went broken.
iin config.php have this
Lua:
'imageServer' => 'animatedOutfits860/animoutfit.php'  //windows
have generated the cache file by going to this link, it said that cache file were generated
Code:
http://xxxx.xxxx.xxx.xxx/animatedOutfits860/cacheGenerator.php
in my website the outfits are not being displayed yet
can you help me. what could be wrong?
if i check the outfit in highcores for example can see this
Untitled.png
 
Solution
PHP:
<div class="right_box">
    <div class="corner_lt"></div>
    <div class="corner_rt"></div>
    <div class="corner_lb"></div>
    <div class="corner_rb"></div>
    <div class="title"><img src="layout/img/3exp.gif"><span style="background-image: url(layout/widget_texts/powergamers.png);"></span></div>
    <div class="content">
        <div class="rise-up-content">
            <ul class="toplvl">
                <?php
                function coloured_value($valuein)
                {
                    error_reporting(E_ALL ^ E_NOTICE);
                    $value2 = $valuein;
                    while(strlen($value2) > 3)
                    {
                        $value = '.'.substr($value2, -3, 3)...
Hello
i use tfs 1,5 in windows 10

I use znoteACC. the outfits images are not being displayed in my website. i chnged the database and something went broken.
iin config.php have this
Lua:
'imageServer' => 'animatedOutfits860/animoutfit.php'  //windows
have generated the cache file by going to this link, it said that cache file were generated
Code:
http://xxxx.xxxx.xxx.xxx/animatedOutfits860/cacheGenerator.php
in my website the outfits are not being displayed yet
can you help me. what could be wrong?
if i check the outfit in highcores for example can see this
View attachment 78576
Hello

Did you try

Http://myserver.com/anim…. (Http or https)
Or
91.100…./anim….
 
Post this part here.
Hello. which part bro?
maybe this? animatedOutfits860/animoutfit.php it says that "Outfit does not exist or file cache is not generated." in spite it were generated
i have the file cachegenerated.txt the same occurs if i go to animatedOutfits860/outfit.php
 
Have you ever posted it here like this?
config.php
PHP:
    // 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/otservbr-latest-item-images-13-10-for-website.283450/
        'imageServer' => 'https://outfit-images-oracle.ots.me/12xx_latest_walk/animoutfit.php'
    );
There is no need to edit the highscores.php file, just the config.php file, so that the Outfits' images appear in the site's normal rankings.

PHP:
<?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; ?>
 
Have you ever posted it here like this?
config.php
PHP:
    // 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/otservbr-latest-item-images-13-10-for-website.283450/
        'imageServer' => 'https://outfit-images-oracle.ots.me/12xx_latest_walk/animoutfit.php'
    );
There is no need to edit the highscores.php file, just the config.php file, so that the Outfits' images appear in the site's normal rankings.

PHP:
<?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; ?>
Hello have not edited highscores.php or anything else
my config.php looks like this
Lua:
// 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' => 'layout/outfit'
        //'imageServer' => 'https://outfit-images.ots.me/animatedOutfits1099/animoutfit.php'// http://127.0.0.1/shop.php
        //'imageServer' => 'http://forgottennot.ddns.net/animatedOutfits800/animoutfit.php' //workds linux
        //'imageServer' => 'animatedOutfits1099/animoutfit.php' //still works linux
        'imageServer' => 'animatedOutfits860/animoutfit.php'  //windows        <<<< this  is how im using it
        //'imageServer' => 'http://forgottennot.ddns.net/animatedOutfits800/animoutfit.php'// http://127.0.0.1/shop.php  //windows last
    );


tried this also and it works imageServer' => 'https://outfit-images.ots.me/animatedOutfits1099/animoutfit.php but those are not my outfits
 
What version of your server is it: 8.6?
Post automatically merged:

Why did you add a lot of imageServers, making the directory and ranking address difficult to read? I recommend adding only once so that the images appear correctly in the ranking.

here is correctly
PHP:
   // 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/otservbr-latest-item-images-13-10-for-website.283450/
        'imageServer' => 'https://outfit-images-oracle.ots.me/12xx_latest_walk/animoutfit.php'
    );

Outfit images are also updated on official hosts:

These links are available. Choose one and put your config.php ready... I used my Znote and the images appeared normally with the same Tibia layout that you use

 
Last edited:
What version of your server is it: 8.6?
Post automatically merged:

Why did you add a lot of imageServers, making the directory and ranking address difficult to read? I recommend adding only once so that the images appear correctly in the ranking.

here is correctly
PHP:
   // 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/otservbr-latest-item-images-13-10-for-website.283450/
        'imageServer' => 'https://outfit-images-oracle.ots.me/12xx_latest_walk/animoutfit.php'
    );

Outfit images are also updated on official hosts:


These links are available. Choose one and put your config.php ready... I used my Znote and the images appeared normally with the same Tibia layout that you use

Cuz im testing what works and what does not. yeah im going to do that instead thanks

edit: the thing is that in character profile and in power gamers the outfits are not being displayed
edit in character profile i manage to solve it but it appears like this:
Post automatically merged:

and power gamers is not displaying any outfitUntitled.png
Post automatically merged:

this is the code of powergamers
Lua:
    <div class="right_box">
                    <div class="corner_lt"></div><div class="corner_rt"></div><div class="corner_lb"></div><div class="corner_rb"></div>
                    <div class="title"><img src="layout/img/3exp.gif"><span style="background-image: url(layout/widget_texts/powergamers.png);"></span></div>
                    <div class="content">
                        <div class="rise-up-content">
                        <ul class="toplvl">
                        <?php
                            function coloured_value($valuein)
                            {
                                error_reporting(E_ALL ^ E_NOTICE);
                                $value2 = $valuein;
                                while(strlen($value2) > 3)
                                {
                                    $value = '.'.substr($value2, -3, 3);
                                    $value2 = substr($value2, 0, strlen($value2)-3);
                                }
                                @$value = $value2.$value;
                                if($valuein > 0)
                                    return '<b><font color="green">+'.$value.'</font></b>';
                                elseif($valuein < 0)
                                    return '<font color="red">'.$value.'</font>';
                                else
                                    return $value;
                            }
                            $cache = new Cache('engine/cache/topPowergamers');
                            if ($cache->hasExpired()) {
                                $znotePlayers = mysql_select_multi('SELECT * FROM players WHERE group_id < 2 ORDER BY  experience - exphist_lastexp DESC LIMIT 5;');
                                $cache->setContent($znotePlayers);
                                $cache->save();
                            } else {
                                $znotePlayers = $cache->load();
                            }

                            if($znotePlayers){
                                foreach($znotePlayers as $player)
                                {
                                    $nam = $player['name'];
                                    if (strlen($nam) > 15)
                                    {$nam = substr($nam, 0, 12) . '...';}
                                    echo '<li style="margin: 36px 0;"><div style="position:relative; left:-48px; top:-48px;"><div style="background-image: url(layout/outfitter/outfit.php?id='.$player['looktype'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].');width:64px;height:64px;position:absolute;background-repeat:no-repeat;background-position:right bottom;"></div></div>
                                    <a style="margin-left: 19px;" href="characterprofile.php?name=' .$player['name']. '">' .$nam. '</a>';
                                    
                                    echo '<span style="float: right;">'.coloured_value($player['experience']-$player['exphist_lastexp']).'</span></li>';
                                }
                            }
                            ?>
                            </ul>
 

Attachments

Last edited:
TRY.

PHP:
<div class="right_box">
    <div class="corner_lt"></div>
    <div class="corner_rt"></div>
    <div class="corner_lb"></div>
    <div class="corner_rb"></div>
    <div class="title"><img src="layout/img/3exp.gif"><span style="background-image: url(layout/widget_texts/powergamers.png);"></span></div>
    <div class="content">
        <div class="rise-up-content">
            <ul class="toplvl">
                <?php
                function coloured_value($valuein)
                {
                    error_reporting(E_ALL ^ E_NOTICE);
                    $value2 = $valuein;
                    while(strlen($value2) > 3)
                    {
                        $value = '.'.substr($value2, -3, 3);
                        $value2 = substr($value2, 0, strlen($value2)-3);
                    }
                    @$value = $value2.$value;
                    if($valuein > 0)
                        return '<b><font color="green">+'.$value.'</font></b>';
                    elseif($valuein < 0)
                        return '<font color="red">'.$value.'</font>';
                    else
                        return $value;
                }
 
                $outfitUrl = 'https://outfit-images-oracle.ots.me/12xx_latest_walk/animoutfit.php';

                $cache = new Cache('engine/cache/topPowergamers');
                if ($cache->hasExpired()) {
                
                    $znotePlayers = mysql_select_multi('SELECT * FROM players WHERE group_id < 2 ORDER BY  experience - exphist_lastexp DESC LIMIT 5;');
                    $cache->setContent($znotePlayers);
                    $cache->save();
                } else {
                    $znotePlayers = $cache->load();
                }

                if ($znotePlayers) {
                    foreach ($znotePlayers as $player) {
                        $nam = $player['name'];
                        if (strlen($nam) > 15) {
                            $nam = substr($nam, 0, 12) . '...';
                        }
                        echo '<li style="margin: 36px 0;"><div style="position:relative; left:-48px; top:-48px;"><img src="' . $outfitUrl . '?looktype=' . $player['looktype'] . '&lookhead=' . $player['lookhead'] . '&lookbody=' . $player['lookbody'] . '&looklegs=' . $player['looklegs'] . '&lookfeet=' . $player['lookfeet'] . '" width="64" height="64" style="position:absolute;"></div>';
                        echo '<a style="margin-left: 19px;" href="characterprofile.php?name=' . $player['name'] . '">' . $nam . '</a>';
                        echo '<span style="float: right;">' . coloured_value($player['experience'] - $player['exphist_lastexp']) . ' - Level ' . $player['level'] . '</span></li>';
                    }
                }
                ?>
            </ul>
 
PHP:
<div class="right_box">
    <div class="corner_lt"></div>
    <div class="corner_rt"></div>
    <div class="corner_lb"></div>
    <div class="corner_rb"></div>
    <div class="title"><img src="layout/img/3exp.gif"><span style="background-image: url(layout/widget_texts/powergamers.png);"></span></div>
    <div class="content">
        <div class="rise-up-content">
            <ul class="toplvl">
                <?php
                function coloured_value($valuein)
                {
                    error_reporting(E_ALL ^ E_NOTICE);
                    $value2 = $valuein;
                    while(strlen($value2) > 3)
                    {
                        $value = '.'.substr($value2, -3, 3);
                        $value2 = substr($value2, 0, strlen($value2)-3);
                    }
                    @$value = $value2.$value;
                    if($valuein > 0)
                        return '<b><font color="green">+'.$value.'</font></b>';
                    elseif($valuein < 0)
                        return '<font color="red">'.$value.'</font>';
                    else
                        return $value;
                }

                $cache = new Cache('engine/cache/topPowergamers');
                if ($cache->hasExpired()) {
                    
                    $znotePlayers = mysql_select_multi('SELECT * FROM players WHERE group_id < 2 ORDER BY  experience - exphist_lastexp DESC LIMIT 5;');
                    $cache->setContent($znotePlayers);
                    $cache->save();
                } else {
                    $znotePlayers = $cache->load();
                }

                if ($znotePlayers) {
                    foreach ($znotePlayers as $player) {
                        $nam = $player['name'];
                        if (strlen($nam) > 15) {
                            $nam = substr($nam, 0, 12) . '...';
                        }
                        echo '<li style="margin: 36px 0;"><img style="margin-top: -35px; margin-left: -35px;" src="https://outfit-images-oracle.ots.me/12xx_latest_walk/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>';
                        echo '<a style="margin-left: 19px;" href="characterprofile.php?name=' . $player['name'] . '">' . $nam . '</a>';
                        echo '<span style="float: right;">' . coloured_value($player['experience'] - $player['exphist_lastexp']) . ' - Level ' . $player['level'] . '</span></li>';
                    }
                }
                ?>
            </ul>
 
Solution
working. thank you very much
Post automatically merged:

ps: the last thing . non related woith this.
as i posted in this thread i changed the databse and my gallery stoped working could you help me out with this ?
 
Regarding highscores.php and powergamers, if the issue is SOLVED, it would be best to mark it as resolved and create a new topic. This avoids confusion here at the same time and allows others who are looking for the solution to find it easily. It's better to create another topic for your problem, so we can help in a more organized way.
 
Regarding highscores.php and powergamers, if the issue is SOLVED, it would be best to mark it as resolved and create a new topic. This avoids confusion here at the same time and allows others who are looking for the solution to find it easily. It's better to create another topic for your problem, so we can help in a more organized way.
yes i marked yuour solution as the best one. okey i'll make another thread then
 
Back
Top