Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Limit plugin for some resselers

Discussion in 'cPanel Developers' started by activa, Nov 28, 2010.

  1. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    207
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    Hello ,

    i have a cpanel plugin , is there any option or howto limit this plugin for some resselers user's . now this plugin is for X3 Theme , and availabale for all users usinf the X3 Themes , i want to limit this plugins for just some reseller's users .

    Thanks
     
  2. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This can be done, but you will need to manually create your dynamic UI file to do so.

    AddingIconsAndGroup < DeveloperResources < TWiki


    Now, with this, you will notice that there is an "if" block you can use, under this you can do something like if=>$CPDATA{'OWNER'}=='resellername' to limit the users that see the plugin.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice