Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    14

    Default Any updates on modify acct hook?

    A while back a request for a modify account hook was made.
    cPanelMatt added it personally.
    This was in November 2009.

    Modify Account Hook
    modify acct hook

    Is there any updates on this?

    I have a database that is kept up-to-date with information about all our cPanel server accounts through hooks and the only thing I'm missing is to create a hook when an account gets it's main domain changed.

    **edit** Now that I'm researching this I also discovered there doesn't seem to be any way to modify an account from command line.
    Create and delete account has their own scripts (/scripts/createacct and /scripts/killacct) but I can't see any for modify account. I even looked in /usr/local/cpanel/bin but no luck.
    Is this also missing?
    Last edited by Svintoo; 01-19-2011 at 09:59 AM.

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default Re: Any updates on modify acct hook?

    the modifyacct hook is not in the product yet. What are you looking to change in specific?
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member
    Join Date
    Apr 2009
    Posts
    14

    Default Re: Any updates on modify acct hook?

    I need to run a script when an account gets modified so I can update my central database with the changes.

    These are the modifications I'm interested in:
    - Change of main domain.
    - Change of package (upgrade/downgrade).
    - Change of ip.

    In worst case I don't even need to know what has changed, just which account has changed.
    I can then get all information through the xml-api.

  4. #4
    Member
    Join Date
    Aug 2010
    Location
    Brisbane, AU
    Posts
    45

    Default Re: Any updates on modify acct hook?

    Hi there,

    I was looking for the same thing just a couple of days ago. cPanelDavidN did reply to a thread I opened in the Developers Forum. Unfortunately this kind of hook isn't available (yet).

    For me, I was simply looking for a script like the postwwwact script that runs every time after an account has been modified.

    Would be great if that could be implemented in the near future.

    Thx & Regards,
    Bjorn

  5. #5
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default Re: Any updates on modify acct hook?

    It will be included in 11.30. I just merged it in last night.

    One thing that I should note is that due to the way that the underlying code works, I can only provide the new settings w/o completely rewriting the function (we're to far along in the 11.30 development cycle to do that). Comparing new vs. old will be on you in the premodifyacct hook (there is also a postmodifyacct hook as well).
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

Similar Threads & Tags
Similar threads

  1. Modify Acct Screen, check if domain/username occupied before submitting.
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 4
    Last Post: 08-22-2011, 08:03 AM
  2. modify acct hook
    By blargman in forum cPanel Developers
    Replies: 0
    Last Post: 02-03-2010, 08:54 AM
  3. Modify Account Hook
    By Snipehunter000 in forum cPanel Developers
    Replies: 4
    Last Post: 12-14-2009, 08:44 AM
  4. modify package doesn't seem to run through users and modify!!
    By rpmws in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2005, 02:19 PM
  5. FTP acct still active when acct suspended
    By AlaskanWolf in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-11-2005, 09:41 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube