Skip to:
Content
Pages
Categories
Search
Top
Bottom

No Admin notification of new user

  • @michaelklasno

    Member

    I have a bbpress installed and working but I don’t get new user notifications. This is a stand alone application.

    Any help?

    Michael

Viewing 4 replies - 1 through 4 (of 4 total)
  • @chrishajer

    Participant

    There is no admin notification of new registrations by default. Sounds like it could be done with a plugin.

    @_ck_

    Participant

    Wow I can’t believe bbPress doesn’t do that.

    I’ve whipped up a function to do it, should be in the plugin browser soon or try this:

    <?php
    /*
    Plugin Name: New User Notification Email
    */
    add_action('bb_new_user', 'new_user_notification');

    function new_user_notification($user_id=0) {
    if (!$user_id) {$user_id=bb_get_current_user_info( 'id' );}
    $user=bb_get_user($user_id);

    $message = sprintf(__('New user registration on %s:'), bb_get_option('name')) . "rnrn";
    $message .= sprintf(__('Username: %s'), stripslashes($user->user_login)) . "rnrn";
    $message .= sprintf(__('E-mail: %s'), stripslashes($user->user_email)) . "rnrn";

    $message .= sprintf(__('Agent: %s'), substr(stripslashes($_SERVER["HTTP_USER_AGENT"]),0,80)) . "rnrn";
    $message .= sprintf(__('IP: %s'), $_SERVER['REMOTE_ADDR']) . "rnrn";

    $message .= sprintf(__('Profile: %s'), get_user_profile_link($user_id)) . "rnrn";

    @bb_mail(bb_get_option('admin_email') , sprintf(__('[%s] New User Registration'), bb_get_option('name')), $message, '' );
    }
    ?>

    @trent

    Member

    As long as this has a checkbox to turn on and off! I don’t know if I could handle getting notified if I had 1000 registrations a day, but is nice on a site with just a few registrations! Thanks _ck_ !

    Trent

    @_ck_

    Participant

    It’s a formal plugin now:

    https://bbpress.org/plugins/topic/new-user-notification/

    There’s probably only a handful of bbPress sites in existence that get more than a dozen registrations per day right now but they don’t want to put it in the core, so that’s fine. Simply deactivate it if getting too many emails. Then there’s gmail which can keep track of all of the registration threads as a single thread.

    (When the backpress integration is more complete I suspect this will then be in the core with the WordPress functions which has had it for years now, even on the biggest sites)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar