Thank you both for replying!
That sounds like a good move to increase flexibility
Scotty
I’m still not sure what I’m doing wrong though. None of my changes appear to be happening.
Another example is in the Register function I would like to amend
$fullname = $modx->db->escape($modx->stripTags($_POST['fullname']));
as the client wants a first middle and last name field, which works fine and is populating my db as it should but if I do:
$firstname = $modx->db->escape($modx->stripTags($_POST['first_name']));
$middlename = $modx->db->escape($modx->stripTags($_POST['middle_name']));
$lastname = $modx->db->escape($modx->stripTags($_POST['last_name']));
$fullname = $firstname.$middlename.$lastname;
or even
$fullname = "Howling Mad Murdock"
and save it, it will still leave that field blank, moreover, if I then use the default register template, it adds the $_POST[’fullname’] to the database...but it shouldn’t anymore after those changes.
I’ve tried deleting the webloginpe snippet from the cache file completely, but somewhere it is still calling an older version of the class.
Any idea where anyone?
On a sidenote Scotty, this is a great snippet, thanks for sharing it!
Taff