Quantcast
Channel: WHMCS Community Forums
Viewing all articles
Browse latest Browse all 13458

Automatic Domain Register Failed (name is invalid)

$
0
0
Hi dear friends,

dealer for ResellerClub. automated domain name registration error:

Code:

name is invalid ,  adress is invalid, etc...
This is because the character error. I want to hook. change the character registers while.
I have tried the following codes did not work. Why is that?

Code:


function hook_transliterate($string) {
    $string = str_replace("ž","z",$string);
    $string = str_replace("é","e",$string);
    return $string;
}

add_hook("PreDomainRegister",1,"hook_transliterate");

Please give me sample hook code?

Regards,
Sorry for my bad english.

Viewing all articles
Browse latest Browse all 13458

Trending Articles