cPanel Plugin File Generator Display condition

Sliffer21

Member
Dec 5, 2013
12
0
1
WV, USA
cPanel Access Level
Root Administrator
Hello,

Could someone let me know what I would need to put in the field "Display Test Condition" to only show the plugin link to clients that are NOT resold and belong to "root"?


Thank you
 

Sliffer21

Member
Dec 5, 2013
12
0
1
WV, USA
cPanel Access Level
Root Administrator
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
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:

Code:
if=>!$isresold
If that doesn't work, you'll need to use feature lists to prevent the icon's display.