forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Trianon on March 15, 2013, 08:14:50 am

Title: Different number of images in the series
Post by: Trianon 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.
Title: Re: Different number of images in the series
Post by: phill104 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.
Title: Re: Different number of images in the series
Post by: Αndré 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.
Title: Re: Different number of images in the series
Post by: phill104 on March 15, 2013, 12:22:20 pm
Not pretty but a neat idea.
Title: Re: Different number of images in the series
Post by: Trianon 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.
Title: Re: Different number of images in the series
Post by: Αndré 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?