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: Cannot position the image in the middle?  (Read 2362 times)

0 Members and 1 Guest are viewing this topic.

marpessa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Cannot position the image in the middle?
« on: March 07, 2009, 02:19:15 pm »

It's driving me insane, I cant align the intermediate image in the middle. Please help?

http://katieholmes.com/gallery/displayimage.php?album=lastup&cat=0&pos=4
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Cannot position the image in the middle?
« Reply #1 on: March 07, 2009, 04:39:37 pm »

Ed themes/yourtheme/theme.php, find
Code: [Select]
$template_display_mediaand modify the section as you see fit. If you don't have that section in your custom theme, copy
Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
from themes/sample/theme.php into a new line before
Code: [Select]
?>of the file themes/yourtheme/theme.php and then edit as suggested above.
Logged

marpessa

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Cannot position the image in the middle?
« Reply #2 on: March 07, 2009, 04:43:04 pm »

Thanks for thr quick reply. I just did that and it didnt work :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cannot position the image in the middle?
« Reply #3 on: March 08, 2009, 11:57:28 am »

Post your changes instead of just saying "didn't work". In fact, the term "didn't work" doesn't mean anything nor does it help us in helping you. Ideally, zip up your custom theme folder and attach the zip to your next posting.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.