4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: rbfabbri on March 29, 2008, 02:13:03 AM

Title: How centralize thumbnails in the vertical?
Post by: rbfabbri 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!!!!
Title: Re: How centralize thumbnails in the vertical?
Post by: KurtW 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
Title: Re: How centralize thumbnails in the vertical?
Post by: rbfabbri 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!!!
Title: Re: How centralize thumbnails in the vertical?
Post by: KurtW 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
Title: Re: How centralize thumbnails in the vertical?
Post by: rbfabbri on March 30, 2008, 07:36:49 PM
Great KurtW!

Works perfectly!

Thanks!!!!