forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started 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.
-
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 = '';
}
-
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.
-
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?
-
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.
-
Thank you. Same lines with the code you gave me before? I know nothing about writing php.