Linking image titles in the thumbnail gallery Linking image titles in the thumbnail gallery
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Linking image titles in the thumbnail gallery

Started by Elora33, September 22, 2006, 11:03:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Elora33

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!

Elora33

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!