The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel Plugin File Generator Display condition

Discussion in 'User Experience' started by Sliffer21, Jan 28, 2014.

  1. Sliffer21

    Sliffer21 Member

    Joined:
    Dec 5, 2013
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. Sliffer21

    Sliffer21 Member

    Joined:
    Dec 5, 2013
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  4. Sliffer21

    Sliffer21 Member

    Joined:
    Dec 5, 2013
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    WV, USA
    cPanel Access Level:
    Root Administrator
    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.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  6. Sliffer21

    Sliffer21 Member

    Joined:
    Dec 5, 2013
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    WV, USA
    cPanel Access Level:
    Root Administrator
    OK thank you, I have to use the feature list for it to work as intended.

    Thanks for the help
     
Loading...

Share This Page