Skip to content

Commit df86ec7

Browse files
author
Roman Gsponer
committed
Version V6
1 parent 1289ee5 commit df86ec7

43 files changed

Lines changed: 761 additions & 1931 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.md

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,21 @@
1-
Plain Solutions Software License
2-
Version 1.1, February 2025
3-
4-
Copyright (c) 2025 Plain Solutions GmbH
5-
All rights reserved.
6-
7-
## 1. Grant of License
8-
This software is provided under GPL-3.0-only license. You are granted a non-exclusive, non-transferable, and revocable right to download, install, and use the software **for non-commercial purposes** only.
9-
10-
## 2. Permitted Use
11-
- You may download and use the software for personal, educational, or research purposes.
12-
- You may modify the software **for personal use only** but may not distribute modified versions.
13-
14-
## 3. Restrictions
15-
- Commercial use, resale, or redistribution of the software in any form is **strictly prohibited**.
16-
- You may not sublicense, rent, lease, or sell copies of this software.
17-
- Decompiling, reverse engineering, or modifying the software for redistribution is not allowed.
18-
19-
## 4. No Warranty & Limitation of Liability
20-
This software is provided "as is" without any warranties. Plain Solutions GmbH is not responsible for any damages, data loss, or other issues arising from the use of this software.
21-
22-
## 5. Support & Updates
23-
Support and updates may be provided at the sole discretion of Plain Solutions GmbH. There is no guarantee of future updates or bug fixes.
24-
25-
## 6. Termination
26-
Plain Solutions GmbH reserves the right to revoke this license if the terms are violated. Upon termination, you must stop using the software and delete all copies.
27-
28-
## 7. Governing Law
29-
This license is governed by Swiss law. Any disputes shall be settled in the jurisdiction of Plain Solutions GmbH’s registered office in Raron, Switzerland.
30-
31-
For inquiries, please contact:
32-
Plain Solutions GmbH
33-
Theaterstrasse 2, 3942 Raron, Switzerland
34-
Email: support@plain-solutions.net
1+
MIT License
2+
3+
Copyright (c) Plain Solutions GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ With the integrated mailview field you can display requests allover the panel.
2828

2929
⭐️   Create a new form field type with ease by added just 2 files (Blueprint & Template).
3030

31-
⭐️   Spam protection with an integrated honeypot.
31+
⭐️   Spam protection with captcha field: math puzzle, reCaptcha (since v6) or hCaptcha (since v6).
3232

3333
⭐️   Pre-styled form
3434

35-
⭐️   Full language support for English, German, Italian, French, Lithuanian, Hungarian & Netherlands
35+
⭐️   Full language support for English, German, Italian, French, Lithuanian, Hungarian, Netherlands, Spanish (Since v6) & Serbian (Since v6)
3636

3737
# Table of content
3838

