coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: lawrence on July 02, 2004, 09:22:16 AM

Title: Description in the immediate view
Post by: lawrence on July 02, 2004, 09:22:16 AM
The description is aligned to the 'centre' in the thumbnail view which is the way I want.

However it is aligned to the 'left' in the immediate view.

Is there way to change it to 'centre' pls.

Thanks
Title: Re: Description in the immediate view
Post by: lawrence on July 02, 2004, 09:24:59 AM
Sorry for don't know how to edit the original post.

What I mean is intermediate view instead of immediate view.
Title: Re: Description in the immediate view
Post by: Joachim Müller on July 02, 2004, 09:27:46 AM
post a screenshot and highlight the section you want change. Note that you can customize your theme to make the ouput look like you want. Read the section about changing your theme in the documentation (http://coppermine.sourceforge.net/manual.php#creating) first. Please post questions related to the look and feel of your coppermine gallery in the proper board - this is not an installation issue, as your gallery already is installed and running as expected.

GauGau
Title: Re: Description in the immediate view
Post by: lawrence on July 02, 2004, 10:19:27 AM
Sorry for post the thread to the wrong place.

I have read the document as recommended and got no idea of solution.

I have gone through the theme.php file and think the quote below will be the place to change the alignment but no luck.

Quote// HTML template for intermediate image display
$template_display_picture = <<<EOT
       <tr>
               <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                       <table cellspacing="2" cellpadding="0" class="imageborder">
                               <tr>
                                       <td>
                                               {IMAGE}
                                               {ADMIN_MENU}
                                       </td>
                               </tr>
                       </table>
<!-- BEGIN img_desc -->
                       <table cellpadding="0" cellspacing="0" class="img_caption_table">
<!-- BEGIN title -->
                               <tr>
                                       <th>
                                               {TITLE}
                                       </th>
                               </tr>
<!-- END title -->
<!-- BEGIN caption -->
                               <tr>
                                       <td>
                                               {CAPTION}
                                       </td>
                               </tr>
<!-- END caption -->
                       </table>
<!-- END img_desc -->
               </td>
       </tr>

EOT;

Pls have a look on the screenshot to see what I am referring to. The text inside the red cycle is the one I want it to be shown in the middle.

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lufa.com.hk%2Fscreenshot01.jpg&hash=9381ca4712af6c0270eb53cd2eb7a136295c246e)

Thanks
Title: Re: Description in the immediate view
Post by: Joachim Müller on July 02, 2004, 11:58:57 AM
Did you actually modify <!-- BEGIN caption -->
                                <tr>
                                        <td>
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->
? Try changing it to<!-- BEGIN caption -->
                                <tr>
                                        <td align="center">
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->


GauGau
Title: Re: Description in the immediate view
Post by: lawrence on July 02, 2004, 12:05:50 PM
Thanks Gaugau!

It works.

The problem is i am searching for code of alignment to 'left' and thought I have to change that to 'centre' Don't know that the default 'left' is not coding there.

Thanks
Title: Re: Description in the immediate view
Post by: Joachim Müller on July 02, 2004, 01:04:12 PM
that's html standard: if no attribute is given, <td> (table cells) are aligned left, vertical align is default "middle", so <td> equals <td align="left" valign="middle"> (unless specified diferently using css).

GauGau
Title: Re: Description in the immediate view
Post by: lawrence on July 02, 2004, 06:52:48 PM
After i change the description to the centre, I change the title as well with no problem.

However, after that I found this

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lufa.com.hk%2Fscreenshot2.jpg&hash=d8ad04b1a4f791811bad0d8ac947c2a9e877d1b3)

The background of the title didn't move to the centre but shrink to the left instead.

What caused that and what's the remedy pls.

Thanks