agarzon Posted September 4, 2019 Share Posted September 4, 2019 Once again WHMCS is forcing us to use what they think is a good idea and once again they forgot to add an option to allow us to decide if we want that feature or not. For those who does not want to use the new "CC Recipients" in the ticket system, you can get rid of it by adding this to your custom css: #sidebarTicketCc { display: none; } I hope this helps you. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 4, 2019 Share Posted September 4, 2019 They aren't forcing you to anything 🙂 You can simply remove the code from your viewticket.tpl 😉 0 Quote Link to comment Share on other sites More sharing options...
agarzon Posted September 4, 2019 Author Share Posted September 4, 2019 18 minutes ago, DennisMidjord said: They aren't forcing you to anything 🙂 You can simply remove the code from your viewticket.tpl 😉 The code is generated and injected dynamically from JS not from any tpl file... nothing to do with viewticket.tpl. So no experienced coders will find the way to hide that non-optional feature. (optional when comes with a variable or setting that we can control from the panel or configuration.php) 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 4, 2019 Share Posted September 4, 2019 Ahh - I see. Alright, that's not the best way to implement it 😅 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 4, 2019 Share Posted September 4, 2019 You can disable it using this hook: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 2, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('CC Recipients'))) { $secondarySidebar->removeChild('CC Recipients'); } }); 0 Quote Link to comment Share on other sites More sharing options...
zitu4life Posted September 4, 2019 Share Posted September 4, 2019 also take a look in settings if helps too. Setup>General Setting>tab Support 0 Quote Link to comment Share on other sites More sharing options...
agarzon Posted September 4, 2019 Author Share Posted September 4, 2019 1 hour ago, zitu4life said: also take a look in settings if helps too. Setup>General Setting>tab Support No, that option is not related with the template, but how to process the incoming emails.... so is the right solution . 0 Quote Link to comment Share on other sites More sharing options...
zitu4life Posted September 5, 2019 Share Posted September 5, 2019 make senses have a option to disable it in the configuration. I would not know how to create a hook to. would submmit a ticket for that. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 5, 2019 Share Posted September 5, 2019 9 minutes ago, zitu4life said: make senses have a option to disable it in the configuration. I would not know how to create a hook to. would submmit a ticket for that. To create a hook, go to your WHMCS installation -> /includes/hooks/ and create a new .php file (name it RemoveCCTickets.php or anything else ending in .php) and paste the code I submitted in my previous post. Nothing more is needed. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2019 Share Posted September 5, 2019 (edited) 5 hours ago, zitu4life said: I would not know how to create a hook to. would submit a ticket for that. and I suspect Support would class that as a customisation and send you back here to ask how to do it. 🙂 Edited September 5, 2019 by brian! 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 5, 2019 Share Posted September 5, 2019 1 minute ago, brian! said: and I suspect Support would class that as a customisation and send you back here to ask how to do it. 🙂 Well, after they've referred to the official documentation for it 😛 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 5, 2019 Share Posted September 5, 2019 1 minute ago, DennisMidjord said: Well, after they've referred to the official documentation for it 😛 or one of the hook threads on here. 😛 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.