Jump to content

Weebly Update FTP Credentials


web2008

Recommended Posts

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.

Link to comment
Share on other sites

Custom.css don`t works! Below is the code and attached is the screenshot.

<a href="clientarea.php?action=productdetails&amp;id=1234&amp;addonId=123&amp;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>

 

weebly.png

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

2WQOkEe.png

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated