Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [FIXED] Keyword search link.  (Read 4387 times)

0 Members and 1 Guest are viewing this topic.

sengsara

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • http://batamweb.net
[FIXED] Keyword search link.
« on: November 06, 2003, 05:36:38 am »

File displayimage.php line 258
Code: [Select]
               $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"'.$CPG_URL.'&file=thumbnails&album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
give this link
Code: [Select]
<a href="'.modules.php?name=coppermine.'&file=thumbnails&album=search&search=keyword1">keyword1</a>
This code works for me:
Code: [Select]
               $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"$CPG_URL&file=thumbnails&album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
Logged
(http://batamweb.net/4leechers/sengsaraatgmail.gif)
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 18 queries.