left aligment -main table?? left aligment -main table??
 

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]

Main Menu

left aligment -main table??

Started by pixel_killer, October 25, 2005, 11:01:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pixel_killer

Ive made a skin / sort of and would like to get coppermines tables to align left instead of centre- im not altogether famimilar with php but my html is good. I found the stuff i need is in template.php not in the .html or the .css but my experiments with changing this have been messy - some tables align left others far right(including the main veiw of image)- using the classic as a base for the template. but i cant figure out which bits of the .php file control which elements! ???

Joachim Müller

post a link to your site and attach a screenshot with a sketch that shows what exactly you want aligned in what way; there's no saying what you need to edit if you're not more specific.


pixel_killer

ok - the site is at
http://www.jewelsoftheharem.com.au/copper/cpg135
heres a screen shot-(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.jewelsoftheharem.com.au%2Fimages%2Fjewelsgallery.jpg&hash=eb3ed0c86540e3fe3c202d08af9a699cee6e19e8)

Joachim Müller

  • alignment of the intermediate pic: edit themes/yourtheme/theme.php, find// HTML template for intermediate image display
    $template_display_picture = <<<EOT
            <tr>
                    <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                            <table cellspacing="2" cellpadding="0" class="imageborder">
                                    <tr>
                                            <td align="center">
                                                    {IMAGE}
                                                    {ADMIN_MENU}
                                            </td>
                                    </tr>
                            </table>
    <!-- BEGIN img_desc -->
                            <table cellpadding="0" cellspacing="0" class="img_caption_table">
    <!-- BEGIN title -->
                                    <tr>
                                            <th>
                                                    {TITLE}
                                            </th>
                                    </tr>
    <!-- END title -->
    <!-- BEGIN caption -->
                                    <tr>
                                            <td>
                                                    {CAPTION}
                                            </td>
                                    </tr>
    <!-- END caption -->
                            </table>
    <!-- END img_desc -->
                    </td>
            </tr>

    EOT;
    and replace with// HTML template for intermediate image display
    $template_display_picture = <<<EOT
            <tr>
                    <td align="left" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                            <table cellspacing="2" cellpadding="0" class="imageborder">
                                    <tr>
                                            <td align="left">
                                                    {IMAGE}
                                                    {ADMIN_MENU}
                                            </td>
                                    </tr>
                            </table>
    <!-- BEGIN img_desc -->
                            <table cellpadding="0" cellspacing="0" class="img_caption_table">
    <!-- BEGIN title -->
                                    <tr>
                                            <th>
                                                    {TITLE}
                                            </th>
                                    </tr>
    <!-- END title -->
    <!-- BEGIN caption -->
                                    <tr>
                                            <td>
                                                    {CAPTION}
                                            </td>
                                    </tr>
    <!-- END caption -->
                            </table>
    <!-- END img_desc -->
                    </td>
            </tr>

    EOT;

  • alignment and width of filmstrip: http://forum.coppermine-gallery.net/index.php?topic=21854.msg99889#msg99889
  • width of the nav bar: reduce "Width of the main table (pixels or %)" in coppermine's config

pixel_killer

thankyou - left alignment acheived -  :D
i dont want to change the sige of the thumbnail veiwer just make its background  black

Joachim Müller

the little thumbnails at the bottom are called "filmstrip" in coppermine terms. Edit themes/yourtheme/theme.php, find// HTML template for filmstrip display
$template_film_strip = <<<EOT

        <tr>
         <td valign="top" background='themes/classic/images/tile.gif' align="center" height='30'>&nbsp;</td>
        </tr>
        <tr>
        <td valign="bottom" class="thumbnails" align="center">
          {THUMB_STRIP}
        </td>
        </tr>
        <tr>
         <td valign="top" background='themes/classic/images/tile.gif' align="center" height='30'>&nbsp;</td>
        </tr>
<!-- BEGIN thumb_cell -->
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
                                        {CAPTION}
                                        {ADMIN_MENU}
<!-- END thumb_cell -->
<!-- BEGIN empty_cell -->
                <td valign="top" align="center" >1&nbsp;</td>
<!-- END empty_cell -->

EOT;
and edit accordingly by adding the attributestyle="background-color:black"to the <td> tags.