Jump to content

Hooks:PreDomainRegister


anna666

Recommended Posts

Hooks:PreDomainRegister

 

- - - Updated - - -

 

hi

 

i need to create Hooks:PreDomainRegister but i dont know how?

and i read http://docs.whmcs.com/Hooks:PreDomainRegister but i dont know how to use php commands.

 

is there any body to help me with?

 

regrads

 

- - - Updated - - -

 

hi

 

i need to create Hooks:PreDomainRegister but i dont know how?

and i read http://docs.whmcs.com/Hooks:PreDomainRegister but i dont know how to use php commands.

 

is there any body to help me with?

 

regrads

Link to comment
Share on other sites

i need to use the default registrant contact to onlinenic automatically when register a new domain in whmcs.

 

i asked whmcs they told you can use PreDomainRegister hook.

 

but i dont know how to use php comands! i dont know php!

 

i just need to change the registrant info. after sei tried this code:

<?php

function hook_registrant($string) {

<data name=”r_name”>nam</data> 
<data name=”r_org”>name</data> 
<data name=”r_country”>our co</data>
<data name=”r_province”>name</data>
<data name=”r_city”>city</data>
<data name=”r_street”>our add.</data>
<data name=”r_postalcode”>our pc</data>
<data name=”r_voice”>our phon</data>
<data name=”r_fax”>our fax</data>
<data name=”r_email”>our email</data>

$string = str_replace("name","$string","r_name")
add_hook("Registrant",1,"hook_registrant");

/*
(isset($params['org']) && $params['org']!='') {
                        $commonStr .= $params['org'];

}
*/

add_hook("registrant",1,"hook_registrant");

?>

 

will this code correct and work? please tell me the exact code

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated