Displaying images not hosted by Quest
sweetalker
24 Apr 2020, 23:13I'm using the online version of Quest and I can't figure out how to display an image that's hosted elsewhere (in this case, by imgur.com). I've tried using the {img:} command in the Room Description text version, and using
msg ("<img src='http://www.mydomain.com/images/kitten.png' />")
and
picture ("<img src='http://www.mydomain.com/images/kitten.png' />")
and even
img ("<img src='http://www.mydomain.com/images/kitten.png' />")
and every version of those commands, trying ' versus " and trying with and without slashes, greater-than signs, etc. Cannot figure it out, the closest I've gotten is that little Firefox box that means there's no image to show.
mrangel
24 Apr 2020, 23:49You really want:
msg ("<img src=\"http://www.mydomain.com/images/kitten.png\" />")
but the first one you have there should work fine on 99% of browsers.
the closest I've gotten is that little Firefox box that means there's no image to show.
Two guesses:
- The site that you're hosting the image on doesn't allow hotlinking (don't think that's the case for imgur)
- You have the URL wrong

Forgewright
25 Apr 2020, 02:54I always use Imgur with the line of code you showed Mrangel. No problems.