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.

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 Forums Analyst
    Staff Member

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