Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marten-seemann/oxid_recaptcha
implements ReCaptcha for OXID eShops
https://github.com/marten-seemann/oxid_recaptcha
Last synced: about 19 hours ago
JSON representation
implements ReCaptcha for OXID eShops
- Host: GitHub
- URL: https://github.com/marten-seemann/oxid_recaptcha
- Owner: marten-seemann
- License: gpl-3.0
- Created: 2016-01-06T12:25:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T04:19:04.000Z (over 4 years ago)
- Last Synced: 2024-12-13T02:04:08.896Z (10 days ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ReCaptcha for OXID
Implements [Google's ReCaptcha](https://www.google.com/recaptcha) into OXID eShops.
## Installation
Download the [latest release](../../releases/latest) and copy the contents of the folder `copy_this` to your server. **Do NOT** download the source files and just upload them to your server, that won't work.
Generate a key pair on [https://www.google.com/recaptcha/admin](https://www.google.com/recaptcha/admin) and set the values in the module settings in the OXID backend. Then activate the module.
### for ROXID users
No further action required.
### for users of other templates
In addition to that, for users of other templates, some additional blocks to the template. The following files have to be modified:
* `form/contact.tpl`
* `form/pricealarm.tpl`
* `form/suggest.tpl`
* `form/privatesales/invite.tpl`Enclose the label in a block named *captcha_label*, for example in the `form/contact.tpl`, replace (around line 56)
```html
[{ oxmultilang ident="VERIFICATION_CODE" suffix="COLON" }]
```by
```html
[{block name="captcha_label"}]
[{ oxmultilang ident="VERIFICATION_CODE" suffix="COLON" }]
[{/block}]```
and the actual captcha in a block named *captcha_body*
```html
[{assign var="oCaptcha" value=$oView->getCaptcha() }]
[{if $oCaptcha->isImageVisible()}]
[{else}]
[{$oCaptcha->getText()}]
[{/if}]
[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]
```by
```html
[{block name="captcha_body"}]
[{assign var="oCaptcha" value=$oView->getCaptcha() }]
[{if $oCaptcha->isImageVisible()}]
[{else}]
[{$oCaptcha->getText()}]
[{/if}]
[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]
[{/block}]
```Similar modifications have to be performed for the other three files listed above.