@@ -60,6 +60,7 @@ With the integrated mailview field you can display requests allover the panel.
6060
- [Placeholders](#placeholders)
6161
- [Disable Functions](#disable-functions)
6262
- [Email templating](#email-templating)
63+
- [Captcha](#captcha)
6364
- [Translations](#translations)
6465
- [Dynamic validation](#dynamic-validation)
6566
- [Email field](#email-field)
@@ -79,24 +80,8 @@ With the integrated mailview field you can display requests allover the panel.
7980

8081
`composer require plain/kirby-form-block-suite`
8182

82-
**Get a license**
83-
84-
[Klick here to obtain a license](https://plain-solutions.net/?product=801346)
85-
8683
[See also the other plugins](https://plain-solutions.net/)
8784

88-
**Validate your license**
89-
90-
*Important notes: If you’re working in a development environment, please activate the license on the public domain. Licenses are tied to the domain they are first activated on.*
91-
92-
To validate your license key click on this button:
93-
94-
<img src="./.github/license.png" width="200" />
95-
96-
...or go to *System* in the Panel and click on `plain/formblock` in the Plugins section. (Kirby > 5.0.0). You’ll be guided through the validation process from there.
97-
98-
> If you have trouble with your license, check [Troubleshooting](#troubleshooting) at the end of this documentation.
99-
10085
# How to use?
10186

10287
Just create a block field in your blueprint and add `form` to the fieldsets props:
@@ -529,6 +514,40 @@ You can set the templates for outgoing emails like this:
529514
],
530515
```
531516

517+
## Captcha
518+
519+
```php
520+
'plain.formblock' => [
521+
'captcha' => [
522+
// choose one of these types: math | hcaptcha | recaptcha_v2 | recaptcha_v3
523+
'mode' => 'math', //default
524+
525+
// If mode is 'math': Existing "calc" captcha settings
526+
'math' => [
527+
'min' => 1,
528+
'max' => 90,
529+
],
530+
531+
// If mode is 'hcaptcha':
532+
'hcaptcha' => [
533+
'sitekey' => HCAPTCHA_SITEKEY,
534+
'secret' => HCAPTCHA_SECRET,
535+
],
536+
537+
// If mode is 'recaptcha_v2' or 'recaptcha_v2':
538+
'recaptcha' => [
539+
'sitekey' => RECAPTCHA_SITEKEY,
540+
'secret' => RECAPTCHA_SECRET,
541+
// v3 only
542+
'v3' => [
543+
'threshold' => 0.5,
544+
'action' => 'form_submit',
545+
],
546+
]
547+
]
548+
],
549+
```
550+
532551
## Translations
533552

534553
Change custom texts like this:
@@ -657,18 +676,6 @@ If it is impossible to activate symbolic links, copy the content of `site/plugin
657676
```
658677
> This will be ignored for multilingual sites.
659678
660-
---
661-
662-
**Problem:** Error to validate license key
663-
664-
**Solutions:**
665-
- If you haven't got a license yet? Get a [license](https://plain-solutions.net/?product=801346).
666-
- Your server needs a connection to the license server: [https://plain-solutions.net](https://plain-solutions.net).
667-
- Your license key was already validated by another host [release the assigment here](https://plain-solutions.net/unlink).
668-
- Delete the license file `/site/config/.formblock_license` (if present) and try again.
669-
670-
---
671-
672679
**Problem:** Problem with the validation
673680

674681
**Solutions:**
@@ -683,6 +690,6 @@ If you still have any questions or something is not working properly, [make an i
683690

684691
# License
685692

686-
By using this project, you agree to the terms and conditions outlined in our [Terms of Service](https://plain-solutions.net/terms).
693+
Starting with version 6, this plugin is available under the MIT license.
687694

688-
To acquire a license for this project, please visit our [Licensing Page](https://plain-solutions.net/801346).
695+
All customers who purchased this plugin receive support for one year from the date of purchase.

autoload/blockModels.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

autoload/blueprints.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

autoload/fields.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

autoload/options.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

autoload/routes.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

autoload/snippets.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

blueprints/blocks/formfields/07_captcha.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ name: form.block.fromfields.captcha
22
icon: bug
33

44
fields:
5+
info:
6+
text: form.block.fromfields.captcha.info
7+
required_fail:
8+
type: hidden
59
slug:
610
type: hidden
711
default: captcha-input
12+
width: 1/1
813
placeholder:
914
type: hidden
1015
required:
1116
default: true
1217
type: hidden
13-
ask:
14-
label: form.block.fromfields.captcha.ask
15-
type: text
16-
help: form.block.default.help
17-
fail:
18-
label: form.block.fromfields.captcha.fail
19-
type: text
20-
help: form.block.default.help
2118
autofill:
2219
type: hidden

classes/Blueprint.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Roman Gsponer <support@plain-solutions.net>
88
* @link https://plain-solutions.net/
99
* @copyright Roman Gsponer
10-
* @license https://plain-solutions.net/terms/
10+
* @license MIT /
1111
*/
1212

1313
use Kirby\Filesystem\Dir;
@@ -124,8 +124,6 @@ private static function getFormfields(): array
124124

125125
$fieldsets = [];
126126

127-
$out = [];
128-
129127
$customfields = static::getBlueprint('blocks/customfields', true);
130128

131129
$fieldsets = static::mergeFormfields(__DIR__ . '/../blueprints/blocks/formfields', $fieldsets, $customfields);

0 commit comments

Comments
 (0)