I have figured out how to add VM 2 support to easycalccheckplus, at least for the ask a question form. Not sure if it would work for comments, etc. Now keep in mind I have only tested this with reCaptcha, using Joomla 2.5.3, EasyCalcCheck Plus 2.5-1 and VM 2.0.3E.
It requires 2 edits in plugins/system/easycalccheckplus/easycalccheckplus.php
1) in
private function loadEcc($option, $task, $view, $func, $layout)
around line 2801, after
// ALFContact - tested with version 2.0.1
case 'com_alfcontact':
$this->_extension_info = array('com_alfcontact', '<form[^>]+id="contact-form".+</form>', '<label for=".+>', '<button class="button">');
if($this->params->get('alfcontact') AND $view == 'alfcontact' AND empty($task))
{
$this->_load_ecc = true;
}
elseif($this->params->get('alfcontact') AND $task == 'sendemail')
{
$this->_load_ecc_check = true;
}
break;
before the default case add
//Virtuemart 2.0
case 'com_virtuemart':
$this->_extension_info = array('com_virtuemart', '<form[^>]+id="askform".+</form>', '<input type=.+>', '<input class="highlight-button" type="submit" name="submit_ask".+/>');
if($task == 'askquestion' AND empty($_REQUEST["submit_ask"]))
{
$this->_load_ecc = true;
}
elseif($task == 'mailAskquestion' AND !empty($_REQUEST["submit_ask"]))
{
$this->_load_ecc_check = true;
}
break;
2) in
private function callChecks($option, $task)
around line 3182 after
elseif ($option == 'com_alfcontact' AND $task == 'sendemail')
{
if (!$this->performChecks())
{
$check_failed = true;
}
}
add
elseif ($option == 'com_virtuemart' AND $task == 'mailAskquestion')
{
if (!$this->performChecks())
{
$check_failed = true;
}
}