Pictures sorting in lines inside one album - Page 2 Pictures sorting in lines inside one album - Page 2
 

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

Pictures sorting in lines inside one album

Started by qba, June 28, 2012, 11:18:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

Quote from: qba on July 01, 2012, 10:40:24 PM
I have no idea how to do it
What exactly is to do, except excluding the separator files from the gallery stats?

qba

Photo-separator actually is not visible in Last add album but has an effect on the rest photos in that album (in Last add album, in last add section on home page, in last add section in categories). Compare attached screens.

So to do is:
- exclude photo-separator from gallery stats
- exclude effect (impact) the photo-separator from Last add album and Last add section
- if its possible: after photo-separator make one line below free with high f.ex. 20 pix

Αndré

Quote from: qba on July 02, 2012, 09:43:23 AM
exclude effect (impact) the photo-separator from Last add album and Last add section

Quote from: Αndré on June 29, 2012, 09:21:21 AM
open include/functions.inc.php, find
switch($album) {
and above, add
$RESTRICTEDWHERE .= " AND filename NOT LIKE '%separator%' ";
(at two places in that file).

qba

Sorry, I overlooked it.
It works of course.

And is it possible or not?
Quoteafter photo-separator make one line below free with high f.ex. defined 20 pix or high=high of photo-separator

Αndré

Quote from: qba on July 02, 2012, 09:43:23 AM
exclude photo-separator from gallery stats
Open index.php, find
            $sql = "SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']}";

            if ($pic_filter) {
                $sql .= " AS p INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON a.aid = p.aid WHERE approved = 'YES' $pic_filter";
            } else {
                $sql .= " WHERE approved = 'YES'";
            }

and below, add
$sql .= " AND filename NOT LIKE '%separator%' ";


Quote from: qba on July 02, 2012, 09:43:23 AM
after photo-separator make one line below free with high f.ex. 20 pix
In that solution, find
            for ($j = 0; $j < $thumbcols; $j++) {
                echo $empty_cell;
            }

and replace with
            for ($j = 0; $j < $thumbcols; $j++) {
                echo str_replace('<td ', '<td height="20" ', $empty_cell);
            }

qba

All is OK  ;D

Thank you for your support  :D