Jump to content

Search the Community

Showing results for tags 'registrar hook'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • The latest WHMCS Release
  • WHMCS Beta Program
    • WHMCS Mobile App Technical Preview Feedback
  • The Latest from the WHMCS Team
    • News, Announcements & Blogs from WHMCS
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • SwiftModders Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Modules
  • Zomex Club's Topics
  • 0100Dev Club's Topics

WHMCS Version

  • V8.1.x Hotfixes
  • V8.0.x Hotfixes
  • V7.10.x Hotfixes
  • V7.9.x Hotfixes

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 2 results

  1. Hi all, I wish to perform some registrar API activities in the registrar hooks, but as the hook's vars or params didn't provide credential details, I tried to get direct from DB Capsule and unfortunately noticed the data stored in encrypted format... Any suggestions to over come this? TQ. Best Regards, Nelson
  2. Hello, We are trying to make a customization for a registrar module (by hooks). We need the module to work exactly as it does any registrar official WHMCS module but with the following customizations: If the country used in the customer's personal data is Cuba. Then the data to be used at the time of registering / transferring the domain is the company data used for the administrative and billing contact (those selected in the domain tab of the general configuration of WHMCS) or other saved in the hooks file. In other words, if the client is from Cuba, then the domains for this client are registered in favor of our company and not in favor of the client. If the client is from Cuba, then he does not have the possibility to modify the WHOIS data of the domain from his client area. For customers from other countries the module should function exactly like the official module. According to WHMCS this can be done by Hooks. Bellow the WHMCS suggestion: We already made the hook file as suggested but I think the module is not recognizing the hook. It does not generate errors, absolutely nothing, as if it were not. I have already disabled the module and I have reactivated it and nothing happens. I'm testing it with the Email registrar module and ENOM test enviroment. Any idea why the hook is not recognized? The file hooks.php is on registrar root folder as suggested: /home/useraccount/public_html/modules/registrars/enom/hooks.php The domain registration process is performed as usual and the hook's indications of changing the data are not taken into account if the customer's country is Cuba. Here is the code written in the hooks.php file. <?php if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } function fix_cu_contact($vars) { $CC = $vars['countrycode']; global $params; //if ($CC == 'CU') { #Commenting to temporaly change all WHOIS data before register any domain (test pourposes) $params['address1'] = $vars['adminaddress1']; $params['address2'] = $vars['adminaddress2']; $params['city'] = $vars['admincity']; $params['state'] = $vars['adminstate']; $params['fullstate'] = $vars['adminfullstate']; $params['countrycode'] = 'US'; $params['countryname'] = 'United States'; $params['phonenumber'] = $vars['adminphonenumber']; $params['phonecc'] = '+1'; $params['fullphonenumber'] = $vars['adminfullphonenumber']; // } } add_hook("PreRegistrarRegisterDomain", 1, "fix_cu_contact"); ?> Can anyone give me a hint as to why it is not working?
×
×
  • 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