{ALB_INFOS}? want to remove "last added" but not & {ALB_INFOS}? want to remove "last added" but not &
 

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

{ALB_INFOS}? want to remove "last added" but not &

Started by g0b0t, January 12, 2004, 04:26:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

g0b0t

hi there.
so, on the index.php page below the album description, we have something like: "676 pictures, last one added on Jan 09, 2004".

how would i remove the "last one added on Jan 09, 2004" while retaining the display of the number of pics.

is this "{ALB_INFOS}"?

thanks. :P
-g

Nibbler

In index.php, there are 4 cases of:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'],$last_upload_date) : "");

which must be replaced with:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count);

g0b0t


boolbo

Hi,

Maybe I have a similar question about the date shown on the thumbnails pics. If you look in the last additions table (in italian "ultimi arrivi") of this website: http://www.expo.francesconesi.it/

You could see the date text related to the day of upload of the photos shown by thumnails, so, how could i stop shown these date form the bottom of the thumbs?

I think I'll have to edit the index.php file is it true?
Thak you for your help
Marco....

boolbo

Anyone could reply to my message below, and help me?
Thank you!

Quote from: "boolbo"Hi,

Maybe I have a similar question about the date shown on the thumbnails pics. If you look in the last additions table (in italian "ultimi arrivi") of this website: http://www.expo.francesconesi.it/

You could see the date text related to the day of upload of the photos shown by thumnails, so, how could i stop shown these date form the bottom of the thumbs?

I think I'll have to edit the index.php file is it true?
Thak you for your help
Marco....

hama

Quote from: Nibbler on January 12, 2004, 06:29:07 PM
In index.php, there are 4 cases of:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'],$last_upload_date) : "");

which must be replaced with:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count);



Update for cpg 1.4.x:

In index.php, there are 4 cases of:


$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(", {$lang_list_albums['n_link_pictures']},  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");


which must be replaced with:


$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(", {$lang_list_albums['n_link_pictures']},  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");



Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

kryspin


dke

Great mod! is there a way to also remove the "picture count" on the albums?

sownman

#8
I searched and found this thread which seems it had the info I would like. However the instructions are blank
4 instances of ............. code can be found in index.php. They should be replaced with...............
There is also an update post regarding v1.4.x but either the orig code or the replacement code
or both are missing. Is this info available ? I would like to remove the number of pictures in addition
to the "last on added" statistics. Thanks


http://forum.coppermine-gallery.net/index.php?topic=3023.msg238770
[Edit GauGau] Merged the separate thread with the one the posting refered to [/Edit]

onthepike

The instructions aren't blank. You're most-likely using Internet Explorer as your web browser, which will render the code tag unreadable if that line of code doesn't wrap to a new line. You could try running IE in "Compatibility Mode", try viewing the source code of the message, or best, switch to a better browser such as Firefox (as I have).

You will then be able to read the text within the grey boxed areas.

sownman

Thank you. Never heard of compatibility mode before. Cnage to gallery made fine.

Steve

srobida

I am looking for this solution ({ALB_INFOS}? want to remove "last added" ) in 1.5.8.

Joachim Müller