hardwired error display style hardwired error display style
 

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

hardwired error display style

Started by lordprodigy, February 14, 2006, 06:41:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lordprodigy

I realised that someone had played with the original code of the hardwired template to adapt it to version 1.4.x and in doing so has messed up some of the visual integrity of the template. I went back to the original version and brough few of the changed css statements and template.php functions but I cant figure out one...

When you get an empty screen like this one (http://www.bogho.com/b514/displayimage.php?album=lastup&cat=0&pos=0) it should be rendered the same way (height of the table + fonts) as in here (http://www.bogho.com/b514/thumbnails.php?album=toprated). In version 1.3.2  of all screens like the ones above (login messages, empty albums, error messages.. etc) were rendered the same height and font... in version 1.4.3 it has all changed.

Does anyone know where this can be fixed? is it in the css or in theme.php?

Thank you in advance. Happy Valentines day everyone!

Joachim Müller

The Hardwired theme in cpg1.3.x hasn't been standards-compliant, while the one that comes with cpg1.4.x validates. The old theme had some silly height attributes for html tags that aren't meant to have them, although some browsers (particularly IE) where very tolerant against it. You're free to either add a blind gif with the height you want or to embedd the output into a div that is allowed to have height attributes.

lordprodigy

thanks gaugau. will do that. I find hardwired visualy way better than any of the other themes... Too bad it wasnt compliant as you said.

concider this solved. thanks.

lordprodigy

For some reason, when I do a search with a variable which does not yield any results, I get a nice big table with the text in the middle, with the good font, which says "no image to display". This leads me to think that there is a css tag which controls the way this table looks like and its creation is embeded into the theme.php or in Paver's plugin, which renders this result. Do you know which tag this might be, or where I should look into? All I am trying to do is to make the theme consistent and prettier. Thanks a lot!

reference > www.bogho.com/b514

lordprodigy

are the error pages controled by:$template_no_img_to_display = <<<EOT
        <tr>
                <td class="tableb" height="200" align="center">
                        <font size="2"><b>{TEXT}</b></font>
                </td>
        </tr>
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="17" /><br />
<!-- END spacer -->

EOT;


Because I am still trying to fix the template consistency problem and I cant figure out what controls the rendering of the error messages. Any ideas?

lordprodigy

same problem with the login / logout message screens...

lordprodigy

I fixed this the cave man way by adding font attributes and line breaks into the displayimage.php... mark it solved.