coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: cocoon on September 07, 2004, 02:19:03 PM

Title: Album Name format in 'File information'
Post by: cocoon 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
Title: Re: Album Name format in 'File information'
Post by: Joachim Müller 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
Title: Re: Album Name format in 'File information'
Post by: cocoon 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?
Title: Re: Album Name format in 'File information'
Post by: Casper on September 13, 2004, 11:50:54 PM
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.
Title: Re: Album Name format in 'File information'
Post by: cocoon on September 14, 2004, 02:37:00 PM
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*