how put images awards?

hello, how is the correct way to view the images in my airline awards, because I have added several images in my awards but only you can see letters, but the images do not appear.

can someone guide me about this please?

A quick search will bring that up:

<ul>
<?php foreach($allawards as $award){ ?>
<li><img src="<?php echo $award->image?>" /></li>
<?php } ?>
</ul>

Jon

2 Likes

wrong place moving it

wrong place moving it

I created a new folder called awards in the images folder next to rank. I put the award images there and reference that on the award creation page.

thanks for answer me

can you tell me the correct folder where I upload the images of the awards? and how to find the folder

thanks for answer me

can you tell me the correct folder where I upload the images of the awards? and how to find the folder

There is no folder defined for it, in fact you can have the award image anywhere on the internet because on the award definition page you specify the URL.

However, for the sake of having everything together I opted for hosting the image within phpVMS. There is no award images folder so I created the ‘awards’ folder under /lib/images, that is /lib/images/awards/ put the images there. When you define an award in the URL text field simply put something like /lib/images/awards/MYAWARD.jpg just replace “MYAWARD.jpg” with the actual name of your award image. Keep them all of the same size. Also remember that if you are hosting phpVMS on Linux/Unix then the file name is case sensitive, on Windows hosts it is not.

1 Like

thanks for your desire to help me in this little problem, but hey, you tried everything I have explained, and it still does not work.

only shows the name of the image, but no picture.

in my control panel when I add the link of the image, if I see the image, but the page you can only see the name of the image.

This is not the problem.

In the award images field when you set the award up try using the absolute path to the image. Something like ->

http://www.yoursite.com/yourimagefolder/yourawardimage.jpg

Using relative links in the control panel will not always work in all parts of the system depending on how your file tree is structured.

1 Like

not simpilot, I change link to see if the image appeared, but does not work

Can you see the image if you use its url directly in your browser? Can you see it in the admin panel?

1 Like

yes, I can see the image for link olso in my control panel, but is not working in the adwards

yes, I can see the image for link olso in my control panel, but is not working in the adwards

If it showing up in the admin panel then it is not an issue with the path, it has to be something in the template then, which one are you working in? pilot_public_profile.tpl I imagine.

make sure your image code looks something like this ->

<img src="<?php echo $award->image; ?>" alt="<?php echo $award->descrip; ?>" />

You can also do a

<?php print_r($allawards); ?>

to make sure the [image] field is filled.

1 Like