JamieErrota Posted January 1, 2019 Share Posted January 1, 2019 Hello, Happy New Year! I’m trying to get the auto response ticket poster to have a different name. Currently it’s named ‘System’, I’m looking to change this. WHMCS said this is only possible via a custom hook which changes looks at the poster and checks if it’s ‘system’ if so then it changes it. any ideas? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst WHMCS Sachin Posted January 2, 2019 WHMCS Technical Analyst Share Posted January 2, 2019 Hi Jamie, Happy New Year to you too 🙂 It appears your query was resolved by the custom hook provided by Nathan. Feel free to get back to us if you need any further assistance 🙂 0 Quote Link to comment Share on other sites More sharing options...
edvancombr Posted January 2, 2019 Share Posted January 2, 2019 20 hours ago, JamieErrota said: Hello, Happy New Year! I’m trying to get the auto response ticket poster to have a different name. Currently it’s named ‘System’, I’m looking to change this. WHMCS said this is only possible via a custom hook which changes looks at the poster and checks if it’s ‘system’ if so then it changes it. any ideas? Could you share the solution? 0 Quote Link to comment Share on other sites More sharing options...
JamieErrota Posted January 3, 2019 Author Share Posted January 3, 2019 Hello, For @edvancombr and anyone else who might want to do this. This code was provided by WHMCS directly so I take no credit. Create a hook with the below code: <?php use WHMCS\Database\Capsule; add_hook('TicketAdminReply', 1, function($vars) { $newAdmin = 'NEW NAME'; if ($vars['admin'] == 'System') { Capsule::table('tblticketreplies') ->where('id',$vars['replyid']) ->update(['admin' => $newAdmin]); } }); Any problems more than welcome to contact me. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.