Advanced search  

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

Pages: [1]   Go Down

Author Topic: left aligment -main table??  (Read 3740 times)

0 Members and 1 Guest are viewing this topic.

pixel_killer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
left aligment -main table??
« on: October 25, 2005, 11:01:56 am »

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! ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: left aligment -main table??
« Reply #1 on: October 25, 2005, 06:58:10 pm »

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.

Logged

pixel_killer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: left aligment -main table??
« Reply #2 on: October 26, 2005, 03:12:00 am »

ok - the site is at
 http://www.jewelsoftheharem.com.au/copper/cpg135
 heres a screen shot-(http://www.jewelsoftheharem.com.au/images/jewelsgallery.jpg)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: left aligment -main table??
« Reply #3 on: October 26, 2005, 06:18:42 am »

  • alignment of the intermediate pic: edit themes/yourtheme/theme.php, find
    Code: [Select]
    // HTML template for intermediate image display[/li][/list]
    $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
    Code: [Select]
    // 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
Logged

pixel_killer

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: left aligment -main table??
« Reply #4 on: October 26, 2005, 08:37:25 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: left aligment -main table??
« Reply #5 on: October 26, 2005, 08:50:41 am »

the little thumbnails at the bottom are called "filmstrip" in coppermine terms. Edit themes/yourtheme/theme.php, find
Code: [Select]
// 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 attribute
Code: [Select]
style="background-color:black"to the <td> tags.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.