Skip to content

Require guests to complete a CAPTCHA every so often in order to download from pages

Notifications You must be signed in to change notification settings

xerora/cot-pagedlcaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Requirements

  • Cotonti 0.9.15 or greater

Installation

  1. Download, unzip, and place the pagedlcaptcha folder into your plugin folder
  2. Install through the administration panel
  3. Edit page.tpl inside the DOWNLOAD block to display the CAPTCHA for guests, and the regular link / button to members ( refer to example below)
  4. (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.

Example page.tpl

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 -->

About

Require guests to complete a CAPTCHA every so often in order to download from pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages