Jump to content
  • 0

How to Add image for Vending Information FluxCp?


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Hi,

 

Where is the directory for it? it only shows ?nocache=#number but can't find it.

 

Can you give me the directory of it?

 

Regards!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

The code should probably match the item/index.php theme file so the page will only try to show the image if the file is actually there:

<?php if ($icon=$this->iconImage($item->item_id)): ?>
	<td width="24"><img src="<?php echo htmlspecialchars($icon) ?>?nocache=<?php echo rand() ?>" /></td>
	<td><?php echo htmlspecialchars($item->name) ?></td>
<?php else: ?>
	<td colspan="2"><?php echo htmlspecialchars($item->name) ?></td>
<?php endif ?>

The images are served from data/items/icons/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

The code should probably match the item/index.php theme file so the page will only try to show the image if the file is actually there:

<?php if ($icon=$this->iconImage($item->item_id)): ?>
	<td width="24"><img src="<?php echo htmlspecialchars($icon) ?>?nocache=<?php echo rand() ?>" /></td>
	<td><?php echo htmlspecialchars($item->name) ?></td>
<?php else: ?>
	<td colspan="2"><?php echo htmlspecialchars($item->name) ?></td>
<?php endif ?>

The images are served from data/items/icons/

 

Do you have all the icons sir? Should I name it also 1.jpg 2.jpg?

Edited by Meister
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

hi, @Akkarin can u give me example what should i do to show image 

 

vending.png

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

8 hours ago, melv0 said:

hi, @Akkarin can u give me example what should i do to show image 

 

vending.png

Well, since i don't have a crystal ball, i have no idea what you've done to get to this stage and have a non-image displayed. Right-click the image and select "open in new tab" and see what it's trying to load. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

On 3/27/2018 at 12:08 AM, Akkarin said:

Well, since i don't have a crystal ball, i have no idea what you've done to get to this stage and have a non-image displayed. Right-click the image and select "open in new tab" and see what it's trying to load. 

sorry, you say this "The images are served from data/items/icons/"

On 12/15/2015 at 7:40 PM, Akkarin said:

The code should probably match the item/index.php theme file so the page will only try to show the image if the file is actually there:


<?php if ($icon=$this->iconImage($item->item_id)): ?>
	<td width="24"><img src="<?php echo htmlspecialchars($icon) ?>?nocache=<?php echo rand() ?>" /></td>
	<td><?php echo htmlspecialchars($item->name) ?></td>
<?php else: ?>
	<td colspan="2"><?php echo htmlspecialchars($item->name) ?></td>
<?php endif ?>

The images are served from data/items/icons/

I mean, how do I bring up images of diabolus ring in data/items/icons/
should the berfomat icon?
is it like this? 
 µ Æ º ¾ ð ¼ ½ º ¸ ç · µ. ico << sprite name diabolus ring
 or diabolus_ring.ico

 

sorry bad english i use translator

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Ah. You've just uploaded the images without using a conversion script.

Use this: 

 

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

5 minutes ago, Akkarin said:

Ah. You've just uploaded the images without using a conversion script.

Use this: 

 

 

yeah i mean this..

thx a lot bro :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

hi, @Akkarin do you know where location this image??

Screenshot_22.png.4838b3aac6eaed5d2430ea5a670f3531.png

i wan to change this image

Screenshot_21.png.d11216066ea2321ce4f87f732eb6ccf0.png

 

Link to comment
Share on other sites

×
×
  • Create New...