Hi, I installed Vanilla 2.0.16 yesterday. New users should be approved by the admin. As in the former versions, I don't get a notification, when a new user registers. Can I change this? Can I delegate the confirmation of new users to a moderator? I set the permissions but he can't do so.
5 · ·
Comments
EDITED: sorry @cdavid is correct, I had forgotten that WordPress is doing the registration for me via Vanilla SSO ProxyConnect and so it WordPress that is notifying me NOT Vanilla. But I seem to remember that some notification was happening when I was only using password authentication. It certainly gets into Recent Activity, so could be a notification via an RSS feed and Growl etc.
- Spam
- Abuse
1 · Insightful Awesome LOL ·/cd
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·Developer at Vanilla Forums, Inc. [GitHub, Twitter]
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
1 · Insightful Awesome LOL ·Now I'm trying to figure out an alternate way to let everyone know they were appoved. Any ideas? Can I send a bulk email to all new users?
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·Open
applications/dashboard/controllers/class.entrycontroller.php
Line 791 put
mail('your@email.com', 'titel', 'message');
So it send you email each time that sombody register put the admin email.. So its hard bad codded but runnig for me :-)
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·My existing line looks like this..
$this->View = "RegisterThanks"; // Tell the user their application will be reviewed by an administrator.
How do i work this line in without breaking it? :) cheers
- Spam
- Abuse
0 · Insightful Awesome LOL ·Many thanks to ubik74, this was exactly what I was looking for!
I implemented it thus (applications/dashboard/controllers/class.entrycontroller.php, line 791):
...
$this->View = "RegisterThanks"; // Tell the user their application will be reviewed by an administrator.
$userdata = $this->Form->FormValues();
mail($this->UserModel->Get("1")->Email, T('New user waiting for approval'), T('A new user submitted a registration request: ')."\n".$userdata['Email']);
This sends emails to user 1, and (almost) nothing is hardcoded. But was the lack of automatic notification a feature?
- Spam
- Abuse
0 · Insightful Awesome LOL ·You guys rock! I started using Vanilla 2 this week and I properly received one email notification for a pending user...and then it stopped altogether.
So even though my issue arose nearly a year after this thread ended, luxferrari's code still worked perfectly in Vanilla 2.0.18.4 -- Thank you!!!!
- Spam
- Abuse
0 · Insightful Awesome LOL ·In version 2.0.18.4, the line:
$this->View = "RegisterThanks"; ....
is on 1034. Add the following two lines on 1035 and 1036, respectively.
1035: $userdata = $this->Form->FormValues(); 1036: mail($this->UserModel->Get("1")->Email, T('New user waiting for approval'), T('A new user submitted a registration request: ')."\n".$userdata['Email']);
Remember to apply this fix again if you upgrade to a newer version (unless Vanilla adds it).
- Spam
- Abuse
0 · Insightful Awesome LOL ·