Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lilal

Pages: [1]
1
Templates & Styles (Releases & Support) / Re: [MOD] reCAPTCHA
« on: October 03, 2014, 09:45:22 PM »
I have seen a few people asking how to modify the template file to make this work.

I am wondering the same thing...

Currently, my template file looks like this:

<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td valign="top" class="head1">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td valign="top" class="head1">{lang_post_comment}</td>
        </tr>
        <tr>
          <td valign="top" class="row1">
            <form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">
              <table cellpadding="4" cellspacing="0" border="0">
                <tr>
                  <td width="90"><b>{lang_name}</b></td>
                  <td><input type="text" name="user_name" size="30" value="{user_name}" class="commentinput" /></td>
                </tr>
                <tr>
                  <td width="90"><b>{lang_headline}</b></td>
                  <td><input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" /></td>
                </tr>
                <tr>
                  <td width="140" valign="top"><b>{lang_comment}</b></td>
                  <td><textarea name="comment_text" cols="35" rows="10" class="commenttextarea">{comment_text}</textarea></td>
                </tr>
                <tr>
                  <td width="90" valign="top">&nbsp;</td>
                  <td>{bbcode}</td>
                </tr>
                            <tr>
                                <td>{if captcha_comments}</td>
                                <td></td>
                            </tr>

                        <tr>
                  <td width="90" valign="top"><b>{lang_captcha}</b></td>
                  <td>
                             <a href="javascript:new_captcha_image();"><img src="{url_captcha_image}" border="0" id="captcha_image" alt="" /></a>
                             <br />
                              <input type="text" name="captcha" size="30" value="" class="captchainput" id="captcha_input" />
                              <br />
                              <table cellpadding="0" cellspacing="0" width="210">
                                        <tr>
                                            <td width="258">                             {lang_captcha_desc}</td>
                                        </tr>
                                    </table>

                           </td>
                </tr>
                        <tr>
                            <td>{endif captcha_comments}</td>
                            <td></td>
                        </tr>

                <tr>
                  <td width="90" valign="top">&nbsp;</td>
                  <td>
                    <input type="hidden" name="action" value="postcomment" />
                    <input type="hidden" name="id" value="{image_id}" />
                    <input type="submit" name="postbutton" value="{lang_post_comment}" class="button" />
                  </td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

I have tried replacing the phrase "captcha" with "recaptcha" and I don't get an image on my comments page.

How, exactly, do I incorporate the {recaptcha} into this html coding?

Thank you so much,
lilal


2
excellent suggestion!

just finished my upgrade.  it wasn't too bad, i was reluctant because i had done so much modifying to my implementation of 4images, i didn't want to have to redo all that work.

i just bit the nail, and dove in.  it took about three hours, but now everything seems to be working smoothly again with the security image in tact.

however, there is one small problem.  if someone clicks on the security image to generate a new one, it returns a javascript error.  what could be causing this?

thanks again.

3
i have tried updating the gallery with these recommendations to stop spamming in the comments, using even the newest changes to the mod.  however, i am still unable to view the security image.

i have looked at the comment form source code, and this is what i get for the image source:

<img src="./securecode.php?id=6&1179174609" border="0" alt="" />

how can i fix this?  the link to the image is here:

http://www.sculptedmodels.com/forimages/details.php?image_id=36

I am attaching my details.php, securecode.php, and comment_form.html files.

any help with this would be greatly appreciated.

sincerely,
alvin

Pages: [1]