-
- 24,544 Posts
Not exactly, but this should do it:
$screenName = ''; // set this to what the user entered
if ($modx->getCount('userData', array('screenName' => $screenName))) {
/* screen name is already in use */
};
-
- 708 Posts
Is this the entire snippet or part of the above snippet?
Todd
-
- 24,544 Posts
It would be a part of some other snippet where you'd respond to the duplicate name somehow (where the comment is).