Intermediate Pictures not centered. Help! Intermediate Pictures not centered. Help!
 

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

Main Menu

Intermediate Pictures not centered. Help!

Started by fareforce, September 24, 2006, 06:33:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fareforce

I have two installations of CPG, both with the same problem.

One is http://www.onlyalaska.com/photo/
The other is 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?
~fareforce
Anchorage, AK
Home of the frozen weasel
http://www.alaskastudio.com

Sami

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 !?
‍I don't answer to PM with support question
Please post your issue to related board

fareforce

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
~fareforce
Anchorage, AK
Home of the frozen weasel
http://www.alaskastudio.com

fareforce

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..
~fareforce
Anchorage, AK
Home of the frozen weasel
http://www.alaskastudio.com

Sami

‍I don't answer to PM with support question
Please post your issue to related board

fareforce

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!  =)
~fareforce
Anchorage, AK
Home of the frozen weasel
http://www.alaskastudio.com