Advanced search  

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

Pages: [1]   Go Down

Author Topic: Remove album information in index.php  (Read 2518 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.017 seconds with 18 queries.