Hello and good afternoon,
I have been assigned a role with an existing business who have a site running Modx.
I am completely new to Modx and have tried, albeit unsuccessfully to install reCAPTCHA and get it working on the site & am wondering if you can please assist.
So, from what I can gather I have source files and then the PHP callbacks/requests.
I have the contact us page under ‘resources’.
That calls a template - ‘content template’ where I think the code goes.
I have installed the mod reCAPTCHA 2 but still no joy.
I hope you can help as I have literally no idea what to do but need to implement this ASAP as the owners are being bombarded with a lot of spam.
I have followed some tutorials but I genuinely have no idea what to do.
I have tried the following;
https://forums.modx.com/thread/102103/formit-and-recaptcha-proper-installation
https://docs.modx.com/extras/revo/formit/formit.tutorials-and-examples/formit.examples.custom-hook
This is my code for the page;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>[[*longtitle]] - [[++site_name]]</title>
<base href="[[++site_url]]" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="www" />
<meta name="description" content="[[*meta-description]]" />
<meta name="keywords" content="[[*meta-keywords]]" />
<meta name="format-detection" content="telephone=no">
<!-- GLOBAL STYLE SHEET -->
<link href="assets/css/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="assets/scripts/jquery-1.7.1.min.js"></script>
<!-- Include jQuery Cycyle (Production) -->
<script type="text/javascript" src="assets/scripts/jquery.cycle.lite.js"></script>
<script type="text/javascript">
$(function() {
$('#testimonial_wrapper').cycle();
});
</script>
<style type="text/css">
body {
background:url(assets/images/backgrounds/IMAGE.jpg) #4d190e no-repeat;
}
</style>
</head>
<body>
[[$html-facebook]]
<div id="WRAPPER">
<div id="HEADER">
[[$html-header]]
</div><!-- CLOSE HEADER -->
<div id="CONTENT_WRAPPER">
<div id="NAVIGATION">
[[Wayfinder? &sortOrder=`DESC` &sortBy=`menuindex` &startId=`2` &limit=`6`]]
</div><!-- CLOSE NAVIGATION -->
<div id="LEFT_COLUMN">
<div id="text_area">
<h1>[[*longtitle]]</h1>
[[!FormIt?
&hooks=`recaptchav2`
]]
[[*pre-code]]
[[*content]]
[[*post-code]]
[[$html-back-to-top]]
[[!recaptchav2_render]]
[[!+fi.error.recaptchav2_error]]
</div><!-- close text_area -->
</div><!-- CLOSE LEFT_COLUMN -->
<div id="RIGHT_COLUMN">
[[$html-right-sidebar]]
</div><!-- CLOSE RIGHT_COLUMN -->
<div class="clear"></div>
</div><!-- CLOSE CONTENT_WRAPPER -->
</div><!-- CLOSE WRAPPER -->
[[$html-footer]]
<!-- jQuery Back to top -->
<script src="assets/scripts/scroll-to-top/jquery.scroll.pack.js" type="text/javascript"></script>
<script src="assets/scripts/scroll-to-top/jquery.easing.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$(".toTop").scrollToTop({speed:1250,ease:"easeInOutCubic"});
});
</script>
[[$html-google]]
</body>
</html>
Very many thanks in advance
Kind regards