With the next release, can ANY service be disabled via a snippet param?
Example: Let’s say you want a locked down registration process (Added By Admins Only) AND you don’t want users to be able to see OTHER USER’s Profiles (thinking more along the lines of a user based application opposed to a traditional user based community website...)
Will something like this be an option?
&disableServices=`register,registernew,viewprofile`
...where the above example would prevent anyone from passing custom values via the URL to gain access to a WLPE service (as we discussed earlier in this thread)
Or, maybe you just don’t want users to be able to delete their profiles just because WLPE is active/installed:
&disableServices=`deleteprofile`

Yeah, I am going to try and ship a few example plugins for use with the events, if nothing else, just to show how useful they can be.
Awesome! I am very excited to get running with this, especially with the ability to control what can/can’t happen (services) and also your work on the MODx Events...superb! I will try and remain patient a bit longer
A combination of semantics and laziness. After I started coding the register block, I realized I needed 2 services. One service to display the form (at the time I had called IT register) and one service to process the form input and add the user to the database.
Also, what’s the difference between the "register" and "registernew" services?
[!WebLoginPE? &disableServices=`deleteprofile,users` !]
[!WebLoginPE? &disableServices=`register` !]
$userImageFilePath = $modx->config['base_path'].'assets/snippets/webloginpe/userimages/'.str_replace(' ', '_', strtolower($currentWebUser['username'])).$ext;
$userImageFileURL = $modx->config['site_url'].'assets/snippets/webloginpe/userimages/'.str_replace(' ', '_', strtolower($currentWebUser['username'])).$ext;
$userImageFilePath = $modx->config['base_path'].'assets/snippets/webloginpe/userimages/dimmy'.$ext; $userImageFileURL = $modx->config['site_url'].'assets/snippets/webloginpe/userimages/dimmy'.$ext;
$this->Username = $_POST[’username’];
<?php...
$currentWebUser = $modx->getWebUserInfo($modx->getLoginUserID());
if (!$currentWebUser)
{
$currentWebUser['username'] = $this->Username;
}
Thanks David!
Jaw dropping
AMAZING !
I mean the templatable manager interface, the powerful &usersList paramater with filters, the active user thing... man, this is really awesome and such a quick update to the already great code you just fed us !
While I am here, I forgot to say it the first time but amazing job documenting the snippet too
Hats off Dr Scotty !
Just added it to my signature
Any url for an Amazon wishlist?

Just added it to my signature
</off topic>
<?php...
if (!empty($_FILES['photo']['name']))
{
$photo = $this->CreateUserImage();
if (!empty($this->Report))
{
return;
}
}
else
{
$photo = $modx->config['site_url'].'assets/snippets/webloginpe/userimages/default_user.jpg';
}
// If all that crap checks out, now we can create the account.
$currentWebUser = $modx->getWebUserInfo($modx->getLoginUserID());
if (!$currentWebUser)
{
$currentWebUser['username'] = $this->Username;
}
{
$currentWebUser['username'] = 'nousername';
}