=== Sign by MPTY ===
Contributors: mptyprojects
Requires at least: 6.4
Requires PHP: 8.3
Tested up to: 7.1
Stable tag: 2.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Digital visitor registration, consent, simple electronic signature evidence, PDF generation, and staff verification for activity venues.


== Description ==

Free/Core includes unlimited registrations, Adult and optional Minor/guardian flows, signatures, records, evidence, PDFs, verification, basic search/Today/LIVE, unfiltered CSV, evidence archives, supported restore and manual erasure. Configured participant languages are unrestricted.
The separately distributed Sign Pro extension owns new Email OTP, Family/group, additional forms, marketing collection, kiosk, staff assignments, operational decisions, advanced filters and reports. Business access additionally grants new reconfirmation requests and lifecycle automation. Existing evidence and bounded pending-workflow recovery remain available without Pro.
PDFs require an available supported renderer or GD/FreeType and a readable Unicode TrueType font. Archive operations require PHP ZipArchive and supported transactional database/storage configuration.

== Source and development configuration ==

The Core package includes the readable PHP, JavaScript and CSS that WordPress runs directly. The runtime has no compilation, minification or Composer installation step. The repository's Composer configuration, development and release tooling, and the separate Pro implementation are outside the Core package.
The complete GPLv2 text is included in license.txt; Sign is distributed under GPLv2 or later.

== Privacy and data handling ==

Sign processes data on this WordPress installation. Depending on configured fields, it stores participant and guardian names, contact details, dates of birth, relationships and custom answers; consent choices and wording; agreement snapshots; signature images; PDFs and evidence; lookup identities, timestamps and staff decisions.
Submission, evidence and administrative audit records may include IP addresses and user-agent information. Frontend failure diagnostics are stored in an audit entry that may contain the request IP address and user agent. New diagnostic metadata contains a fixed error category, a salted IP hash, language, consent flow, viewport, online state, HTTP status, error phase and a diagnostic token. Browser error messages, response previews, request URLs and submitted form content are not retained in new diagnostic metadata or the browser diagnostic session-storage entry. Older diagnostic audit records are preserved. Administrators must assess diagnostic access and retention separately. Operators should avoid personal information in diagnostic or custom text.
Database records are stored locally. Signatures/PDFs use configured private artifact storage; web-server protection must be verified on the host, especially outside Apache. Authorized administrators can export records/evidence and perform supported erasure/recovery. Retention settings and incomplete-registration cleanup affect deletion; completed evidence is not deleted merely because a license expires. Uninstall preserves data by default; destructive deletion requires explicit administrator intent and applicable safeguards. Backups and downloaded exports are outside plugin erasure.
Email uses WordPress wp_mail() and the site's configured mail transport. Recipient details and message contents reach that transport and recipient. Core can complete/resend existing pending verification or reconfirmation mail; Pro is required to initiate new premium workflows. Test mail delivery and disclose any hosting/SMTP provider separately.
Before new sensitive evidence writes, Core verifies configured storage using short-lived random, non-sensitive local probe files and anonymous HTTP requests to this installation's own uploads URL. No participant data or credentials are included. Results are cached briefly; inconclusive or exposed storage pauses new registrations and paper intake until verification succeeds. Existing evidence and recovery remain available. Hosting access logs may record these probe requests.

Core has no MPTY licensing or analytics HTTP client and does not send participant evidence to MPTY. Frontend requests go to this installation's REST endpoints. Operator-entered privacy-policy/rules links may lead to external sites when followed. The separately installed Pro extension contacts MPTY for licensing and may check private updates as described in its readme.
Operators must publish their own accurate privacy policy, determine lawful processing/retention and review access, backups and storage before collecting real data. Sign does not guarantee legal compliance.

== Participant languages ==
Configured participant languages, frontend language selection and translated form content are included in Free/Core without a paid language-count limit. English is the initial default. Operators explicitly enable additional languages and provide/review translations before use.

Optional marketing/photo choices never block ordinary registration; older Required settings are interpreted as Optional for new submissions. Administrators can record a withdrawal or objection for a registration/purpose from its Optional permissions section in Core, even without Pro. This changes current use status and appends audit history; it does not rewrite signed evidence, erase records, suppress future registrations or update external systems. CSV distinguishes choices at signing from current status; missing lifecycle state is unverified, not an active permission.

Sign does not integrate with WordPress Tools personal-data exporters/erasers. Use Sign lookup, protected exports, correction notes and supported erasure/recovery, after verifying the requester and other family members' rights. Review children/guardian authority, backups, downloaded copies, hosting/mail processors, diagnostic retention and incident response under your policy. Sign does not automatically verify parental authority, choose a lawful basis or guarantee legal compliance. See the bundled customer guide, Privacy requests and current permissions.

== Quick Start ==
Requirements: WordPress 6.4 or newer; PHP 8.3 or newer. Sign Pro requires Core 2.0.1 or newer.
For PDFs, Imagick is not universally required: Sign can use an available Dompdf/mPDF/TCPDF renderer, or GD/FreeType with a readable Unicode TrueType font. Latin and Cyrillic are supported; unsupported scripts or missing font glyphs must not be silently replaced. There is no lossy last-resort writer. Check PDF appearance on your host.
Sign Pro integrates signed update checks with WordPress when an eligible compatible release is available. Approved in-place ZIP replacement is also supported. Back up first; do not uninstall. See the Pro readme for requirements.

