The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 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 { if ($user = $vbulletin->db->query_first("SELECT userid, username, email, languageid FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string($username) . "' AND usergroupid <> 3")) { $ip = IPADDRESS; eval(fetch_email_phrases('accountlocked', $user['languageid'])); vbmail($user['email']; webmaster@domain.tld, $subject, $message, true); } } |
#2
|
|||
|
|||
I havne't tested it, but you could try this:
Code:
vbmail($user['email'], $subject, $message, true, '', 'Cc: <webmaster@domain.tld>'); |
#3
|
|||
|
|||
Nope, not working! But thanks for trying :up:
|
#5
|
|||
|
|||
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) { vbmail('yourname@youremail.com', $subject, $message, true); } |
Благодарность от: | ||
Munkholm |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|