How to Remove Number of Files How to Remove Number of Files
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to Remove Number of Files

Started by Wingspar, November 10, 2005, 02:15:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wingspar

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.
Gary
Will Fly for Food

Nibbler

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 = '';
}

Wingspar

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.
Gary
Will Fly for Food

Wingspar

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?
Gary
Will Fly for Food

Nibbler

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.

Wingspar

Thank you.  Same lines with the code you gave me before?  I know nothing about writing php.
Gary
Will Fly for Food