coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: fareforce on September 24, 2006, 06:33:36 PM

Title: Intermediate Pictures not centered. Help!
Post by: fareforce on September 24, 2006, 06:33:36 PM
I have two installations of CPG, both with the same problem.

One is http://www.onlyalaska.com/photo/ (http://www.onlyalaska.com/photo/)
The other is http://www.alaskastudio.com/gallery/ (http://www.alaskastudio.com/gallery/)

Both use the classic theme. OnlyAlaska has only had the template.html modified. I left everything the same, just added to the begining, and end of it. AlaskaStudio has template.html changed, css file, and has custome header and footers. OnlyAlaska has the copperad plugin installed. Both are CPG1.4.9

Ok, now the problem. When ever you click on an thumbnail to view, and it goes to the Intermediate Image, it is left justified, not centered. I have looked through the code, and can not find where this is spawning from. I tried adding the following into theme.php (classic has a blank theme.php), but it did not change anything:

// 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;


Does anyone know where I am going wrong?
Title: Re: Intermediate Pictures not centered. Help!
Post by: Sami on September 24, 2006, 06:43:23 PM
you sould remove text-align: left; from td at the very first line of http://www.onlyalaska.com/style.css


off topic
Why are you using default banner of copperad instead of yours !?
Title: Re: Intermediate Pictures not centered. Help!
Post by: fareforce on September 24, 2006, 07:41:56 PM
Quote from: Sami on September 24, 2006, 06:43:23 PM
you sould remove text-align: left; from td at the very first line of http://www.onlyalaska.com/style.css
Hmm.. I can't.. It will break the template.. Can you think of something else to fix it? What is causing it on AlaskaStudio?

Quote
off topic
Why are you using default banner of copperad instead of yours !?
Havn't got that far yet.. =) I only want to break one thing at a time.. lol
Title: Re: Intermediate Pictures not centered. Help!
Post by: fareforce on September 24, 2006, 07:51:48 PM
Quote from: fareforce on September 24, 2006, 07:41:56 PM
Hmm.. I can't.. It will break the template.. Can you think of something else to fix it?

Ok.. I take that back.. I safley removed it..  But what is causing it on AlaskaStudio.com? I can't find anything..
Title: Re: Intermediate Pictures not centered. Help!
Post by: Sami on September 24, 2006, 08:12:07 PM
Quote from: fareforce on September 24, 2006, 07:51:48 PM
But what is causing it on AlaskaStudio.com? I can't find anything..

Shop mod , The table is too wide
Title: Re: Intermediate Pictures not centered. Help!
Post by: fareforce on September 24, 2006, 10:27:33 PM
Duh! Why didn't I think of that?!  Changed the text at the top to be shorter, and everything is great!  Thank you for all of your help!!


Please mark as solved!  =)