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: Remove album information in index.php  (Read 2569 times)

0 Members and 1 Guest are viewing this topic.

dke

  • Guest
Remove album information in index.php
« on: January 12, 2008, 06:07:40 pm »

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 :
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) : "") . (($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?
Logged

Nibbler

  • Guest
Re: Remove album information in index.php
« Reply #1 on: January 12, 2008, 06:09:33 pm »

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

dke

  • Guest
Re: Remove album information in index.php
« Reply #2 on: January 12, 2008, 06:14:50 pm »

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

dke

  • Guest
Re: Remove album information in index.php
« Reply #3 on: January 12, 2008, 06:17:56 pm »

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?
Logged

Nibbler

  • Guest
Re: Remove album information in index.php
« Reply #4 on: January 12, 2008, 06:52:50 pm »

Code: [Select]
$alb_list[$alb_idx]['album_info'] = '';
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 17 queries.