- Cotonti 0.9.15 or greater
- Download, unzip, and place the pagedlcaptcha folder into your plugin folder
- Install through the administration panel
- Edit page.tpl inside the DOWNLOAD block to display the CAPTCHA for guests, and the regular link / button to members ( refer to example below)
- (optional) If you want to display an error message when a CAPTCHA entry fails, you need to add
{FILE "{PHP.cfg.themes_dir}/{PHP.cfg.defaulttheme}/warnings.tpl"}
into your page.tpl and enable the configuration in this plugin's configuration page.
Inside DOWNLOAD block:
<!-- IF {PHP.usr.id} > 0 OR !{PAGE_DOWNLOAD_VERIFYSHOW} -->
<p>{PHP.L.Download}: <a class="strong" href="{PAGE_FILE_URL}">{PAGE_SHORTTITLE}</a></p>
<!-- ELSE -->
<form method="post" action="{PAGE_FILE_URL}">
{PAGE_DOWNLOAD_VERIFYIMG}<br />
{PAGE_DOWNLOAD_VERIFYINPUT}<br />
<button type="submit">Download</button>
</form>
<!-- ENDIF -->