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: Modify Latest Additions code  (Read 2224 times)

0 Members and 1 Guest are viewing this topic.

TiNUZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Modify Latest Additions code
« on: September 01, 2010, 01:17:44 pm »

Hi All,

I've tried to find an answer to my questions by using the search, but no results....

I'm trying to remove the date from the 'latest additions' album, but I cannot find the code for it.
What file do I have to modify ?

http://www.photodump.nl/micropix/gallery/index.php

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15757
Re: Modify Latest Additions code
« Reply #1 on: September 01, 2010, 04:16:00 pm »

Open include/functions.inc.php, search for
Code: [Select]
case 'lastup':scroll down ~ 40 lines until you find
Code: [Select]
build_caption($rowset, array('ctime'));and replace that line with
Code: [Select]
build_caption($rowset);
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4659
    • Windsurf.me
Re: Modify Latest Additions code
« Reply #2 on: September 01, 2010, 09:21:28 pm »

Is this not themeable Andre?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15757
Re: Modify Latest Additions code
« Reply #3 on: September 02, 2010, 08:30:16 am »

Maybe it's possible. But I doubt that this would be an easy modification. Could be achieved with a plugin though.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Modify Latest Additions code
« Reply #4 on: September 02, 2010, 12:33:11 pm »

I think that's to be done in the lang file (array $lang_date)

for the lastup you need to modify
Code: [Select]
$lang_date['lastup'] = '%B %d, %Y';comment it out and replace with
Code: [Select]
$lang_date['lastup'] = '';
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.