1. In WordPress Admin, go to Plugins > Add New > Upload Plugin.
2. Upload the sign-by-mpty.zip file and click Install Now.
3. Click Activate Plugin.
4. Go to Sign by MPTY > Settings for installation-wide settings. Under Consent forms, choose Edit form to configure languages, participant options, consents, Rules, Form fields and Form texts for that form.
5. Create or edit a public WordPress page and add this shortcode: [signbympty_consent_form].
6. Open that page in a private browser window and submit a test adult consent before using the plugin with real visitors.


== Enable the Public Form ==
Use [signbympty_consent_form] on a published WordPress page. Follow Quick Start and test before collecting real data.

== Email OTP Delivery - Pro for new workflows ==
When Email OTP is enabled, the plugin sends a separate 4-digit email OTP through WordPress mail using wp_mail(). The plugin does not include built-in SMTP-provider configuration. Email reliability depends on the site hosting mail setup or a separate WordPress SMTP/mail plugin. Test delivery before using OTP operationally.

== Installation Troubleshooting ==
If WordPress says plugin installation failed:
* Confirm the ZIP contains a top-level sign-by-mpty folder with sign-by-mpty.php inside it.
* Confirm your local site runs PHP 8.3 or newer.
* Remove any previous broken copy of wp-content/plugins/sign-by-mpty before installing again.
* If activation fails, enable WP_DEBUG_LOG and check wp-content/debug.log.
* Do not upload development folders, reports, or partial ZIPs. Use the clean runtime ZIP only.

== Customer guide ==

Open Sign by MPTY > Getting started > User guide for the bundled task-based Free, Pro and Business manual. It covers configuration, reception, evidence, licensing and recovery.

== Installation ==
1. Upload the sign-by-mpty folder to wp-content/plugins or install the ZIP.
2. Activate the plugin.
3. Create a WordPress page and add the shortcode [signbympty_consent_form].
4. Go to Sign by MPTY > Consent forms > Edit form > Rules and replace the starter rules with your approved operational/legal text.
5. Review WordPress roles and capabilities. New venue staff assignments require Pro and its licensed allowance; administrators and historical access remain independent of Pro.

== Notes ==
Legal/content responsibility: each venue/operator must review and adapt legal, privacy, data-processing, rules, consent, and retention wording before live use. This plugin provides configurable workflows and evidence records; it does not provide legal advice.

PDF and signature files use private uploads storage with Apache/IIS protection files by default. Nginx requires a host deny rule. Open Settings > Tools > System health and use Recheck private evidence protection. New registrations require verified protection. Advanced hosting provisioning can place new files outside served web roots; do not move historical evidence manually.

Temporary exports and OTP QR attachments require writable system temporary storage outside all known served roots, independently of the evidence protection check. Unverified placement stops those operations. CSV downloads prefix formula-like text with an apostrophe for spreadsheet safety; stored evidence and full restore data are unchanged.

== First-use note ==

The plugin creates starter active rules during activation. Before going live, open Sign by MPTY > Consent forms > Edit form > Rules and replace the starter content with your approved rules for every enabled language and registration flow.

= Email OTP validation - existing recovery remains Core =

When Email OTP is enabled, the visitor must enter the emailed 4-digit OTP back into the success screen. Until the OTP is validated, the record is saved but remains pending email OTP validation.


== Screenshots ==

1. Complete participant details, review the rules and confirmations, and draw a signature.
2. Review the original rules and confirmations recorded with a submitted consent.
3. Find a registration, review its status and access verification, record details and PDF evidence.

== Changelog ==

= 2.0.3 =
* Aligned administration headers with the approved MPTY frame and Sign signature identity.
* Preserved consent workflows, historical evidence, recovery and commercial entitlement behavior.

= 2.0.2 =
* Replaced free-form frontend diagnostics with fixed error categories and bounded technical context.
* Excluded browser error text, response previews and request URLs from new diagnostic metadata and diagnostic session storage.
* Preserved historical audit records, consent evidence, existing abuse controls and compatibility with older diagnostic clients.
* Clarified diagnostic privacy disclosures.

= 2.0.1 =
* Separately distributed Pro owns new premium workflows; Core preserves historical evidence and bounded recovery.
* Participant languages are unrestricted in Core.
* Includes complete GPL license text, readable configuration and updated privacy/service disclosures.
* Future PDFs omit default promotional attribution and disable unnecessary remote resource fetching; historical evidence is unchanged.

= 1.0.160 =
* Fresh installs now start with English only and the Adult participant flow only; Minor/guardian and Family/group are opt-in.
* Setup now requires deliberate review of the major configuration areas instead of treating starter defaults as completed setup.
* Added secure Mark reviewed actions for flows, languages, rules, form configuration, privacy/consents, and email verification; publishing remains automatically detected.
* Rebuilt Registration flow controls to prevent labels/helper text from touching card edges and normalized inner Settings card spacing across desktop and mobile.

= 1.0.157 =
* Production copy and terminology cleanup across the public form, admin, fallbacks, and fresh-install defaults.
* Simplified form titles, submit text, errors, phone helpers, and success wording.
* Removed generic Optional helper defaults; Required / Optional / Hidden remains controlled by Form Fields and required fields use *.
* Clarified admin terminology, including registration flow versus optional consent type.
* Added an upgrade-safe text migration that changes only exact legacy defaults and preserves customized wording.

= 1.0.156 =
* Internal maintenance; database structure, storage and consent-form behavior are unchanged.

= 1.0.154 =
* Improved security handling for reports and protected downloads.
* Updated WordPress compatibility metadata to 7.1.
* Preserved existing records, storage and uninstall behavior.

= 1.0.36 =
* Added OTP resend/manual validation, incomplete cleanup, future DOB prevention, custom CSS, and clearer submit states.

* Fixed OTP resend fatal error, added explicit resend limit helpers, and compacted the OTP confirmation/resend layout.
