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: how to change File Information ?  (Read 3897 times)

0 Members and 1 Guest are viewing this topic.

enriquei

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
how to change File Information ?
« on: December 07, 2012, 11:34:37 am »

Hi There
how can i change the File Information such as:

Filename:
Album name:
Keywords:

i want to change these words to:
Filename:  -----> Hotel Name
Album name:  ------ Hotel City
Keywords: ------ Hotel Keywords

so how can i change these words?
thanx
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: how to change File Information ?
« Reply #1 on: December 07, 2012, 11:36:54 am »

You either have to edit the language file(s), but as those strings may be also used at other places, it's probably better to edit the function
html_picinfo in displayimage.php.
Logged

enriquei

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: how to change File Information ?
« Reply #2 on: December 07, 2012, 11:52:51 am »

hi there
thanks for your reply
in the displayimage page the word is such as: Filename:
i don't find this in the php file
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: how to change File Information ?
« Reply #3 on: December 07, 2012, 11:57:22 am »

Search for
  • $lang_common['filename']
  • $lang_picinfo['Album name']
  • $lang_common['keywords']
and replace them with
  • 'Hotel Name'
  • 'Hotel City'
  • 'Hotel Keywords'
Logged

enriquei

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: how to change File Information ?
« Reply #4 on: December 07, 2012, 12:00:17 pm »

Hi There
i did and i got this error:

Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/website/public_html/photos/displayimage.php on line 130
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: how to change File Information ?
« Reply #5 on: December 07, 2012, 12:38:19 pm »

Review line 130, it should look like
Code: [Select]
$info['Hotel Name'] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
Logged

enriquei

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: how to change File Information ?
« Reply #6 on: December 07, 2012, 12:56:37 pm »

its working now thank you

i'm wondering if i can change the title font size (that appear under image )
thanx again
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.