coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Wingspar on November 10, 2005, 02:15:33 AM

Title: How to Remove Number of Files
Post by: Wingspar on November 10, 2005, 02:15:33 AM
How do I remove the "number of files" and "last one added" that appears next to thumbnails?  I have " Display number of views below the thumbnail" checked No, and I have "Display number of comments below the thumbnail" checked No".

How do I get "55 files in 10 albums and 2 categories with 0 comments viewed 8 times" to not show?

These are things that I like seeing in Admin mode, but Not viewable to the public.
Title: Re: How to Remove Number of Files
Post by: Nibbler on November 10, 2005, 12:14:55 PM
In index.php, there are 4 lines that read:

$alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "");

Change that to:

$alb_list[$alb_idx]['album_info'] = GALLERY_ADMIN_MODE ? (sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "")) : '';

And for the stats line, find this code in index.php

    } else {
        $statistics = '';
    }
}


and change to

    } else {
        $statistics = '';
    }
    if (!GALLERY_ADMIN_MODE) $statistics = '';
}
Title: Re: How to Remove Number of Files
Post by: Wingspar on November 10, 2005, 05:57:37 PM
Thank you.  :)  That looks so much better.  More I'd like to do with that, but I'll ask that question after I get the file deleting thing sorted out.
Title: Re: How to Remove Number of Files
Post by: Wingspar on November 26, 2005, 05:10:50 PM
Later on this week, I am going to upgrade from 1.3.4 to 1.4.2.  Can I use my existing index.php that I have made these changes to, or do I need to make these same changes to the new index.php?
Title: Re: How to Remove Number of Files
Post by: Nibbler on November 26, 2005, 05:55:52 PM
You need to re-apply the changes to the new file. The code you need to change is slightly different in 1.4 but the principle is the same.
Title: Re: How to Remove Number of Files
Post by: Wingspar on November 26, 2005, 08:19:19 PM
Thank you.  Same lines with the code you gave me before?  I know nothing about writing php.