coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Dr Preacox on May 26, 2006, 04:07:58 PM

Title: Aligning of text
Post by: Dr Preacox on May 26, 2006, 04:07:58 PM
just a simple question, see this link here http://www.dc-6.com/gallery/displayimage.php?album=2&pos=23

my text isn't aligned to the left, just wondering where I can edit this, it isn't in the theme.php so I need to add it from the includes/themes.inc.php but I dont know what section I need to copy to my themes.php so I can align the text to the left,

Thanxs, Sam
Title: Re: Aligning of text
Post by: Dr Preacox on May 26, 2006, 08:43:27 PM
also is there a way to make the memberlist public so evertyone can view it
Title: Re: Aligning of text
Post by: Joachim Müller on May 27, 2006, 12:43:52 AM
1) One issue per thread! Please review the board rules you agreed to respect when signing up.
2) Please read the sticky thread on the board I'm moving your posting to
Title: Re: Aligning of text
Post by: Dr Preacox on May 27, 2006, 10:44:00 AM
i'v read all threads, but i still cant find anything relating to aligning images descriptions
Title: Re: Aligning of text
Post by: Joachim Müller on May 27, 2006, 10:52:59 AM
There is no thread named "find out about alignement of text", but there are several that explain how to modify your custom theme. The default behaviour is centered alignement for the title and caption of the image description. If you want it otherwise, find the corresponding section in the sample theme, copy it into your custom theme and modify it as you see fit (this way overriding the default behaviour). In your case, paste // 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"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
into themes/yourtheme/theme.php into a new line before ?>Then replace the <center>-tags as you see fit. Finally, save your changes and upload the modified file to your server.