Hi there. Is there anyway I can start a welcome ticket (from admin) in the Helpdesk on creation of a new account? Regards, W.>
Add this to /amember/application/configs/site.php: PHP: Am_Di::getInstance()->hook->add(Am_Event::USER_AFTER_INSERT, 'onUserAfterInsert'); function onUserAfterInsert(Am_Event $event){ $user = $event->getUser(); $di = Am_Di::getInstance(); $ticket = $di->helpdeskTicketRecord; $ticket->user_id = $user->user_id; $ticket->status = HelpdeskTicket::STATUS_AWAITING_USER_RESPONSE; $ticket->subject = 'Welcome user '.$user->name_f.' '.$user->name_l; $ticket->insert(); $message = $di->helpdeskMessageRecord; $message->admin_id = $di->authAdmin->getUserId(); $message->content = 'Welcome to helpdesk. Simple content'; $message->ticket_id = $ticket->ticket_id; $message->insert(); }