I was asked how to add/display words from line "Keywords of Album:" to/in the line "Keywords:"?
1st, the mod must be installed.
2nd,
#
#-----[ OPEN ]------------------------------------------
#
displayimage.php
#
#-----[ FIND ]------------------------------------------
#
if ($CURRENT_PIC_DATA['keywords'] != "") {
$info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($CURRENT_PIC_DATA['keywords'] && $CURRENT_ALBUM_DATA['keyword']) {
$info[$lang_picinfo['Keywords']] .= ', <span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_ALBUM_DATA['keyword']) . '</span>';
}
if (!$CURRENT_PIC_DATA['keywords'] && $CURRENT_ALBUM_DATA['keyword']) {
$info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_ALBUM_DATA['keyword']) . '</span>';
}
#
#-----[ FIND ]------------------------------------------
#
if ($CURRENT_ALBUM_DATA['keyword'] != "") {
$info[$lang_picinfo['Keywords album']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_ALBUM_DATA['keyword']) . '</span>';
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
//code removed
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM