Advanced search  

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

Pages: [1]   Go Down

Author Topic: Decreasing space between thumbnails  (Read 3948 times)

0 Members and 1 Guest are viewing this topic.

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Decreasing space between thumbnails
« 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Decreasing space between thumbnails
« Reply #1 on: March 29, 2006, 10:23:36 pm »

link?
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Decreasing space between thumbnails
« Reply #2 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
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: Decreasing space between thumbnails
« Reply #3 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

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Decreasing space between thumbnails
« Reply #4 on: March 30, 2006, 06:46:49 am »

edit http://www.grafflix.org/flix/themes/tentacle/theme.php, find
Code: [Select]
// 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.
Logged

n3n

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 173
Re: Decreasing space between thumbnails
« Reply #5 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 :)
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.