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

Gesior shop problem

merrow

New Member
Joined
Jun 19, 2010
Messages
9
Reaction score
0
Hiya, I use newest tfs engine (0.3.6) and I have problem with shop system. Im adding item in database(item pacc or w/e else), but it doesn't appears in the page, could anyone help me please?
 
oK, but this is more detailed help post :p
If a ahopitem has ID 12 (it is demon armor okay? Not relly but its an example)
Then you save that demon armor image from tibiawiki and rename it to 12.gif/jpg
Then you move it to folder htdocs/item_images
If it is gif file, you have to change this line
shopsystem.php
~line 175
PHP:
$main_content .= '<tr bgcolor="#F1E0C6"><td align="center"><img src="item_images/'.$item['id'].'.jpg"></td><td><b>'.$item['name'].'</b> ('.$item['points'].' points)<br />'.$item['description'].'</td><td align="center">';
to
PHP:
$main_content .= '<tr bgcolor="#F1E0C6"><td align="center"><img src="item_images/'.$item['id'].'.gif"></td><td><b>'.$item['name'].'</b> ('.$item['points'].' points)<br />'.$item['description'].'</td><td align="center">';
After this you can use .gif files instead of .jpgs
REP+ If you feel like it...
 
Ok, I solve that problem by myself :p database automaticly adds id to itamz, and I just had to rename the image to the number which gave me database. Anyway, rep+ for you Sonical :)
 
Back
Top