Hm...idk if I get you correct...
I'm achieving this by linking to a resource which holds the "People"-snippet:
<p><a href="[[~241]]?user=[[+id]]">">view profile</a></p>
"People"-snippet call on resource 241:
The [[+user]]-placeholder is "built" in the mySession-snippet:
$myUserId = $_GET['user'];
$profile = $modx->getObject('modUserProfile', array('internalKey' => $myUserId));
This looks for the URL-variable which holds the user-id.
Hope this helps...
Bob Ray did point me to this:
You should also think about the security implications, because anyone can access that page with any user ID (including yours). Putting it in a $_SESSION variable wherever you currently construct the URL would be safer:
$_SESSION['user'] = $userId;
So you should better try to get the $_SESSION variable set! Then I think you don't have to use the URL-variable, you have to check for the $_SESSION variable in the mySession-snippet I think...didn't try this yet, because my profile-sites are in a restricted area.
[ed. note: profilneurotiker last edited this post 5 years, 6 months ago.]