coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Elora33 on September 22, 2006, 11:03:16 PM

Title: Linking image titles in the thumbnail gallery
Post by: Elora33 on September 22, 2006, 11:03:16 PM
A thousand pardons if this has been covered. I think I have looked at  500 topics in the past two days and can't seem to come up with solution for this minor issue.

I am trying to link the title of the image inside the thumbnail gallery to an outside url using target=new. BbCode however will not allow for that within the [ ] tags. Is there a way to put it into the template? Or does it need to be a javascript? And where would I place it so that only the titles open in a new window but the other links open in the parent window?

Thank you for your time!
Title: Re: Linking image titles in the thumbnail gallery
Post by: Elora33 on September 23, 2006, 07:45:08 AM
It think I have solved this now.

I replaced

$bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external">

with

$bbcode_tpl['url']  = '<span class="bblink"><a href="{URL}" rel="external" target="_blank">

It my not be the best solution but it works for both image descriptions and image titles.

Edit
and now that I put that code into search I come up with this post -  http://forum.coppermine-gallery.net/index.php?topic=31743.0  ::) Sometimes search is hard to navigate!