Confirming terms of use at registration
PermalinkI would like that a user has to confirm the "terms of use" (via checkbox) if he registers at my site....
Could anybody help please?
Thank you very much, Kai
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
root/concrete/single_pages/register.php should be copied in
root/single_pages/register.php
In redirect.php eg.:
#############################################
<div>
<label>
<input name='agbs' id='agbs' type='checkbox' value='alles_klar' <?php if ($_POST['agbs']=="alles_klar") echo "checked"; ?>><br>
<?php echo "Hiermit bestätige ich die <a href='http://www.theraping.de/index.php?cID=180'>Nutzungsbedingungen</a>,die <a href='http://www.theraping.de/index.php?cID=181'> allgemeinen Regeln</a> sowie die <a href='http://www.theraping.de/index.php?cID=182'>Datenschutzerklärung</a> gelesen und akzeptiert zu haben."; ?>
</label>
</div>
###################################
and in root\concrete\core\controllers\single_pages\register.php:
line 48: $agbs =$_POST['agbs'];
line 58: if ($agbs!="alles_klar"){
$e->add(t("Sie müssen bitte die Nutzungsbedinungen, Regeln und die Datenschutzerklärung akzeptieren."));
}
....with that it works :-)