|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
parking a domain and creating e-mail domain forwarder at the same time?
dear whm users,
i am trying to get whm to park a domain and add a domain email forward at the same time. but this can be done in a very difficult way (parking a domain at whm, loggin into cpanel, adding the domain email forwarder). sadly the api has no trigger after parking a domain. i wonder if anybody has a clue how to do this in an easier way. thanks in advice, frkandris -- |
|
||||
|
Quote:
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
||||
|
You must create one per the documentation in the README file.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
||||
|
I think one thing that would make understanding hooks much easier is actually seeing the API2 calls used by the x3 interface. It's very difficult to understand hooks without having a basic knowledge of API2. I did a brief overview of API2 in my Customizing cPanel presentation at last year's conference which you can view at:
http://www.cpanel.net/docs/seminar07...ing_cPanel.pdf You can find the source for the X3 interface in /usr/local/cpanel/base/frontend/x3 - looking at the actual API calls will help you learn what parameters to expect. For a sample hook, look at: /usr/local/cpanel/hooks/passwd/change_password.example The accompanying page for changing passwords in the X3 interface is ...:2082/frontend/x3/passwd/index.html, which is stored in /usr/local/cpanel/base/frontend/x3/passwd/index.html This should help shed some insight onto hooks and how they work, especially in conjunction with the actual API2 calls that trigger the hooks.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
|||
|
thanks dave, i think now i understand the concept of api2 quite well.
all i still wonder is how can i call the script with api2 usage in it right after parking a domain. (the WHM park function calls "/scripts/park", which is in the whm binary, so i cannot put anything before/after it.. right?) frkandris -- |
|
||||
|
Quote:
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
|||
|
Quote:
![]() frkandris -- |
|
||||
|
Currently, this is an API1 call, here's the code from X3 that creates a parked domain:
HTML Code:
<cpanel Park="park($FORM{'domain'})">
cPanel Hooks are called after an action has been performed by cPanel. With all of this information, you should be able to put together your own hook .
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net -- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative |
|
|||
|
thank you, it works fine in cpanel.
meanwhile i realized that the misunderstanding was about cpanel vs whm - i was about to call a hook after the park from whm (which is not possible, as the support says). thanks anyway ![]() andris -- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|