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 [2]   Go Down

Author Topic: Pictures sorting in lines inside one album  (Read 7941 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Pictures sorting in lines inside one album
« Reply #20 on: July 02, 2012, 09:26:27 am »

I have no idea how to do it
What exactly is to do, except excluding the separator files from the gallery stats?
Logged

qba

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: Pictures sorting in lines inside one album
« Reply #21 on: July 02, 2012, 09:43:23 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Pictures sorting in lines inside one album
« Reply #22 on: July 02, 2012, 09:54:30 am »

exclude effect (impact) the photo-separator from Last add album and Last add section

open include/functions.inc.php, find
Code: [Select]
switch($album) {and above, add
Code: [Select]
$RESTRICTEDWHERE .= " AND filename NOT LIKE '%separator%' ";(at two places in that file).
Logged

qba

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: Pictures sorting in lines inside one album
« Reply #23 on: July 02, 2012, 10:07:04 pm »

Sorry, I overlooked it.
It works of course.

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: Pictures sorting in lines inside one album
« Reply #24 on: July 03, 2012, 08:41:25 am »

exclude photo-separator from gallery stats
Open index.php, find
Code: [Select]
            $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
Code: [Select]
$sql .= " AND filename NOT LIKE '%separator%' ";

after photo-separator make one line below free with high f.ex. 20 pix
In that solution, find
Code: [Select]
            for ($j = 0; $j < $thumbcols; $j++) {
                echo $empty_cell;
            }
and replace with
Code: [Select]
            for ($j = 0; $j < $thumbcols; $j++) {
                echo str_replace('<td ', '<td height="20" ', $empty_cell);
            }
Logged

qba

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 56
Re: Pictures sorting in lines inside one album
« Reply #25 on: July 03, 2012, 09:55:29 pm »

All is OK  ;D

Thank you for your support  :D
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.019 seconds with 20 queries.