Advanced search  

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

Pages: [1]   Go Down

Author Topic: Linking image titles in the thumbnail gallery  (Read 2984 times)

0 Members and 1 Guest are viewing this topic.

Elora33

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Linking image titles in the thumbnail gallery
« 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!
« Last Edit: September 24, 2006, 12:37:36 am by Nibbler »
Logged

Elora33

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Linking image titles in the thumbnail gallery
« Reply #1 on: September 23, 2006, 07:45:08 am »

It think I have solved this now.

I replaced

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

Code: [Select]
$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!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.