Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Tapeix

  • Rank
    Level 2 Member

Recent Profile Visitors

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

  1. I'm looking for ModulesGarden lifetime licenses. If you have, for example, a lifetime license of the DNS Manager module and are not using it anymore; please let me know and I'm happy to take it over. Thanks!
  2. Well it surely works, but doesn't sync GSuite users automatically from the Reseller portal. Someone should definitely work on a better integration.
  3. Update: I think I can declare a variable by using this method. File: {ROOT}/newpage.php use WHMCS\Database\Capsule; $clientName = Capsule::table('tblclients')->where('id',$ca->getUserID())->value('firstname'); $ca->assign('clientname', $clientName); File: {ROOT}/templates/six/newpage.tpl <p>{$clientname}</p> However, no output is shown.
  4. Where you at? I have created a custom page by adding two files: > {ROOT}/newpage.php > {ROOT}/templates/six/newpage.tpl What do you want to achieve? I'd like to execute a SQL select query . The easiest way is to do that within the smarty tags from my .tpl page, as I can print those values directly. Since that mysql_query is depreciated, I have to use WHMCS\Database\Capsule. Unfortunately, it seems that Capsule is limited to .php files as I couldn't get it to work inside my .tpl file. Whenever I try to call PDO from inside the smarty tags, I receive the following error: "Error: Class 'Capsule' not found". What is your SQL query? $query_downloads = mysql_query(" SELECT B.id, B.title, B.description FROM tblproduct_downloads A JOIN tbldownloads B ON A.download_id = B.id WHERE B.title LIKE \"%SLA%\" "); What is your question? Well, I'd like to know how I can run this query and print the output in my .tpl file. I know how to write and process SQL queries, but not how I would share the variables between newpage.php and /templates/six/newpage.tpl. The "Interacting with the Database" article does not share similar examples. I hope someone can point me to the right direction. Thanks.
  5. Situation I currently have three DirectAdmin servers that are managing the DNS records of ~ 50 domains. I'd like to edit those DNS records from the customer area in WHMCS. To do so, I need a module that manages the DirectAdmin DNS records in WHMCS. Question I'm looking for a module that is capable of managing the DNS records in WHMCS by synchronising with DirectAdmin. I have found only one working module, better known as DNS Manager by ModulesGarden. This module unfortunately is pretty complicated (as DNS records are managed in "DNS Zones") and prior that above my budget. If anyone knows an alternative to DNS Manager by ModulesGarden that works with DirectAdmin, please let me know.
  6. I see. Unfortunately you'll have to write an API yourself that connects both worlds with each other; OR make use of the default WHMCS shopping cart which I do.
  7. I'd like to adjust the WHMCS Cron Job Activity e-mail template. Does someone know what hook I can use to apply some css styling? Some issues I'm currently experiencing: > Logo max-width is set to 100%, instead of, lets say, 300px, causing our logo to be spread very wide across the mail template; > Button "View Full Summary" not aligned properly; > WHMCS branding is added (I mean, why? We pay for an unbranded license and still see WHMCS branding in the Cron Job Activity e-mail)
  8. That's amazing Steven! I've added the URL if-then-else and tried it in our live environment. I can confirm it works. <?php add_hook('ClientAdd', 1, function($vars) { $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $client = \WHMCS\User\Client::find($vars['userid']); try { if ($client) { if (strpos($url, 'CNAMEdomain.com') !== false) { $client->groupid = 3; $client->save(); } else /** Default group **/ { $client->groupid = 1; $client->save(); } } } catch (Exception $e) { //TODO error handler } }); p.s. where did you learn that ClientAdd doesn't support a return? I couldn't find it in the documentation.
  9. That's a great idea @brian! I've tried to write a little hook by myself. Unfortunately I couldn't get it to work. Any thoughts? <?php add_hook('ClientAdd', 1, function($vars) { return array( 'create' => true, 'groupid' => 3, ); } ); The URL if statement would look something like this: $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (strpos($url,'CNAMEdomain') !== false) { }
  10. I'd like to automatically assign a client to a Client Group during registration, based on the url OR template they're visiting. I've tried to find more information in the documentation, but I'm afraid there isn't much information about this subject either. Do know if Is it possible to: Set Client Group by adding a parameter to the url? I'm looking forward to your thoughts!
  11. Yes, indeed. I was working with it but it isn't supported for a long time. Too bad. I hope they will release an open source at Github.
  12. Doesn't work for me. I have tried the following: - Temporarily remove all hooks, except yours (duh ) - Deactivate modules - Use the default SIX template I can confirm your code works on a fresh installation, though.
  • 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