Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How can I put the images and thumbnails into a table?  (Read 2832 times)

0 Members and 1 Guest are viewing this topic.

gonzalo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
How can I put the images and thumbnails into a table?
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How can I put the images and thumbnails into a table?
« Reply #1 on: July 01, 2004, 08:17:52 am »

in displayimage.php, find
Code: [Select]
            $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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.