Store
Community Documentation

v3 Knowledgebase

Captcha for marketplace

**This is a core edit and will void all PHPfox support, can make the script unstable and will be overwritten on upgrades.

Mini hack to add captcha to marketplace post
Open "module/marketplace/include/component/controller/add.class.php"

Search for:
Quote:

$oValidator = Phpfox::getLib('validator')->set(array(

Add before:

Quote:

// hack captcha marketplace

if (Phpfox::isModule('captcha') && !$bIsEdit)
{
$aValidation['image_verification'] = Phpfox::getPhrase('captcha.complete_captcha_challenge');
}



##############

Open "module/marketplace/template/default/controller/add.html.php"

Search for:
Quote:

<input type="hidden" name="page_section_menu" value="" id="page_section_menu_form" />



Add after:
Quote:

{if Phpfox::isModule('captcha') && !$bIsEdit}
{module name='captcha.form' sType='marketplace'}
{/if}