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!

Change cPanel User Contact Preferences using External API

Discussion in 'cPanel Developers' started by dezio, May 28, 2013.

  1. dezio

    dezio Registered

    Joined:
    Apr 15, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hello,

    I want two checkbox located here:
    cPanel > Preferences section : Update Contact Info > Contact Information & Preferences > Contact Preferences
    to be unchecked by default when I create cpanel account using WHMCS.

    Because I am reseller, only way I think I can do it is using external API, but I cannot find how I can do that.

    I looked at this function call: Modify Account — modifyacct
    but there isnt any input option for those two checkboxes..

    Is there any other way to do that?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,197
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    The configuration values for these options are stored in:

    Code:
    /home/$username/.cpanel/contactinfo
    In particular, with these lines:

    Code:
    notify_bandwidth_limit: 0
    notify_disk_limit: 0
    notify_email_quota_limit: 0
    You could develop a custom script that manually modifies this file after an account is created.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dezio

    dezio Registered

    Joined:
    Apr 15, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Thanks Michael, its a solution that I was looking for :)
     
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