forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Tranz on January 29, 2006, 04:24:12 am

Title: comment box has extra gray area(s) in IE and Firefox
Post by: Tranz on January 29, 2006, 04:24:12 am
I was working on a custom theme when I noticed that in IE, there was an extra gray table cell or something that does not appear in Firefox. In Opera, there are two of them. It turned out that this happens with mac_oxx and project_vii in my installation and in the demo.

To quickly see a sample:
http://coppermine-gallery.net/demo/cpg14x/displayimage.php?album=19&pos=5

Title: Re: comment box has extra gray area(s) in IE and Firefox
Post by: Tranz on January 29, 2006, 06:09:16 pm
I managed to get rid of the extra gray areas in my custom theme by modifying $template_add_your_comment:
Code: [Select]
$template_add_your_comment = <<<EOT
<form method="post" name="post" action="db_input.php">
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
</tr>
<tr>
                <td colspan="1">
                        <table width="100%" cellpadding="0" cellspacing="0">

<!-- BEGIN user_name_input -->
<tr>
<td class="tableb_compact">
                                        {NAME}
                                </td>
                                <td class="tableb_compact">
                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />
                                </td>
<!-- END user_name_input -->
<!-- BEGIN input_box_smilies -->
                                <td class="tableb_compact">
                                {COMMENT}
</td>
                                <td width="100%" class="tableb_compact">
                                <input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
</td>
<!-- END input_box_smilies -->
<!-- BEGIN input_box_no_smilies -->
                                <td class="tableb_compact">
                                {COMMENT}
</td>
                                <td width="100%" class="tableb_compact">
                                <input type="text" class="textinput" id="message" name="msg_body"  maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
                                </td>
<!-- END input_box_no_smilies -->
                                <td class="tableb_compact">
                                <input type="hidden" name="event" value="comment" />
                                <input type="hidden" name="pid" value="{PIC_ID}" />
                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                </td>
</tr>
                        </table>
                </td>
        </tr>
<!-- BEGIN smilies -->
        <tr>
                <td width="100%" class="tableb_compact">
                        {SMILIES}
                </td>
        </tr>
<!-- END smilies -->
</table>
</form>
EOT;

Is it okay to commit to themes.inc.php?
Title: Re: comment box has extra gray area(s) in IE and Firefox
Post by: Joachim Müller on January 30, 2006, 12:31:56 am
yes, please go ahead.
Title: Re: comment box has extra gray area(s) in IE and Firefox
Post by: Tranz on January 30, 2006, 01:43:56 am
Committed.