coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: cip6791 on November 04, 2008, 07:46:10 PM

Title: Changing the display image page.
Post by: cip6791 on November 04, 2008, 07:46:10 PM
Hi


I would like to move the intermediate image to the left, the comments under the image, and all the other info to the right of the image. I looked around, but i m not sure where to start. Can anybody help?

thank you
Title: Re: Changing the display image page.
Post by: cip6791 on November 04, 2008, 07:48:13 PM
i m using the water drop template if it makes any difference.
Title: Re: Changing the display image page.
Post by: Joachim Müller on November 04, 2008, 11:20:03 PM
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: Changing the display image page.
Post by: cip6791 on November 05, 2008, 06:24:30 AM
Got it.

I was just having problems with the html code. Didn't realize that it is all in the sample.

ty
Title: Re: Changing the display image page.
Post by: Joachim Müller on November 05, 2008, 10:04:13 AM
Issue solved then?
Title: Re: Changing the display image page.
Post by: cip6791 on November 11, 2008, 08:11:57 AM
Not really. :)


// HTML template for intermediate image display
$template_display_media = <<<EOT

<div>{TITLE}</div>
<div>{IMAGE}</div>
<div>{ADMIN_MENU}</div>
<div>{CAPTION}</div>
<div> 1</div>
  EOT;

Ok ... this is what I have on my theme.php. I plan on positioning the divs later. But I can't seem to be able to add the comments, filmstrip, file info and rating. The items show up. If I copy the HTML code for filmstrip let's say, I get an error. I did something like this:


// HTML template for intermediate image display
$template_display_media = <<<EOT

<div>{TITLE}</div>
<div>{IMAGE}</div>
<div>{ADMIN_MENU}</div>
<div>{CAPTION}</div>
<div> 1</div>
  EOT;
               
// HTML template for filmstrip display
$template_film_strip = <<<EOT

        <tr>
         <td valign="top" style="background-image: url({TILE1});"><img src="{TILE1}" alt="" border="0" /></td>
        </tr>
        <tr>
        <td valign="bottom" class="thumbnails" align="center">
          <table width="100%" cellspacing="0" cellpadding="3" border="0">
              <tr>
                 <td width="50%"></td>
                 {THUMB_STRIP}
                 <td width="50%"></td>
              </tr>
          </table>
        </td>
        </tr>
        <tr>
         <td valign="top" style="background-image: url({TILE2});"><img src="{TILE2}" alt="" border="0" /></td>
        </tr>
<!-- BEGIN thumb_cell -->
                <td valign="top" align="center">
                                        <a href="{LINK_TGT}">{THUMB}</a>
                                        {CAPTION}
                                        {ADMIN_MENU}
                </td>
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" align="center" >&nbsp;</td>
<!-- END empty_cell -->

EOT;



Is this correct?
Title: Re: Changing the display image page.
Post by: Joachim Müller on November 11, 2008, 08:26:59 AM
Coppermine is table-driven. Like it or not, that's how it works today. The comment lines like<!-- BEGIN thumb_cell -->actually do something, so yes: you need to keep and populate them.