Skip to main content
Topic: Image link behaviour (Read 1982 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Image link behaviour

Hi there!

Check the below:

Lt Cmdr. TharinAlk th'Thane  Chief Diplomatic Officer 

  - Played by TharinAlk

And here is the code for it:

Code: [Select]
[img]https://orig14.deviantart.net/3e61/f/2014/077/1/e/red_ltcmdr_by_auctor_lucan-d7apm83.png[/img][url=https://uss-theurgy.com/w/index.php?title=TharinAlk_th%27Thane][font=courier][color=red]Lt Cmdr. TharinAlk th'Thane  Chief Diplomatic Officer[/color][/font][/url]  
[url=https://uss-theurgy.com/w/index.php?title=TharinAlk_th%27Thane][img]https://orig10.deviantart.net/37f5/f/2017/113/9/4/alk___crew_manifest_by_auctor_lucan-db6vukl.png[/img][/url]
[font=courier][color=red]  - Played by TharinAlk[/color][/font]

Note how when you click on the image, you are taken to this page: https://uss-theurgy.com/w/index.php?title=TharinAlk_th%27Thane

Now, on my Elkarte forum, it doesn't work that way. When I use rhe same code, I get this result:

https://uss-theurgy.com/forum/index.php/topic,1002.msg10136.html#msg10136

As you may notice, when you click the image there, you are not taken to that page. You are instead only shown the image itself.

Hope someone can help me fix this bug, which is likely only on my forum since it works fine here.

Best,

Auctor Lucan
Last Edit: April 24, 2017, 10:08:17 am by Auctor Lucan

Re: Image link behaviour

Reply #1

Try using https on the linked image, otherwise you are trying to serve an insecure resource on a secure link.  Does not matter here since the site is http only.

Re: Image link behaviour

Reply #2

Already tried, doesn't matter, sorry. Any other ideas? :)

Re: Image link behaviour

Reply #3

temporarily disable fancybox and see if that does it. (as well as put it back to https or it will not serve)


Re: Image link behaviour

Reply #5

I uninstalled Fancybox and now it works. Good instincts!

So, what do I do in order to keep the add on too?

Re: Image link behaviour

Reply #6

Enable the "Don't attach fancybox to linked BBC images" in the addon settings

That will, or should, prevent it from interfering with that image.  It will however also disable it from working on photo share links i.e. imageshack etc.

Re: Image link behaviour

Reply #7

Thanks!  Worked like a charm. :)