![]() |
Failed Login Notification on.... CC the admins?
Hi.
Would like to get a copy of the email, which is sent to the users, once they get locked out by the strikes system... Have made a amateurish attempt by adding "; webmaster@domain.tld", to the functions_login.php, but that didn't work :o Any suggestions on how to accomplish this? Thanks. Code:
if ($strikes_user['strikes'] == 4) // We're about to add the 5th Strike for a user |
I havne't tested it, but you could try this:
Code:
vbmail($user['email'], $subject, $message, true, '', 'Cc: <webmaster@domain.tld>'); |
Nope, not working! But thanks for trying :up:
|
Ah....how about this?
Code:
vbmail($user['email'], $subject, $message, true, '', "Cc: <webmaster@domain.tld>\n"); |
Editing the source code for vB is never a good idea. Doing that means you have to edit the code every time you upgrade.
Try this... Go to ACP->Plugins & Products->Plugin Manager. Scroll down to the bottom and click 'Add New Plugin'. On the page that follows enter this info... Product: vBulletin Hook Location: login_strikes Title: Admin Failed Login Email Execution Order: 5 Code... Code:
if ($strikes_user['strikes'] >= 5 && $message) |
All times are GMT. The time now is 02:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|