web2008 Posted August 21, 2018 Share Posted August 21, 2018 Does anyone know how to remove or disable the "Update FTP Credentials" (id = weeblyFtpUpdate) button in the Clientarea? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 21, 2018 Share Posted August 21, 2018 17 minutes ago, web2008 said: Does anyone know how to remove or disable the "Update FTP Credentials" (id = weeblyFtpUpdate) button in the Clientarea? if it's got an ID, have you tried using a custom.css entry with display: none; ? 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 21, 2018 Author Share Posted August 21, 2018 Thank you, I did not think so. Will this be something like the code below in custom.css? #weeblyFtpUpdate { display: none; } 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 21, 2018 Share Posted August 21, 2018 that might work - the problem is that this code isn't defined in any templates (I quickly checked before answering), so it must be being generated by WHMCS internally.... as I don't sell any MC products, i've never seen this myself. so if the css idea fails, paste the surrounding code and a screenshot and i'll have another think. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 21, 2018 Author Share Posted August 21, 2018 Custom.css don`t works! Below is the code and attached is the screenshot. <a href="clientarea.php?action=productdetails&id=1234&addonId=123&get_form=1" class="btn btn-default open-modal" data-btn-submit-id="weeblyFtpUpdate" data-btn-submit-label="Update FTP Credentials">Update FTP Credentials</a> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 21, 2018 Share Posted August 21, 2018 4 minutes ago, web2008 said: Custom.css don`t works! oh I hate this undocumented encoded MarketConnect nonsense! 🙄 *if* none of the other two buttons open modal windows, i'd be tempted to try editing clientareaproductdetails.tpl and change... {$addon.managementActions} to... {$addon.managementActions|replace:'open-modal':'disabled'} but that might have implications for other product addons that use modal windows... ultimately, you might need a hook to do this, but I don't think it would be easy.... i'd certainly need to see the entire code of that screenshot as that should effectively be the content of the array. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 23, 2018 Author Share Posted August 23, 2018 I contacted WMHCS Support who tell me that this is not possible. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 23, 2018 Share Posted August 23, 2018 13 minutes ago, web2008 said: I contacted WMHCS Support who tell me that this is not possible. that's often no guarantee that it isn't... just that they don't know how... did you try my previous suggestion? chances are it can be done, but would require a lot of manipulation of the array to remove the button. ugly solution might be to empty that language string ("Update FTP Credentials"), but I suspect the button would still be there just smaller. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted August 24, 2018 Author Share Posted August 24, 2018 Nothing happens when I change the code in the template. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 24, 2018 Share Posted August 24, 2018 1 hour ago, web2008 said: Nothing happens when I change the code in the template. whatever $addon.managementActions contains can almost certainly be manipulated - I can manipulate the other elements of that array... Weebly has been changed to Brian with a simple replace similar to above - however, I can't get it to show the management action buttons... i'm assuming it's just a string of HTML. 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.