News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Captcha in the form to notify

Started by VopoloS, May 24, 2016, 16:51:15 PM

Previous topic - Next topic

VopoloS

Please tell me how to add captcha in the form "Notify" in the absence of product in the warehouse. File notify.php
Thank..


J 3.5.1 , VM 3.0.14

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


jenkinhill

OK you should use VM3.0.16 with Joomla 3.5.1  - this version contains a fix for the known mail problem with J3.5.1   http://dev.virtuemart.net/projects/virtuemart/files

As for adding a captcha to that file, nobody has ever asked that before - not an obvious source of spam.

I would guess you could look at components/com_virtuemart/views/recommend/tmpl/form.php to see how captcha is used there.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

VopoloS

#4
I updated the file with the problem send mail. Your proposed solution is not suitable.
Code             <?php // captcha addition
if(VmConfig::get ('ask_captcha')){
JHTML::_('behavior.framework');
JPluginHelper::importPlugin('captcha');
$dispatcher JDispatcher::getInstance(); $dispatcher->trigger('onInit','dynamic_recaptcha_1');
?>

<div id="dynamic_recaptcha_1"></div>
<?php 
}
// end of captcha addition 
?>

does not work in the file notify.php

Maybe change the code    if(VmConfig::get ('notify_captcha')){ ?

No, this option is also not working.....

And anyway, it would be logical to make a "notify" on the "Ask a question"... More use...

This form can be filled several times with the same e-mail address! You can imagine the situation, if the product be delivered to the store to order this form? I would like to have a check on the reseeding of the same e-mail.