sorry about that,
First, I added the code to a snippet and added that to the verify page that the email would link to. then in another tab, without logging out of manager, I tested the register page, it redirected me to another resource which had the simple check your mail message. then I would go to thunderbird get the email sent out by my local site and click the link.
a tab would open in FF with the message: your account has been activated! this page contains the verify snippet and the snippet for page creation. the problem here is that the new page would be created in my admin’s name (cookie issue?), not the name of the user who just registered and the resource group box still didn’t have a checkmark showing it was assigned only to this group, but I figured this is because I didn’t re-edit, or flush as you had instructed, I was mainly concerned about the name of the document.
so, to test further, I would clear all my caches and flush, delete the user I just registered and the page which was created in the admin’s name. I would then clear ff history and close the browser. I then opened firefox and navigated to my revoinstall like someone surfing the web, went to the registration page, registered, I was then directed to the check email page.
then I retrieved the email, click the link and instead of your account has been activated, I get the error referring to the page creation snippet.
here is the snippet, I replaced the last two lines with the example from your first code post, I even left in the comment to remind me later.
<?php
$userName = $modx->user->get('username');
$profile = $modx->user->getOne('Profile');
$fullName = $profile->get('fullname');
$parentId = '7';
$content = '<p>Welcome to your personalized home page [[+name]]! </p>';
$templateId = '4';
$resource = $modx->newObject('modResource');
$resource -> set('pagetitle',$userName);
$resource ->set('alias', $userName);
$resource ->set('longtitle', 'Personal page of ' . $fullName);
$resource -> set('parent',$parentId);
$resource -> set('content', $content);
$resource -> set('template', $templateId);
$resource -> set('menu title', $userName);
$resource -> set('published', '1');
$resource -> set('richtext', '1'); // or 0
$group = $modx->getObject('modResourceGroup', array('name'=>'client'));
// use newObject() instead of getObject in the line above if you need to create the group
$intersect = $modx->newObject('modResourceGroupResource');
$intersect->addOne($resource);
$intersect->addOne($group);
$intersect->save();
$resource -> save();
?>