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

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

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