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: Different number of images in the series  (Read 4184 times)

0 Members and 1 Guest are viewing this topic.

Trianon

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Different number of images in the series
« on: March 15, 2013, 08:14:50 am »

Can we conclude the page image, instead of (pic3), as in (pic5).
1. No cells, 2. with different numbers of images in series.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Different number of images in the series
« Reply #1 on: March 15, 2013, 10:19:26 am »

To acomplish that you would need to substantially re-write the theme. The current theme is based on tabels which does not lend itself to that kind of layout easilly. So you would need to switch to a div based layout and so far as I am aware there is no current theme that is capable of that. Sorry.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Different number of images in the series
« Reply #2 on: March 15, 2013, 11:43:17 am »

Phill, it's maybe easier than you think, at least if I understood the question correctly.

Trianon, do you want to get rid of the cells or is it okay if there are no cells visible (means, hide the cell borders)? If so, we just need to uncouple the table rows. The probably most easiest and dirtiest way is to add a new table to each thumbnail row. Something like
Quote
<table>
    <tr>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
        <td></td>
    </tr>
</table>
will become
Quote
<table>
    <tr>
        <td>
            <table>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

Result if you align everything centered: your last row with fewer images than the prior rows looks like in your screenshot (pic5). This can be accomplished my modifying the function theme_display_thumbnails in your theme's theme.php file.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Different number of images in the series
« Reply #3 on: March 15, 2013, 12:22:20 pm »

Not pretty but a neat idea.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Trianon

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Different number of images in the series
« Reply #4 on: March 16, 2013, 07:05:29 am »

Andre, Very true, I had a different gallery program and did, but the gallery was just in html and there it was easier to correct. And here requires great skill.
Is it possible to sort images on the page for each row to create the "next line" - this means that the image output continues on a new line. Maybe so you can specify a different number of images in each row.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Different number of images in the series
« Reply #5 on: March 19, 2013, 11:27:59 am »

Is it possible to sort images on the page for each row to create the "next line" - this means that the image output continues on a new line. Maybe so you can specify a different number of images in each row.
Coppermine is designed to use a fixed value of rows and columns (means, fixed number of image per row and fixed number of rows per page). It's not possible to display e.g. two pictures at the first line, five pictures at the second line, three pictures at the third line and so on, at least not without code modification.

Did I understood your initial question correctly, that you want to center the images of the last row, if the rows doesn't contain the maximum number of possible images?
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.