Album Name format in 'File information' Album Name format in 'File information'
 

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

Main Menu

Album Name format in 'File information'

Started by cocoon, September 07, 2004, 02:19:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cocoon

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

Joachim Müller

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

cocoon

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?

Casper

Open displayimage.php, and find this code;

$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;

$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.
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

Thanks Casper!

With a slight modification, worked a treat.

The replacement code:

$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:

$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*