Creating a row and column between Comment and "OK" button (CAPTCHA alternative) Creating a row and column between Comment and "OK" button (CAPTCHA alternative)
 

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

Creating a row and column between Comment and "OK" button (CAPTCHA alternative)

Started by pinpoint222, September 14, 2006, 03:47:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pinpoint222

ITS not CAPTCHA But this technique has been working 100% fine for last 1 year for me for the

rest of my website.

Now i wants to add it to coppermine "Add comment" table as well.

for that i need some help.

i want to add the code below Between "comment box" and the "OK" button.




HTML code is below.

<tr bgcolor="#FFFFFF">
          <td align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><b>Enter

this  Code <img src="http://www.pindiplus.com/imgz/lil.jpg"> in the Box</b></font></td>
          <td align="left">         
                <font size="2" face="Verdana, Arial, Helvetica, sans-serif">
            <input name="silly" type="text" id="puke" > Type Four Letter Code
           </font></td>
        </tr>


Where to add this code to get the result as shown in the image Attached to my post?
Thanks in advance



Nibbler

You need to copy the $template_add_your_comment from the sample theme to your theme and then modify your copy.


// HTML template for the form to add comments
$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;

pinpoint222