Jump to content

tangogc

Member
  • Content Count

    36
  • Joined

  • Last visited

Community Reputation

0 Neutral

About tangogc

  • Rank
    Member
  1. are you suggesting me to remove this line ? $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later <?php add_hook('ClientAdd', 1, function($vars) { $results = localAPI('AffiliateActivate', array('userid' => $vars['client_id']), $adminUsername); });
  2. here reworked based on your suggestion, is it correct ? <?php add_hook('ClientAdd', 1, function($vars) { $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later $results = localAPI('AffiliateActivate', array('userid' => $vars['client_id']), $adminUsername); });
  3. I have modified in this way , could work ? <?php add_hook('ClientAdd', 1, function($vars) { $adminUsername = 'ADMIN_USERNAME'; // Optional for WHMCS 7.2 and later $results = localAPI('AffiliateActivate', array('userid' => $vars['user_id']), $adminUsername); });
  4. thanks Brian I confirm you are great as usual could you show me how modify to have both function working please ? in my site 99% of registration are via Cart thanks
  5. I would like to automatically set new customers as affiliates in WHMCS without needing them to do it manually. i'm trying to use this hook with whmcs 8.0.4 but some advice doesn't work? add_hook('ClientAreaRegister', 1, function($vars) { $adminUsername = 'admin'; // Optional for WHMCS 7.2 and later $results = localAPI('AffiliateActivate', array('userid' => $vars['userid']), $adminUsername); });
  6. thanks but it not work on my 8.0.4 installation Badges3 failed to load. Could not include file: D:\inetpub\vhosts\gamesclan.net\httpdocs\billing/modules/widgets/Badges3.php. Error: syntax error, unexpected '.', expecting end of file
  7. I cant edit too 🙂 could you post again the correct code please
  8. My reset page not work the submit button "save changes" is disable, the problem is related to my custom theme, with Six original work correctly any suggestion to let's me understand in which file I can have the problem ? thanks a lot in advance see screenshot
  9. I discovered a little bug in this hook look the screenshot if you click on the red circle it go to modulequeue if you click on the red arrow it work correctly
  10. I wanted to point out that the hook you make available to cPanel & Plesk login unfortunately does not work on whmcs 8.0.4 with php 7.3 It would be nice to be able to fix it and make it available. Once installed, it does not present any errors but immediately after modifying the template, instead of the button, only a wheel that rotates infinitely
  11. just a question on the email sintax you write alias=paypal%40yourdomain%2ecom" is correct ? alias=admin%40myemail%2eit" thanks
  12. I have the pleasure to announce that after 30 day of hard work I have compltly integrated and customized whmcs template and order form ServerVeloci.it an Italian provider in the dedicated server, visrtual servers, game Servers and Teamspeak market. thanks to whmcs for great support and software
×
×
  • 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