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: How to Remove Number of Files  (Read 5520 times)

0 Members and 1 Guest are viewing this topic.

Wingspar

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
How to Remove Number of Files
« 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.
« Last Edit: November 10, 2005, 06:02:48 pm by Nibbler »
Logged
Gary
Will Fly for Food

Nibbler

  • Guest
Re: How to Remove Number of Files
« Reply #1 on: November 10, 2005, 12:14:55 pm »

In index.php, there are 4 lines that read:

Code: [Select]
$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:

Code: [Select]
$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

Code: [Select]
    } else {
        $statistics = '';
    }
}

and change to

Code: [Select]
    } else {
        $statistics = '';
    }
    if (!GALLERY_ADMIN_MODE) $statistics = '';
}
Logged

Wingspar

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: How to Remove Number of Files
« Reply #2 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.
Logged
Gary
Will Fly for Food

Wingspar

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: How to Remove Number of Files
« Reply #3 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?
Logged
Gary
Will Fly for Food

Nibbler

  • Guest
Re: How to Remove Number of Files
« Reply #4 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.
Logged

Wingspar

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: How to Remove Number of Files
« Reply #5 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.
Logged
Gary
Will Fly for Food
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.