Show an image but link to something else?

I’m looking for a way to show an image, but link to something different like a video.

I can’t seem to make this work with typical BB forum code, markdown or HTML.

Reason for this might be something that’s not supported in one box, or maybe I just want to take more control over what is displayed and linked to… for instance just making the image much smaller or different.

EDIT: aww snap, I got it… nested markdown
[![](image_url)](target_url)

7 个赞

This is also supported through the UI. In the editor…

  1. Click/tap image upload icon

  2. Click/tap “from the web”

  3. Click/tap “show more”

  4. Enter URL for image. Enter URL for link.

Done:

1 个赞

Oh nice! In the 1000’s of posts I’ve made on discourse I’ve never used that uploader more than a couple times. The automagic One Box thing has always just worked for me so I never bothered to upload. Most of the images I include are fast screenshots that I annotate and automatically upload to imgur.com, which I just paste the link in the post thereafter.

Did you know that if you have an image in your clipboard you can just paste it into the editor? Yeah, an image, not a link to an image.

We’re in the future, man.

5 个赞

That’s way cool too. One thing I like about imgur.com is I upload to my own account, so all of my images are saved online whenever I need them. Regardless of where it comes from, I know discourse always makes a copy of it to keep forever (preventing broken image links in the future). :heart: :heart: :heart_eyes_cat: :love_hotel: :love_letter: :hearts: :blue_heart: :purple_heart: :green_heart: :heartpulse: :heart_decoration: :yellow_heart: :four_leaf_clover:

1 个赞

这个功能还在吗?当我点击上传图标时,它会直接打开本地文件窗口,而不是提供从网页添加图片的选项。虽然可以通过 OP 提到的嵌套 Markdown 语法添加图片,但如果能像 Google 示例旁边那样有一个点击计数图标,那就更好了。

谢谢!

2 个赞

啊,谢谢顶起这个话题。你说得对,我们现在跳过了“来自网页”这一步,因为它几乎从未被使用。这是 Discourse 最近的一项更改,旨在简化向帖子添加图片的流程。

至于点击计数器,你仍然会在任何指向外部来源的链接上看到点击计数器。

2 个赞