Skip to:
Content
Pages
Categories
Search
Top
Bottom

Help for my plugin "admin notification"

  • Hi,

    I need help to develope a plugin that notificat and send email to admin about who have post a message on forum (guest or member) :

    ########################################################################

    function admin_notification() {

    if (bb_is_user_logged_in()){$message_notification=”a membre have post a message”;}else{$message_notification=”a guest have post a message”;}

    $admin=”admin@exemple.com”;

    bb_mail($admin, “new post on your forum”, $message_notification);

    }

    add_action(‘bb_new_post’, ‘admin_notification’);

    ########################################################################

    But this code always send “a membre have post a message” even if a guest post …

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