Fields delimiter: show "no_image.jpg" when noimage

11 years 7 months ago #211859 by kalimero2
Hello,

I want to show in a list, users snapshots (webcam captures).
I did a "field delimiter" to show it:

<img src="chatin.tv/components/com_videowhisperlivestreaming/snapshots/[username]_thumb.jpg" border="0" alt="No Image" style="border: 0px solid; width: 148px; height: 100px;" />

And it works. But, of course, when the image doesnt exist, the field shows a blank space with the text "No Image".

I would like, when "No Image", field delimiter shows "no_image.jpg".
How could I do it?

Please Log in to join the conversation.

11 years 7 months ago #211878 by krileon
As it's an external URL there's no way to add a substitution IF statement to verify it; would need to be done with PHP to verify the URL response. Best bet is to probably add a background to the img tag using CSS and it should show if there's no image.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn