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: [MOD] Keyword of album on displayimage page  (Read 15186 times)

0 Members and 1 Guest are viewing this topic.

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
[MOD] Keyword of album on displayimage page
« on: March 15, 2007, 11:56:53 am »

##############################################################
## MOD Title: Keyword of album on displayimage page
## MOD Author: Makc666 < makc666  :P newmail  :-\ ru > (Maxim) http://makc666.com
## MOD Description: If there is keyword for album it will be displayed on displayimage page as a separate line
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 2 Minute
## Files To Edit:
## displayimage.php
## lang/english.php
## Included Files: (n/a)
##############################################################
« Last Edit: April 30, 2008, 05:54:04 pm by Makc666 »
Logged

mywedding

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 42
  • MyWedding
    • Wedding
Re: Keyword of album on displayimage page
« Reply #1 on: February 03, 2008, 04:39:16 am »

Makc666, thanks for this beautiful work :)
##############################################################
## MOD Title: Keyword of album on displayimage page
## MOD Author: Makc666 < makc666  :P newmail  :-\ ru > (Maxim) http://makc666.com
## MOD Description: If there is keyword for album it will be displayed on displayimage page as a separate line
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 2 Minute
## Files To Edit:
## displayimage.php
## lang/english.php
## Included Files: (n/a)
##############################################################
Logged
Dreams are free, so free your dreams, "Astrid Alauda"

Makc666

  • Translator
  • Coppermine addict
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 1614
  • Русский (ISO-8859-1) - Russian - Русский (Windows)
    • Makc's home page
Re: [MOD] Keyword of album on displayimage page
« Reply #2 on: July 03, 2008, 10:55:17 am »

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,
Code: [Select]
#
#-----[ 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&amp;search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
    }
#
#-----[ AFTER, ADD ]------------------------------------------
#

    if ($CURRENT_PIC_DATA['keywords'] && $CURRENT_ALBUM_DATA['keyword']) {
        $info[$lang_picinfo['Keywords']] .= ',&nbsp;<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&amp;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&amp;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&amp;search=\\1\">\\1</a>" , $CURRENT_ALBUM_DATA['keyword']) . '</span>';
    }

#
#-----[ REPLACE WITH ]------------------------------------------
#
//code removed
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Logged

lahmanwokard

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: [MOD] Keyword of album on displayimage page
« Reply #3 on: February 15, 2010, 02:02:20 pm »

I read out post thanks for sharing the information regarding the Keyword of album on display image page,its cools and keen to try out these.
Logged
 *Link Removed*
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.