coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: gonzalo on July 01, 2004, 02:33:13 AM

Title: How can I put the images and thumbnails into a table?
Post by: gonzalo on July 01, 2004, 02:33:13 AM
Hi to everyone!

I would like to put every image and thumbnails into a table. I want to use a special border for all images so they could look nice.

For example:

<table>
(here goes the code that makes the thumbnails an images appear)
</table>

Where can I edit this?

Is it in displayimage.php?
Thanks in advance!!!
;)
Gonzalo
Title: Re: How can I put the images and thumbnails into a table?
Post by: Joachim Müller on July 01, 2004, 08:17:52 AM
in displayimage.php, find             $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
        } else {
            $pic_html = "<img src=\"" . $picture_url . "\" {$image_size['geom']} class=\"image\" border=\"0\" /><br />\n";
        }
    } elseif ($mime_content['content']=='document') {
        $pic_html = "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
    } else {
            $pic_html = "<object {$image_size['whole']}><param name=\"autostart\" value=\"true\"><param name=\"src\" value=\"". $picture_url . "\"><embed {$image_size['whole']} src=\"". $picture_url . "\" autostart=\"true\"></embed></object><br />\n";
    }
and edit accordingly. Putting it into an additional table is not necessary imo, as it already exists within a table cell. Better edit the css properties of that particular table cell imo.

GauGau