forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Miscellaneous => Topic started by: g0b0t on January 12, 2004, 04:26:38 pm

Title: {ALB_INFOS}? want to remove "last added" but not &
Post by: g0b0t on January 12, 2004, 04:26:38 pm
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
Title: {ALB_INFOS}? want to remove "last added" but not &
Post by: Nibbler on January 12, 2004, 06:29:07 pm
In index.php, there are 4 cases of:
Code: [Select]

$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:
Code: [Select]

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count);
Title: {ALB_INFOS}? want to remove "last added" but not &
Post by: g0b0t on January 12, 2004, 11:01:37 pm
that did it.
thanks, Nibbler.
 8)
-g
Title: Do not sohw the date under the thumbnails in last additions
Post by: boolbo on March 22, 2004, 05:44:58 pm
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....
Title: Re: Do not sohw the date under the thumbnails in last additi
Post by: boolbo on March 25, 2004, 01:10:32 pm
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....
Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: hama on April 02, 2006, 10:05:48 pm
In index.php, there are 4 cases of:
Code: [Select]
$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:
Code: [Select]
$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:

Code: [Select]
$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:

Code: [Select]
$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) : "");


Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: kryspin on December 13, 2007, 08:27:13 pm
Thanks, this one workes great :-)
Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: dke on January 12, 2008, 02:59:46 am
Great mod! is there a way to also remove the "picture count" on the albums?
Title: Removing file count and last add from Album view
Post by: sownman on May 04, 2010, 11:58:33 pm
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]
Title: Re: Removing file count and last add from Album view
Post by: onthepike on May 05, 2010, 01:21:00 am
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.
Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: sownman on May 06, 2010, 04:52:57 pm
Thank you. Never heard of compatibility mode before. Cnage to gallery made fine.

Steve
Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: srobida on October 08, 2010, 06:36:09 am
I am looking for this solution ({ALB_INFOS}? want to remove "last added" ) in 1.5.8.
Title: Re: {ALB_INFOS}? want to remove "last added" but not &
Post by: Joachim Müller on October 08, 2010, 08:26:59 am
Don't ask for other versions (http://forum.coppermine-gallery.net/index.php/topic,24540.0.html)