forum.coppermine-gallery.net

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
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);
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
Code: [Select]
$lang_date['lastup'] = '%B %d, %Y';comment it out and replace with
Code: [Select]
$lang_date['lastup'] = '';