garybarr Posted September 29, 2020 Author Share Posted September 29, 2020 Anyone know a NEW way to do this? V8.0 has changed all this, but yet, left a broken "Hide Inactive Clients" that won't save your preference. I never ever want it to be "ON" for ANY admin. We do a lot of searches and need to be able to always see all users in searches. I can't say I like a single thing about the cosmetic changes in the last couple version. 0 Quote Link to comment Share on other sites More sharing options...
garybarr Posted September 29, 2020 Author Share Posted September 29, 2020 I did search all the files and found the two previous lines have been separated into two files: \whmcs\admin\templates\blend\intellisearch-results.tpl --Line 159: <span class="hide-inactive"><input type="checkbox" id="intelliSearchHideInactiveSwitch" data-size="mini" data-label-text="{lang key="global.hideInactive"}" checked="checked"></span> --Change to: <span class="hide-inactive"><input type="checkbox" id="intelliSearchHideInactiveSwitch" data-size="mini" data-label-text="{lang key="global.hideInactive"}" unchecked="checked"></span> \whmcs\admin\templates\blend\nav.tpl -- Line 508: <input type="hidden" id="intelliSearchHideInactive" name="hide_inactive" value="1"> --Change to: <input type="hidden" id="intelliSearchHideInactive" name="hide_inactive" value="0"> If anyone finds a BETTER way to make this happen where I don't have to edit two files every time there is an update... let me know. 0 Quote Link to comment Share on other sites More sharing options...
steph.hope Posted September 30, 2020 Share Posted September 30, 2020 Does anyone know of a way to always show inactive clients in Intellisearch in Six template? I tried looking for equivalents of the above lines but no luck. 0 Quote Link to comment Share on other sites More sharing options...
ramf Posted April 9, 2021 Share Posted April 9, 2021 (edited) 4 hours ago, brian! said: the hook below shows inactive clients by default Thanks for providing this. In order to use it I should add this to a new file with a php extension and add it to the /includes/hooks/ folder - right? It will affect the all the relevant search fields? Now when I'm using this file - in every page loading I get this automatically: So even If i'm not clicking on the search field - the search bar is opened with this message. Can you please help? Thanks! Ram Edited April 9, 2021 by ramf 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 10, 2021 Share Posted April 10, 2021 15 hours ago, ramf said: In order to use it I should add this to a new file with a php extension and add it to the /includes/hooks/ folder - right? yep - the same routine as normal. 15 hours ago, ramf said: It will affect the all the relevant search fields? it wasn't intended to affect the search term - I never noticed it doing that cos I think I was using Gary's modified template changes - all the hook does (or should do) is to show inactive clients too on the pages that show those lists (clients/domains/addons/services etc) - it has nothing to do with the search bar. 15 hours ago, ramf said: So even If i'm not clicking on the search field - the search bar is opened with this message. having updated Blend with clean files, I can see this occurring.... just delete the hook, sorry but i'm not going to spend time fixing it. 0 Quote Link to comment Share on other sites More sharing options...
ramf Posted April 10, 2021 Share Posted April 10, 2021 2 hours ago, brian! said: having updated Blend with clean files, I can see this occurring.... just delete the hook, sorry but i'm not going to spend time fixing it. O.k. Thanks anyway! 0 Quote Link to comment Share on other sites More sharing options...
UnwilfulExpenditure Posted April 10, 2021 Share Posted April 10, 2021 2 hours ago, brian! said: sorry but i'm not going to spend time fixing it. Great - they broke brian! I hope they're happy now! 😂 0 Quote Link to comment Share on other sites More sharing options...
Toxyl Posted April 23, 2021 Share Posted April 23, 2021 <script> // this will disable the hiding of inactive clients if the setting is enabled. // certainly not the best hack but it seems to do the job. setTimeout(function () { $("#checkboxShowHidden:checked").click(); }, 1000); </script> I 'fixed' it by putting this before the </body> in footer.tpl 0 Quote Link to comment Share on other sites More sharing options...
ramf Posted April 25, 2021 Share Posted April 25, 2021 Thanks @Toxyl! You can also see a solution here: 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted May 7, 2021 Share Posted May 7, 2021 I modified the hook from Brian! to have inactive clients show by default, but still allow you to hide them when you toggle the switch. I tried to post it, but am getting a "403 Forbidden" when I try to submit the reply with code in the code tags. Is there an issue with the forums, or is it my account? 0 Quote Link to comment Share on other sites More sharing options...
ramf Posted May 7, 2021 Share Posted May 7, 2021 4 hours ago, SeanP said: I modified the hook from Brian! to have inactive clients show by default, but still allow you to hide them when you toggle the switch. I tried to post it, but am getting a "403 Forbidden" when I try to submit the reply with code in the code tags. Is there an issue with the forums, or is it my account? @SeanP maybe adding a link will work instead of adding the code here directly. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 7, 2021 Share Posted May 7, 2021 8 hours ago, SeanP said: I modified the hook from Brian! to have inactive clients show by default, but still allow you to hide them when you toggle the switch. I tried to post it, but am getting a "403 Forbidden" when I try to submit the reply with code in the code tags. Is there an issue with the forums, or is it my account? almost certainly it will be because we now can't use $ _ GET (remove spaces) in posts (in code or text)... it used to work with no issues, but I assume now breaks a firewall filter somewhere and returns a 403 error - we've posted about that a number of times, but nobody from WHMCS is a) paying attention, b) doing their job and c) probably even care. as ramf says, post it as an attachment or upload it somewhere and post the link. 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted May 8, 2021 Share Posted May 8, 2021 (edited) Here is the code: https://controlc.com/df46af16 This hook will show all inactive clients by default, but the toggle switch still works to allow you to hide them if you'd like. Edited May 8, 2021 by SeanP 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 8, 2021 Share Posted May 8, 2021 looking at that hook code, it seems we now can't post $ _ SERVER either! 🙄 0 Quote Link to comment Share on other sites More sharing options...
Magicklug Posted May 11, 2021 Share Posted May 11, 2021 This fixed it, thanks! 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.