Description in the immediate view Description in the immediate view
 

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

Description in the immediate view

Started by lawrence, July 02, 2004, 09:22:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lawrence

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

lawrence

Sorry for don't know how to edit the original post.

What I mean is intermediate view instead of immediate view.

Joachim Müller

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 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

lawrence

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

Joachim Müller

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

lawrence

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

Joachim Müller

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

lawrence

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