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: Album Name format in 'File information'  (Read 3335 times)

0 Members and 1 Guest are viewing this topic.

cocoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Album Name format in 'File information'
« on: September 07, 2004, 02:19:03 pm »

When I (as the admin), create a new album anywhere on the site, the file info for photos in that album shows:

Album Name: Admin / Album Name

Is there any way I can change it to:

Album Name: Album Name

Or have I just created the albums incorrectly?  :P
« Last Edit: September 15, 2004, 08:07:19 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Album Name format in 'File information'
« Reply #1 on: September 08, 2004, 07:20:50 am »

you (as an admin) shouldn't create albums within user galleries, as the whole Coppermine gallery is your "user gallery" in a broader sense. Create albums in "regular" categories (you will have to create them first using the "Categories" link in your admin menu. I recommend taking a look into the coppermine documentation, as this is explained there as well.

Joachim
Logged

cocoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Album Name format in 'File information'
« Reply #2 on: September 13, 2004, 11:36:19 pm »

I am not creating albums within user galleries.
The user galleries section is empty.

The albums I have created using the 'Categories' link on the admin menu are displaying as in my first post.

Any ideas?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Album Name format in 'File information'
« Reply #3 on: September 13, 2004, 11:50:54 pm »

Open displayimage.php, and find this code;

Code: [Select]
$info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
Now change it to this;

Code: [Select]
$info[$lang_picinfo['Album name']] = '<span class="alblink">'  '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
Not tested, so back up first.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

cocoon

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Album Name format in 'File information'
« Reply #4 on: September 14, 2004, 02:37:00 pm »

Thanks Casper!

With a slight modification, worked a treat.

The replacement code:

Code: [Select]
$info[$lang_picinfo['Album name']] = '<span class="alblink">'  '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
Should be:

Code: [Select]
$info[$lang_picinfo['Album name']] = '<span class="alblink"><a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';
*sigh of relief*
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.