How to add item images to shop without changing extension from JPG to GIF?
It's very easy. Images in images/items are in GIFs, we need JPG - NO! It's more easy.
Let's start
1) Open shopsystem.php (main folder).
2) Find line ~181
3) PHP code
Replace for
4) Save
5) It's end.
You can now add items from images/items to item_images without changing extension.
Only change image name (ID from db).
All rights tralalala, copy and paste where you want. Include only author name (me, turson).
Good Luck!
It's very easy. Images in images/items are in GIFs, we need JPG - NO! It's more easy.
Let's start
1) Open shopsystem.php (main folder).
2) Find line ~181
3) PHP code
Code:
$main_content .= '<tr bgcolor="#D4C0A1"><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">';
Code:
$main_content .= '<tr bgcolor="#D4C0A1"><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">';
5) It's end.
You can now add items from images/items to item_images without changing extension.
Only change image name (ID from db).
All rights tralalala, copy and paste where you want. Include only author name (me, turson).
Good Luck!