Author Topic: How centralize thumbnails in the vertical?  (Read 5265 times)

0 Members and 1 Guest are viewing this topic.

Offline rbfabbri

  • Newbie
  • *
  • Posts: 27
    • View Profile
How centralize thumbnails in the vertical?
« on: March 29, 2008, 02:13:03 AM »
Hi,

I have thumbs of different sizes in my gallery (width x height) , how i centralize them in the cells? In the vertical.

Thanks!!!!
« Last Edit: March 29, 2008, 04:09:01 AM by rbfabbri »

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How centralize thumbnails in the vertical?
« Reply #1 on: March 30, 2008, 08:54:44 AM »
Hi,

in templates/default/thumbnail_bit.html:

Code: [Select]
<center>
{thumbnail}<br />
<b>{image_name}</b> {if image_is_new}<sup class="new">{lang_new}</sup>{endif image_is_new} ({user_name_link})
<br />
<a href="{cat_url}">{cat_name}</a><br />
{if allow_comments}{lang_comments} {image_comments}{endif allow_comments}<br />
{lightbox_button}
</center>


Kurt

Offline rbfabbri

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How centralize thumbnails in the vertical?
« Reply #2 on: March 30, 2008, 06:54:09 PM »
Kurt, this only centralize in the horizontal.


I would not like that they shows in the top but in the middle of the cell.

Thanks!!!

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: How centralize thumbnails in the vertical?
« Reply #3 on: March 30, 2008, 07:13:32 PM »
ups... sorry

in categories.php, lightbox.php, search.php
search:
Code: [Select]
    $thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n"; replace with:
Code: [Select]
    $thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"middle\">\n";

in index.php
search:
Code: [Select]
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";replace with:
Code: [Select]
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"middle\">\n";


KurtW

Offline rbfabbri

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: How centralize thumbnails in the vertical?
« Reply #4 on: March 30, 2008, 07:36:49 PM »
Great KurtW!

Works perfectly!

Thanks!!!!