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: Additional fields to describe the image (bb code)  (Read 2563 times)

0 Members and 1 Guest are viewing this topic.

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Additional fields to describe the image (bb code)
« on: April 29, 2012, 12:12:30 pm »

Details please realize that the additional field may be written bb code.
This will need to relink pages galleries. Thank you :)
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Additional fields to describe the image (bb code)
« Reply #1 on: May 01, 2012, 10:48:48 am »

Αndrй please help and then have tried everything :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Additional fields to describe the image (bb code)
« Reply #2 on: May 02, 2012, 11:28:47 am »

Open displayimage.php, find
Code: [Select]
$info[$CONFIG['user_field' . $i . '_name']] = make_clickable($CURRENT_PIC_DATA['user' . $i]);and replace with
Code: [Select]
$info[$CONFIG['user_field' . $i . '_name']] = make_clickable(bb_decode($CURRENT_PIC_DATA['user' . $i]));(not tested).
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Additional fields to describe the image (bb code)
« Reply #3 on: May 02, 2012, 02:19:23 pm »

Thank you Αndré, works great!
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Additional fields to describe the image (bb code)
« Reply #4 on: May 02, 2012, 02:21:50 pm »

It turns out it was all so simple  :D
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.