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: Description in the immediate view  (Read 5966 times)

0 Members and 1 Guest are viewing this topic.

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Description in the immediate view
« 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
Logged

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Description in the immediate view
« Reply #1 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Description in the immediate view
« Reply #2 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 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
Logged

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Description in the immediate view
« Reply #3 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.

(http://www.lufa.com.hk/screenshot01.jpg)

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Description in the immediate view
« Reply #4 on: July 02, 2004, 11:58:57 am »

Did you actually modify
Code: [Select]
<!-- BEGIN caption -->
                                <tr>
                                        <td>
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->
? Try changing it to
Code: [Select]
<!-- BEGIN caption -->
                                <tr>
                                        <td align="center">
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->

GauGau
Logged

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Description in the immediate view
« Reply #5 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Description in the immediate view
« Reply #6 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
Logged

lawrence

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Description in the immediate view
« Reply #7 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

(http://www.lufa.com.hk/screenshot2.jpg)

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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.