ElkArte Community

Project Support => Support => Topic started by: Auctor Lucan on April 24, 2017, 09:11:51 am

Title: Image link behaviour
Post by: Auctor Lucan on April 24, 2017, 09:11:51 am
Hi there!

Check the below:

(https://orig14.deviantart.net/3e61/f/2014/077/1/e/red_ltcmdr_by_auctor_lucan-d7apm83.png)Lt Cmdr. TharinAlk th'Thane  Chief Diplomatic Officer (https://uss-theurgy.com/w/index.php?title=TharinAlk_th%27Thane) 
(http://orig10.deviantart.net/37f5/f/2017/113/9/4/alk___crew_manifest_by_auctor_lucan-db6vukl.png) (https://uss-theurgy.com/w/index.php?title=TharinAlk_th%27Thane)
  - Played by TharinAlk

And here is the code for it:

[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
Title: Re: Image link behaviour
Post by: Spuds on April 24, 2017, 10:05:23 am
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.
Title: Re: Image link behaviour
Post by: Auctor Lucan on April 24, 2017, 10:09:14 am
Already tried, doesn't matter, sorry. Any other ideas? :)
Title: Re: Image link behaviour
Post by: Spuds on April 24, 2017, 10:17:36 am
temporarily disable fancybox and see if that does it. (as well as put it back to https or it will not serve)
Title: Re: Image link behaviour
Post by: emanuele on April 24, 2017, 03:43:06 pm
http://www.elkarte.it/community/index.php?topic=108.msg341#msg341 <= looks good on a more or less borked install, likely an issue with an addon...
Title: Re: Image link behaviour
Post by: Auctor Lucan on April 24, 2017, 05:26:38 pm
I uninstalled Fancybox and now it works. Good instincts!

So, what do I do in order to keep the add on too?
Title: Re: Image link behaviour
Post by: Spuds on April 24, 2017, 07:47:37 pm
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.
Title: Re: Image link behaviour
Post by: Auctor Lucan on April 24, 2017, 08:18:43 pm
Thanks!  Worked like a charm. :)