forum.coppermine-gallery.net
No Support => Modifications/Add-Ons/Hacks => Mods: Miscellaneous => Topic started 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
-
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);
-
that did it.
thanks, Nibbler.
8)
-g
-
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....
-
Anyone could reply to my message below, and help me?
Thank you!
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....
-
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) : "");
-
Thanks, this one workes great :-)
-
Great mod! is there a way to also remove the "picture count" on the albums?
-
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]
-
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.
-
Thank you. Never heard of compatibility mode before. Cnage to gallery made fine.
Steve
-
I am looking for this solution ({ALB_INFOS}? want to remove "last added" ) in 1.5.8.
-
Don't ask for other versions (http://forum.coppermine-gallery.net/index.php/topic,24540.0.html)