[FIXED] Keyword search link. [FIXED] Keyword search link.
 

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

[FIXED] Keyword search link.

Started by sengsara, November 06, 2003, 05:36:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sengsara

File displayimage.php line 258
               $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
<a href="'.modules.php?name=coppermine.'&file=thumbnails&album=search&search=keyword1">keyword1</a>
This code works for me:
               $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>';
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fbatamweb.net%2F4leechers%2Fsengsaraatgmail.gif&hash=5023c7ba1bc4142435e406735fee30bc611c5a03)