Skip to main content

cPanel Plugin File Generator Display condition

Comments

6 comments

  • cPanelMichael
    Hello :) I believe the following documentation applies here: How to (selectively) hide your plugin from resellers Thank you.
    0
  • Sliffer21
    Hello, I seem to be having trouble searching for the correct way to do this. Inside of WHM I am using the cPanel Plugin File Generator to make a cPanel Icon that links to our client area, however I only want it to be seen by accounts that are not resold. I am using "$isresold == 0" for the "Display Test Condition" field however it seems to show up for everyone in their cPanel home screen. Sorry for any confusion and lack of understanding with creating plugins as this is my first. Thanks
    0
  • cPanelMichael
    Thank you for the additional information. As for cPanel plugins, an alternative in your situation would be to select the "Feature Manager" check box when generating the install file. You could then ensure the feature is not enabled for feature lists used by packages available to your resellers. As for the "isresold" variable, what entry are you using in combination with it to hide the plugin? Thank you.
    0
  • Sliffer21
    Hello, For the "isresold" I want it to equal 0 (False) So I have "$isresold == 0" however it is still be displayed on directly hosted customers and resold customers.
    0
  • cPanelKenneth
    You cannot assign a value to the $isreesold variable. That variable is set by the cPanel & WHM software to indicate whether the current account belongs to a reseller rather than root. You might try modifying the dynamicui.conf entry to contain something like: if=>!$isresold
    If that doesn't work, you'll need to use feature lists to prevent the icon's display.
    0
  • Sliffer21
    OK thank you, I have to use the feature list for it to work as intended. Thanks for the help
    0

Please sign in to leave a comment.