Remove album information in index.php Remove album information in index.php
 

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]

Main Menu

Remove album information in index.php

Started by dke, January 12, 2008, 06:07:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dke

Hi,

I need to reduce the queries on the album pages, i though i could remove the information like "last added" and also how many pictures each album has.

I need to modify this 4x in index.php : $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : "") . (($CONFIG['link_pic_count'] && $link_pic_count > 0 ) ? sprintf(", {$lang_list_albums['n_link_pictures']},  {$lang_list_albums['total_pictures']}", $link_pic_count, $count + $link_pic_count) : "");

When i modify it index wont load so im guessing i do something terribly wrong, can someone hepl me?

Nibbler

Modifying that won't reduce the number of queries. The stats are still calculated even if you don't display them.

dke

really? how deep do i have to dig to remove the queries fully?

dke

Sorry to double post.

On a cosmetic level, how do i modify the code in my original post to not generate the display of the album information?

Nibbler