Adding support for hCaptcha / reCAPTCHA on VOD / access Print

  • 0

Required CMS version

Make sure the CMS is running version 4.0.6410 or later.

Files that will need to be replaced:

1) header.tpl:

Change line with:

onclick="return odlogin()"

to:

<?php if (!in_array($pagename, ["odlogin", "register"])) { ?>
onclick="return odlogin()"
<?php } ?>

We're removing the login popup on the login and register page. Clicking Sign In on these pages will go to odlogin.php directly.

You'll want to make sure there's a call to this template within this file:

<?php LoadTemplate("globals/vod_functionality.tpl"); ?>

2) The following template files should be replaced in full with the latest default files available here from the theme you started with:
https://cs.elevatedx.com/newest_templates.php

  • register.tpl
  • globals/vod_functionality.tpl
  • odlogin.tpl

Set up within admin area:

In /cms_admin/areas.php, choose the VOD area in use that will be edited.

There will be an area titled "Captchas"

9_blobid0.jpg

From this point, you'll want to change "Internal" to hCaptcha or reCAPTCHA.

At this point you will see additional options:

10_blobid1.jpg

By default, you'll want to choose Key Type as Invisible. This makes it where the user will only see a captcha if they are required to verify themselves.

Site Key and Secret are provided by hCaptcha or reCAPTCHA.

Areas that will need to be tested:

Once these are all in place, here are the pages that will need to be tested:

  • Tour area: Click "Log in" at the top and see that popup/login process works.
  • /< area name >/ -> Click Login
  • /< area name >/register.php
  • /< area name >/odlogin.php
  • /< area name >/join.php

Was this answer helpful?

« Back