[Skip to main content](#vessel-content)

#   Need some help with recaptcha plugin

##

- **[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")**
- [![michaelgilkes's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile") Topic Author
- [ Offline](/forum/user/5244-michaelgilkes)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 10 months ago [\#33855](#33855) by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")  *[Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33855 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")* was created by *[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")*

Hi Moderator,

I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page ([ www.valorapps.com/component/users/?view=registration](https://www.valorapps.com/component/users/?view=registration)). However, it won't work for the contact form. I setup a contact form, and it does not show: [ www.valorapps.com/contact-us.html](https://www.valorapps.com/contact-us.html)

The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to "After the message textarea"

Could you help?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")**
- [![michaelgilkes's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile") Topic Author
- [ Offline](/forum/user/5244-michaelgilkes)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 10 months ago -  14 years 10 months ago [\#33868](#33868) by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")  Replied by *[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33868 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi Moderator!

I found part of the problem. There is a bug in your recaptcha code! The bug applies only to Joomla 1.6 and 1.7. The bug is actually in your recaptcha.xml file. The values that you specify for the field "checkpos" are "contact-text", "contact-email" and "contact-email-copy". If you look earlier in the xml file, the equivalent values for the param "checkpos" are "contact_text", "contact_email" and "contact_email_copy". The difference between the two is the use of a dash "-" in the field version versus the use of an underscore "_" in the params version. The catch is that in the recaptcha.php file, you check for the underscore version. So, that is why I am not getting the recaptcha showing up in my contact forms.

So you need to change the field version values for "checkpos" in the xml file to "contact_text", "contact_email" and "contact_email_copy" instead of "contact-text", "contact-email" and "contact-email-copy".

My problem still exists. So, I still need help.

Hope to hear from you soon.
Michael

Last edit: 14 years 10 months ago by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile"). Reason: corrections to text

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 10 months ago [\#33873](#33873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33873 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi,

The Recaptcha plugin was not compatible with the contact form of joomla 1.7
I've uploaded a new version of it which should now work with it. Please download it again an install that new version on your website. It should work better.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")**
- [![michaelgilkes's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile") Topic Author
- [ Offline](/forum/user/5244-michaelgilkes)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 10 months ago -  14 years 10 months ago [\#33900](#33900) by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")  Replied by *[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33900 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi Nicolas,

Thanks for responding, and for updating the code. However, it still doesn't work. First off, you didn't change the values in the xml file. Second, you are certainly right about the format for Joomla 1.7 being different. However, i think that the regex search string that you use for $id is not matching the html code the joomla 1.7 uses for the contact form. I am not a regex expert by any means. But, if "After the message textarea" is selected, the regex you use is:
Code:

id="jform_contact_message".{0,200}(&lt;br */&gt;&#124;&lt;/p&gt;&#124;&lt;/div&gt;)

but if we look at the html code for the contact form,
Code:

&lt;dd&gt;&lt;textarea name="jform[contact_message]" id="jform_contact_message" cols="50" rows="10" class="required" aria-required="true" required="required"&gt;&lt;/textarea&gt;&lt;/dd&gt;

So, I think the issue is that it is not finding the code, because the regex is not formatter correctly the find it. What do you think?

Oh, please correct the values int he xml file that I mentioned the previous post.

(BTW: the code above is not showing up properly in the post. I tried to edit it a few times to get it to show the html tags, but it's not working. sorry.)

Last edit: 14 years 10 months ago by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile"). Reason: tried to make tags show in the code. not working.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 10 months ago [\#33902](#33902) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33902 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi,

I didn't change the XML file because there is nothing to change in it.
It seems that the regex has to be adapted a bit more to handle the &lt;/dd&gt; tag.
I've changed it accordingly, please try again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")**
- [![michaelgilkes's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile") Topic Author
- [ Offline](/forum/user/5244-michaelgilkes)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 10 months ago [\#33903](#33903) by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")  Replied by *[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33903 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi nicolas.

I'll try it again in a minute. However, you're saying that the use of dashes instead of underscores for the "checkpos" values for the fields are deliberate? even though there is no reference to the dashed versions in the code?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")**
- [![michaelgilkes's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile") Topic Author
- [ Offline](/forum/user/5244-michaelgilkes)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 10 months ago [\#33906](#33906) by [michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")  Replied by *[michaelgilkes](/forum/user/5244-michaelgilkes "View michaelgilkes's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33906 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi nicolas,

Thanks for your help.

just to let you know, it works now, but it only worked after I edited the xml file as I described in a previous post.

Secondly, although it shows now, it is using the wrong html tags to display the captcha. Basically, it doesn't put the DT tag around the label, and it puts a span tag around the captcha instead of a dd tag. This affects alignment of the captcha, and the overall look of the form.

I just thought I would mention this so you can make the final changes that will help everyone.

Thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 10 months ago [\#33911](#33911) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Need some help with recaptcha plugin](/forum/3-bug-report/33855-need-some-help-with-recaptcha-plugin#33911 "Hi Moderator,  I need some help with the recaptcha plugin. I am in the process of setting up Hikashop on my site. I decided to setup the recaptcha first before I setup any products. It works perfectly for the registration page (  www.valorapps.com/component/users/?view=registration ). However, it won't work for the contact form. I setup a contact form, and it does not show:   www.valorapps.com/contact-us.html  The plugin is enabled. Display after is set to email. Use in forms is set to Yes. Display option on contact forms is set to &quot;After the message textarea&quot;  Could you help?")*

Hi,

Thanks for the information. We updated it again with the corresponding information.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzg1NS1uZWVkLXNvbWUtaGVscC13aXRoLXJlY2FwdGNoYS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.144 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
