coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: john123 on March 22, 2006, 10:58:30 PM

Title: need to format description
Post by: john123 on March 22, 2006, 10:58:30 PM
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
Title: Re: need to format description
Post by: Joachim Müller on March 23, 2006, 09:08:19 AM
post a link to your page for a start ::)
Title: Re: need to format description
Post by: john123 on March 23, 2006, 01:19:19 PM
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
Title: Re: need to format description
Post by: Joachim Müller on March 24, 2006, 07:20:32 AM
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;
Title: Re: need to format description
Post by: john123 on March 24, 2006, 12:39:01 PM
 :D :D Absolutely brilliant - exactly what I wanted - thanks
John