Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Write Review

Reviews

Admin Activate Email - 1.0 by faviouz

Nice plugin, worked without problems. There is only one thing I wanted to change, which is a detail in the email sent to the user: The email started with the sender's user name instead of the recipient's user name.

Here is the fixed adminactivateemail.php, which uses the recipient's user name:

PHP Code:
<?php
/**
 * Admin Activate Email 1.0
 * Copyright 2011 Fábio Maia, All Rights Reserved
 */
 
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
    die(
"Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook("admin_user_users_coppa_activate_commit""adminactivateemail_run");

function 
adminactivateemail_info()
{
    return array(
        
"name"            => "Admin Activate Email",
        
"description"    => "A plugin which emails users after being activated by the administrator.",
        
"website"        => "http://mybb.com",
        
"author"        => "Fábio Maia",
        
"authorsite"    => "http://community.mybb.com/user-16693.html",
        
"version"        => "1.0",
        
"guid"             => "0ba023d1cd47865867778b73940c0bf7",
        
"compatibility" => "14*,16*"
    
);
}

function 
adminactivateemail_run()
{
    global 
$mybb$lang$user;
    
    
$lang->load("adminactivateemail");
    
    
$adminactivateemail_subject $lang->sprintf($lang->adminactivateemail_subject$mybb->settings['bbname']);
    
$adminactivateemail_message $lang->sprintf($lang->adminactivateemail_message$user['username'], $mybb->settings['bbname'], $mybb->settings['bburl'], $mybb->settings['bbname']);
    
    
my_mail($user['email'], $adminactivateemail_subject$adminactivateemail_message);
}
?>

Written By: FriendFX, 16th July 2012

Works perfectly with the slight change given by previous reviewer.

Written By: iss42, 12th March 2013

It works! I also used the modification above, everything works fine now. Thanks!

Written By: denijane, 18th September 2013

Write Review