coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: n3n on March 29, 2006, 06:13:15 PM

Title: Decreasing space between thumbnails
Post by: n3n on March 29, 2006, 06:13:15 PM
Hi, i would like to decrease the space between thumbnails, what css class or file do i have to edit, cant seem to find it on the board or in the docs.
Title: Re: Decreasing space between thumbnails
Post by: Joachim Müller on March 29, 2006, 10:23:36 PM
link?
Title: Re: Decreasing space between thumbnails
Post by: lordprodigy on March 29, 2006, 10:36:59 PM
Hard to tell with no visuals...

You can increase the number of thumb rows and columns and if your theme is fixed width. That would bring them closer.

If you dont want more thumbs, then save your current page on your computer and open in in your html editor. Then see which css attribute is controling the thumbnails in your specific theme and modify accordingly.

You may have to edit the thumbs display function in theme.php
Title: Re: Decreasing space between thumbnails
Post by: n3n on March 30, 2006, 02:06:54 AM
Tnx for the replies. I tried to see wich css class is controlling the thumb, but then i get the img.image, and the tdbody tag.

You can check it out at www.grafflix.org/flix/index.php

Title: Re: Decreasing space between thumbnails
Post by: Joachim Müller on March 30, 2006, 06:46:49 AM
edit http://www.grafflix.org/flix/themes/tentacle/theme.php, find// HTML template for thumbnails display
$template_thumbnail_view = <<<EOT

<!-- BEGIN header -->
        <tr>
<!-- END header -->
<!-- BEGIN thumb_cell -->
        <td valign="top" class="thumbnails" width ="{CELL_WIDTH}" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                                <td align="center">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                        {CAPTION}
                                        {ADMIN_MENU}<br />
                                </td>
                        </tr>
                </table>
        </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" class="thumbnails" align="center">&nbsp;</td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr>
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{THUMB_COLS}">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                        {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="17" alt="" /><br />
<!-- END spacer -->

EOT;
and remove the separator rows by commenting out the html markup (do not remove the comments that already exist, they're needed).

Side note: you appear to have removed "catlist" and "alblist" from "the content of the main page" in coppermine's config, which is not recommended and will only work as long as you have a very small number of pics in your database.
Title: Re: Decreasing space between thumbnails
Post by: n3n on March 30, 2006, 11:54:45 AM
Tnx alot GauGau, gonna mod it.

I know ive removed the alb and catlist, this is because I am using a custom menu (which i havent added to this theme yet), tnx for
warning me :)