Different number of images in the series Different number of images in the series
 

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

Different number of images in the series

Started by Trianon, March 15, 2013, 08:14:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Trianon

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

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.

phill104

It is a mistake to think you can solve any major problems just with potatoes.

Trianon

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.

Αndré

Quote from: Trianon on March 16, 2013, 07:05:29 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?