Changing the display image page. Changing the display image page.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Changing the display image page.

Started by cip6791, November 04, 2008, 07:46:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cip6791

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

cip6791

i m using the water drop template if it makes any difference.


cip6791

Got it.

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

ty

Joachim Müller


cip6791

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?

Joachim Müller

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.