Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: {ALB_INFOS}? want to remove "last added" but not &  (Read 23042 times)

0 Members and 1 Guest are viewing this topic.

g0b0t

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
{ALB_INFOS}? want to remove "last added" but not &
« 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
« Last Edit: April 02, 2006, 10:30:38 pm by Nibbler »
Logged

Nibbler

  • Guest
{ALB_INFOS}? want to remove "last added" but not &
« Reply #1 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);
Logged

g0b0t

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
{ALB_INFOS}? want to remove "last added" but not &
« Reply #2 on: January 12, 2004, 11:01:37 pm »

that did it.
thanks, Nibbler.
 8)
-g
Logged

boolbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://www.boolbo.com
Do not sohw the date under the thumbnails in last additions
« Reply #3 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....
Logged
---
Boolbo.com
about photography and seeing
http://www.boolbo.com
http://www.images.boolbo.com

boolbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • http://www.boolbo.com
Re: Do not sohw the date under the thumbnails in last additi
« Reply #4 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....
Logged
---
Boolbo.com
about photography and seeing
http://www.boolbo.com
http://www.images.boolbo.com

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: {ALB_INFOS}? want to remove "last added" but not &
« Reply #5 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) : "");


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

kryspin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: {ALB_INFOS}? want to remove "last added" but not &
« Reply #6 on: December 13, 2007, 08:27:13 pm »

Thanks, this one workes great :-)
Logged

dke

  • Guest
Re: {ALB_INFOS}? want to remove "last added" but not &
« Reply #7 on: January 12, 2008, 02:59:46 am »

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

sownman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Removing file count and last add from Album view
« Reply #8 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]
« Last Edit: May 05, 2010, 06:41:07 am by Joachim Müller »
Logged

onthepike

  • Guest
Re: Removing file count and last add from Album view
« Reply #9 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.
Logged

sownman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: {ALB_INFOS}? want to remove "last added" but not &
« Reply #10 on: May 06, 2010, 04:52:57 pm »

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

Steve
Logged

srobida

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: {ALB_INFOS}? want to remove "last added" but not &
« Reply #11 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 21 queries.