Jump to content

tatocaster

Member
  • Posts

    11
  • Joined

  • Last visited

About tatocaster

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tatocaster's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hello I'm interested in , how can I set min length for domain? I'm using IDN tld s , just for info. for ex: აბ.გე I want to restrict 2 character length and set default min length as 3. I saw this documentation http://docs.whmcs.com/Domains_Configuration#Customising_Domain_Name_Length_Restrictions but it doesn't working. Any other way to achieve this or correct me if I missing something. Thanks.
  2. I even resized to 512M, and with custom coding it works well I said that error occurs when calling LocalAPI. simply as in documentation. just copy and paste and changed variables for testing
  3. No it will not solve, I have the same error , during getting DNS s in orders. Any help will be appreciated. Thanks
  4. Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in xxx/public_html/includes/dbfunctions.php on line 0 I'm trying to write custom Domain Registrar module. Using localAPI function ruins everything, and comes blank page with this error. Also , after this I cant login to admin panel. Error occurs at all localAPI call.. I found solution to rewrite some functions with custom queries, to select and so on but its' very bed experience. Plz help. memory_limit is 256M now, and it's quite large for PHP. Thanks
  5. Thanks for your response. This was it what i needed. I will translate TLD with javascript just for users to see it nicely. Thanks
  6. Hello, what i'm trying to accomplish is replace some characters (აბც) with some english ones and vise versa. I've tried 2 ways to do that - both failed. First of all i tried by making a hook add_hook("PreDomainRegister",1,"hook_transliterate"); Unfortunatelly inside my main function - i cannot neither get the client information neither return it. function hook_transliterate($vars) { $firstname= $vars["params"]["firstname"]; $domain = $vars["params"]["domain"]; return str_replace("a char","b char",$firstname"); } $firstname is nothing - and of course my return is not working as well. Then i tried to do a Transliteration hook , so i made a hooks.php file and placed it in /www/whmcs/hooks/transliterate.php My code is : function hook_transliterate($string) { $string = str_replace("a","w",$string); $string = str_replace("b","v",$string); return $string; } add_hook("Transliteration",1,"hook_transliterate") ; Unfortunatelly it seems is never triggers. Then I tried add_hook("DomainValidation",999,"hook_transliterate"); hook activates every time when domain availability checking running but, i want to transliterate this string and return to client input as different characters for ex: abc = აბც . it would be great to save in DB also like these. Any help will be appreciated. Thanks
  7. Thanks for response first of all. Ok let's take this example: I enter to domain registration, I'm fresh new customer. Check domain for availability. I want to change this domain string (transliterate) because we are creating new TLD, for example instead of tatocaster.com I want ტატოკასტერ.გე (utf-8 characetrs) and WHMCS writes that it's unavailable domain name. I want to fix this. Is my question clear? Can you give me any suggestion? p.s. TLD is already added in WHMCS but, only as .nx-node, whmcs can't understand .გე and any other character. Thanks
  8. yeah I know, I'm pretty well in PHP. I did to assign input array elements to new variables. Also there is written that - if you are calling localApi user is optional , but I'm using, different user. which is registered in system as Administrator. also about domainid, I'm taking this dynamically. I did everything what you wrote, but with no success , that's why , i'm posting here. Because of this, I rewrote this functions with my custom queries to select, update db and etc. Can you give me a other clue? Thanks for response
  9. Hello, I have already uploaded hook in hooks folder but nothing happens. can you write how to push this hook to start work? thanks
  10. I have an issue , for this code snippet. it doesn't return anything (localAPI), and page freezes white. Could you post anything if you got some tips? thanks
×
×
  • 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