need to format description need to format description
 

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

need to format description

Started by john123, March 22, 2006, 10:58:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

john123

I am sure this is a simple question with a simple answer but I can not find the solution on the forum.
I have add text to the description of the photo but it is formatted to show centrally - I wish all the text in the description to be formatted to the left.
Can anyone help me as to where and what I should alter?
Thanks John

Joachim Müller

post a link to your page for a start ::)

john123

Sorry - here it is

http://www.takingthelead.co.uk/cpg143/displayimage.php?album=4&pos=1

That is one of the pictures with description but there are a number of examples under "Breeds" and the dogs beginning "A". I just wish the text to be formatted to the left not centrally.

Thanks John

Joachim Müller

edit themes/yourtheme/theme.php, find?>and add before it into a new line// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

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

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





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" 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" align="left">
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;

john123

 :D :D Absolutely brilliant - exactly what I wanted - thanks
John