coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: TiNUZ on September 01, 2010, 01:17:44 PM

Title: Modify Latest Additions code
Post by: TiNUZ 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

Title: Re: Modify Latest Additions code
Post by: ΑndrĂ© on September 01, 2010, 04:16:00 PM
Open include/functions.inc.php, search for
case 'lastup':
scroll down ~ 40 lines until you find
build_caption($rowset, array('ctime'));
and replace that line with
build_caption($rowset);
Title: Re: Modify Latest Additions code
Post by: phill104 on September 01, 2010, 09:21:28 PM
Is this not themeable Andre?
Title: Re: Modify Latest Additions code
Post by: ΑndrĂ© 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.
Title: Re: Modify Latest Additions code
Post by: Stramm 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
$lang_date['lastup'] = '%B %d, %Y';
comment it out and replace with
$lang_date['lastup'] = '';