coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: pinpoint222 on September 14, 2006, 03:47:51 PM

Title: Creating a row and column between Comment and "OK" button (CAPTCHA alternative)
Post by: pinpoint222 on September 14, 2006, 03:47:51 PM
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


Title: Re: Creating a row and column between Comment and "OK" button (CAPTCHA alternative)
Post by: Nibbler on September 14, 2006, 03:57:42 PM
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;
Title: Re: Creating a row and column between Comment and "OK" button (CAPTCHA alternative)
Post by: pinpoint222 on September 14, 2006, 06:28:55 PM
thanks
Its finished. The simplest visual confirmation to prevent comment spam finally made n applied
Details

http://forum.coppermine-gallery.net/index.php?topic=36235.0