This topic is locked
[SOLVED]

 can not display images

11/21/2012 10:12:58 AM
PHPRunner General questions
S
swanside author

On one of my projects, I have a field which is suppose to display an image from a URL
It is setup as Edit as Text Field and View AS Image.

In the text field it has https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=20330&image=1&table=forumtopics

If I open up an internet exploere window and enter that address, I can see the image.

If I open up an old version of my project and go to the view page I can see the image.

Using the latest version of PHPRunner, I can not see the image.

Any ideas as to why please?

Cheers

Paul.

Sergey Kornilov admin 11/21/2012

Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

C
cgphp 11/21/2012

Set the field as Custom in view mode and enter the following code:

$value = '<img src="'.$value.'" alt="my image" />';
S
swanside author 11/21/2012



Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Have done.

Thanks

Sergey Kornilov admin 11/21/2012

I recommend to follow Cristian's advise. In version 6.2 images are stored in different format to accommodate multi-upload feature.

S
swanside author 11/21/2012



I recommend to follow Cristian's advise. In version 6.2 images are stored in different format to accommodate multi-upload feature.



I cant see that working as the images are all dynamic, there are over a thousand images in the folder where the URL points to and new ones get saved there everyday, and we need these images to submit on an invoice for payment.

I cant see how I can make > $value = '<img src="'.$value.'" alt="my image" />';

the my image part update with the new images on a daily basis.
We use a PDA system and it imports into our MySQL database a unique GUID which has multiply images attached to it, and we view these images in different forms.

I really need it to work as it was before hand.

Cheers

Paul.

Sergey Kornilov admin 11/21/2012

I'm afraid you are overthinking it. Try this approach and if there is any sort of specific issue you face - post it here.

S
swanside author 11/21/2012



I'm afraid you are overthinking it. Try this approach and if there is any sort of specific issue you face - post it here.



Doh, feel stupid now!!
Thanks, Just one more question to wrap this up, How can I make it display it at 160 x 160 pixels?
Cheers

Paul

S
swanside author 11/21/2012



Set the field as Custom in view mode and enter the following code:

$value = '<img src="'.$value.'" alt="my image" />';




Thanks Cristian

When I saw my image, I could not see how it would work for multiple images, but t does.

Regards

Paul

Sergey Kornilov admin 11/23/2012

To change image display size use height and weight attributes of img tag:

http://www.w3schools.com/tags/tag_img.asp