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

Solved Cant add images on new gesior (2012)

rakdos

New Member
Joined
Sep 9, 2010
Messages
17
Reaction score
0
I created a new folder on docs: Images.

And inside images, i put outfit files images with index and outfit.php

and i changed default value on config.php:

default:
PHP:
$config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php';
$config['site']['item_images_url'] = 'http://item-images.ots.me/960/';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png';

for:
PHP:
$config['site']['outfit_images_url'] = 'http://localhost/images/outfit.php';
$config['site']['item_images_url'] = 'http://item-images.ots.me/960/';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png';

But nothing, i really dont know how this work..

Anyone can explain? i just need put outfits images, shop images, etc..
 
Last edited:
Make sure the images are .png or .gif or what you use in this config.

Right click on the images, and go to information to look it up.
 
Yes, i dont know, i think i'm doing something wrong

Look:

1° Image Folder
2mnrb5u.png


2° inside Image Folder
vnnj2a.png


3° inside outfit_images
348lkic.png


And i dont know what i put on config file..
 
$config['site']['item_images_extension'] = '.gif'; <-- In your first post.

Are that pictures in .gif?
 
$config['site']['item_images_extension'] = '.gif'; <-- In your first post.

Are that pictures in .gif?

PNG, but i'm already changed, but the result is the same:

9jp4aq.png


on config:

PHP:
$config['site']['outfit_images_url'] = 'http://localhost/images/';
$config['site']['item_images_url'] = 'http://localhost/images/';
$config['site']['item_images_extension'] = '.png';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png'

or

PHP:
$config['site']['outfit_images_url'] = 'http://localhost/images/outfit.php';
$config['site']['item_images_url'] = 'http://localhost/images/outfit.php';
$config['site']['item_images_extension'] = '.png';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png'

nothing..
 
Character:
2n8q5v4.png


Folder:
aagi01.png


Config:
PHP:
$config['site']['outfit_images_url'] = 'http://localhost/images/outfit.php';
$config['site']['item_images_url'] = 'http://localhost/images/outfit.php';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.gif';

Nothing.
 
Done and nothing..

I think the configuration dont be correct, cuz when i try open the page like "Highscores", he get like 10 seconds of loading (i think he try find pictures on some place)
 
Ok, now i'm in right way. But he always get this value (I have mage full on my character)

PHP:
src="http://localhost/images/outfit.php?id=130&addons=0&head=0&body=0&legs=0&feet=0"
 
Ok, now i'm in right way. But he always get this value (I have mage full on my character)

PHP:
src="http://localhost/images/outfit.php?id=130&addons=0&head=0&body=0&legs=0&feet=0"
Try to link 'outfit-without-cache.php' file, maybe it does not work, because it tries to save image in cache and there is no folder 'cache'.
 
Remove this from highscores.php
PHP:
<img src="./images/flags/' . $skill->getFlag() . '.png" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" />
 
Remove this from highscores.php
PHP:
<img src="./images/flags/' . $skill->getFlag() . '.png" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" />
Iam Also need To Remove Flags From My Highscors but i don't found this code in my highscors.php
Help me this my code
PHP:
 $config['site']['flag_images_url'] . $skill->getFlag() . $config['site']['flag_images_extension'] . '" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" />
 
Iam Also need To Remove Flags From My Highscors but i don't found this code in my highscors.php
Help me this my code
PHP:
 $config['site']['flag_images_url'] . $skill->getFlag() . $config['site']['flag_images_extension'] . '" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" />

Remove
PHP:
<img src="' . $config['site']['flag_images_url'] . $skill->getFlag() . $config['site']['flag_images_extension'] . '" title="Country: ' . $skill->getFlag() . '" alt="' . $skill->getFlag() . '" />
 
Gesior please make the outfit more smaller photo

View attachment 21901

View attachment 21902

PHP:
$config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php';

whoisonline.php

replace
Code:
<TD WIDTH=5%><img src="' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '" alt="" /></td>
with
Code:
<TD><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url(' . $config['site']['outfit_images_url'] . '?id=' . $player['looktype'] . '&addons=' . $player['lookaddons'] . '&head=' . $player['lookhead'] . '&body=' . $player['lookbody'] . '&legs=' . $player['looklegs'] . '&feet=' . $player['lookfeet'] . '); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div></TD>

highscores.php

replace
Code:
<TD><img src="' . $config['site']['outfit_images_url'] . '?id=' . $skill->getLookType() . '&addons=' . $skill->getLookAddons() . '&head=' . $skill->getLookHead() . '&body=' . $skill->getLookBody() . '&legs=' . $skill->getLookLegs() . '&feet=' . $skill->getLookFeet() . '" alt="" /></TD>
with
Code:
<TD><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url(' . $config['site']['outfit_images_url'] . '?id=' . $skill->getLookType() . '&addons=' . $skill->getLookAddons() . '&head=' . $skill->getLookHead() . '&body=' . $skill->getLookBody() . '&legs=' . $skill->getLookLegs() . '&feet=' . $skill->getLookFeet() . '); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div></TD>
 
Back
Top