solved Link in Flickr image caption box

AndyF
AndyF
@andyf
7 years ago
92 posts
When a URL is pasted into the image caption box on a Flickr photo page, the link does not work (it always works fine on a regular "Image Gallery" photo page).

Is there an easy fix for this?
updated by @andyf: 07/06/17 01:40:50PM
paul
@paul
7 years ago
4,331 posts
It looks like the Flickr item_detail.tpl template doesn't have the string formatting modifier in place. We'll get that fixed up.
In the meantime, change line 25 from

{$item.flickr_caption}

to

{$item.flickr_caption|jrCore_format_string:$item.profile_quota_id}

That should fix it.
Thanks
Paul


--
Paul Asher - JR Developer and System Import Specialist
AndyF
AndyF
@andyf
7 years ago
92 posts
Awesome. That works @paul

This leads to me a couple more questions:

Is there an easy way to add html to the the caption? (I'm wanting to add text links in that space & not just have to place an ugly URL in there).

AND

Is there something that I can do that makes it so the image does not link back to Flickr when you click it?
paul
@paul
7 years ago
4,331 posts
Quote: Is there an easy way to add html to the the caption? (I'm wanting to add text links in that space & not just have to place an ugly URL in there).
Try using the Form Designer to change the caption field from a textarea to an editor field.

Quote: Is there something that I can do that makes it so the image does not link back to Flickr when you click it?
Remove lines 17 and 19 (the tags) from the item_detail.tpl template.
hth


--
Paul Asher - JR Developer and System Import Specialist
AndyF
AndyF
@andyf
7 years ago
92 posts
Worked like a dream!
Thanks @paul!!!

Tags