Cannot position the image in the middle? Cannot position the image in the middle?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Cannot position the image in the middle?

Started by marpessa, March 07, 2009, 02:19:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marpessa


Hein Traag

Ed themes/yourtheme/theme.php, find$template_display_mediaand modify the section as you see fit. If you don't have that section in your custom theme, copy// 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?>of the file themes/yourtheme/theme.php and then edit as suggested above.

marpessa

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

Joachim Müller

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.