OneTimeOnlyCode

OneTimeOnlyCode creates one time only codes that can be used to access specific content

Module for Processwire CMS - OneTimeOnlyCode creates one time only codes that can be used to access specific content. Module by Ben Byford licensed under GNU GENERAL PUBLIC LICENSE.

Installation


PW module installation: https://processwire.com/docs/modules/intro/

Usage


Get module

$otoc = $this->modules->get("OneTimeOnlyCode");

Create codes with the url to check

returns an array of codes to then distribute

$otocCodes = $otoc->createCodes($page->url, $count);

Check a code against a url

returns a bool if code found and urls match

$check = $otoc->checkCode($code, $page->url);

More modules by benbyf

  • MarkInPageTree

    Mark pages in page tree with an icon by field, template or both. Also, add data from page in page tree. E.g. add field counter data along side the page title in the page tree list.
  • Subscribers

    Module to subscribe new users or a particualr role, and module for showing users in a list in the admin. Has a front end page for subscribing your users – register, login, forgotten password
  • PW Podcast

    podcast site profile for ProcesswireCMS that creates an RSS feed to syndicate to itunes
  • OneTimeOnlyCode

    OneTimeOnlyCode creates one time only codes that can be used to access specific content
  • bb-starter

    Starter profile for Processwire CMS with fontawesome, some handy modules and js. Includes blog templates and list page templates
  • WireMail: MailChimp

    Mailchimp integration for Processwire

All modules by benbyf

Install and use modules at your own risk. Always have a site and database backup before installing new modules.