Jump to content

andrezzz

Member
  • Content Count

    43
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by andrezzz

  1. Hello, Sure you can pm me, or contact me in Discord.
  2. Hello Mr. Duncan! I have already made this addon for Discord and if you need any more functionalities, I can do for you! Please check this out: https://whmcs.community/topic/317674-andrezzz-link-discord Stay safe, André
  3. Hello @l3szcz! How are you? Do you still need help? Stay safe, André
  4. Hello Tengri! Do you still need it?
  5. Andrezzz - Link Discord (WHMCS Addon) Do you ever wondered to link a Client to a Discord account? Now you can! Why keep waiting to buy this WHMCS Addon? More than 28 sales made, 15 reviews at the moment with five stars each one. Don't waste any more time searching for the perfect addon, here is the one! Use one time, you'll never wanna leave it, trust me and in the reviews. Features: If the Client has active services and/or any Invoices are paid with active services, they will be assigned the Client role; If the Client no longer has active services, the role will be taken away; Allows you to search for a Client with their Discord ID in the Navbar; Redirect each client e-mail as a DM message; Multiple roles and guilds support, as well support for Guest, Client, Product and Group based roles; Panel to manage the roles; Edit and Delete the Linked Client; Backend API available to use. Screenshots: Homepage Panel Homepage Panel - Linked.png Secondary Sidebar Secondary Sidebar - Linked Linkage Info page Admin - Roles Admin - Edit and Delete Discord - Notification Backend API - Notification Price: 35$ one time 🔥 Buy | More information 🔥
  6. If anyone is interested in this Custom API function, just check out my GitHub 😄 GitHub: https://github.com/andretunes/whmcs-api-update-order-status
  7. Hello, You need to setup it in your `configuration.php` file. More information: https://docs.whmcs.com/Mobile_App:_Connecting_to_WHMCS
  8. Hello, In order to help you out, could you please tell me a little bit more about what you wanna do? From what I've seen (by far), you wanna a custom API action, is that correct? If yes, check this example out! It's a piece of extra code from one of my modules. <?php /** * WHMCS Link Discord version 1.2 * * @package WHMCS * @copyright Andrezzz * @link https://www.andrezzz.pt * @author André Antunes <andreantunes@andrezzz.pt> */ use WHMCS\Database\Capsule; if (!defined('WHMCS')) { exit(header('Location: https://www.andrezzz.pt')); } $clients = Capsule::table('tblhosting')->where('domainstatus', 'Active')->groupBy('userid')->get(['userid']); if (!$clients) { $error = 'No client found.'; } if (!$error) { $apiresults = array("result" => "success", "clients" => $clients); } else { $apiresults = array("result" => "error", "message" => $error); } ?> Edit: You'll need to create a file in the directory `/yourwhmcspath/includes/api/nameofaction.php` and change the `nameofaction` for your desired name.
  9. In some providers, you can define for default the Lock, if not, you'll need either to do a Hook, either to change the respective Registrar Module.
  10. Hello, You can do this, go to your template folder and search for the file `invoicepdf.tpl`, there you can edit as much you like. More info: https://docs.whmcs.com/PDF_Invoice_Customisation
  11. Hello bro, You can try using this hook here: https://developers.whmcs.com/hooks-reference/invoices-and-quotes/#invoicepaidpreemail It will trigger once the Invoice is marked as Paid and before the email send. Try this one: <?php function proformainvoicepaiddate($vars) { $invoiceid = $vars["invoiceid"]; update_query("tblinvoices", array("date" => "now()"), array("id" => $invoiceid)); } add_hook("InvoicePaidPreEmail", 0, "proformainvoicepaiddate",""); ?>
  12. Hello, In the past on my WHMCS v 7.6 installation I getted this error and I think the version 8.1 also have. But after I upgrade to the 8.2 I never saw this error again, can you test it?
  13. Hello, Which domain registrar are you using?
  14. The hook is fine, will only be triggered once the Invoice is Created, I already use it on my personal Hosting Website.
  15. That error, doesn't come from my Hook, do you have any other recent Hook?
  16. Hello and Happy new year, Check this out, if it's what you're looking for! {if $templatefile == 'homepage'} <title>Domain Name Sales</title> {else if $templatefile == 'products'} <title>{$groupname} - {$companyname}</title> {else} <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title> {/if}
  17. Omg, I'm sleeping standing up, updated it. Update: I can't edit the message, so I will let it here. <?php /** * Invoice with Primary/Dedicated IP WHMCS Hook version 1.1 * * @package WHMCS * @copyright Andrezzz * @link https://www.andrezzz.pt * @author André Antunes <andreantunes@andrezzz.pt> */ if (!defined('WHMCS')) { exit(header('Location: https://www.andrezzz.pt')); } use WHMCS\Database\Capsule; add_hook('InvoiceCreation', 1, function($vars) { global $_LANG; $typeOfItems = array('Hosting', 'Setup', 'PromoHosting', 'Upgrade'); $invoiceItems = Capsule::table('tblinvoiceitems')->where('invoiceid', $vars['invoiceid'])->get(); foreach ($invoiceItems as $invoiceItem) { if ($invoiceItem->relid === 0) return; if (!in_array($invoiceItem->type, $typeOfItems)) return; $dedicatedIP = Capsule::table('tblhosting')->where('id', $invoiceItem->relid)->value('dedicatedip'); Capsule::table('tblinvoiceitems')->where('id', $invoiceItem->id)->update(array( 'description' => $invoiceItem->description . "\n" . $_LANG['primaryIP'] . ': ' . trim($dedicatedIP) )); } });
  18. Do you have Discord or Anydesk, so that I can help you further more?
  19. Nothing to edit, just create a file in your Hooks folder (`/whmcspath/includes/hooks`).
  20. You and @pRieStaKos are right, sorry. Thank you so much for your suggestions 😊! Check this newer version! In my case, I rather prefer choosing this type of Item. <?php /** * Invoice with Primary/Dedicated IP WHMCS Hook version 1.1 * * @package WHMCS * @copyright Andrezzz * @link https://www.andrezzz.pt * @author André Antunes <andreantunes@andrezzz.pt> */ if (!defined('WHMCS')) { exit(header('Location: https://www.andrezzz.pt')); } use WHMCS\Database\Capsule; add_hook('InvoiceCreation', 1, function($vars) { global $_LANG; $typeOfItems = array('Hosting', 'Setup', 'PromoHosting', 'Upgrade'); $invoiceItems = Capsule::table('tblinvoiceitems')->where('invoiceid', $vars['invoiceid'])->get(); foreach ($invoiceItems as $invoiceItem) { if ($invoiceItem->relid === 0) return; if (!in_array($invoiceItem->type, $invoiceItem)) return; $dedicatedIP = Capsule::table('tblhosting')->where('id', $invoiceItem->relid)->value('dedicatedip'); Capsule::table('tblinvoiceitems')->where('id', $invoiceItem->id)->update(array( 'description' => $invoiceItem->description . "\n" . $_LANG['primaryIP'] . ': ' . trim($dedicatedIP) )); } });
  21. Well, I thought like this: if you have an IP then it should appear, because many times there are services with an IP that are Other.
  22. Check this out :D! <?php /** * Invoice with Primary/Dedicated IP WHMCS Hook version 1.0 * * @package WHMCS * @copyright Andrezzz * @link https://www.andrezzz.pt * @author André Antunes <andreantunes@andrezzz.pt> */ if (!defined('WHMCS')) { exit(header('Location: https://www.andrezzz.pt')); } use WHMCS\Database\Capsule; add_hook('InvoiceCreation', 1, function($vars) { global $_LANG; $invoiceItems = Capsule::table('tblinvoiceitems')->where('invoiceid', $vars['invoiceid'])->get(); foreach ($invoiceItems as $invoiceItem) { if ($invoiceItem->relid === 0) return; $dedicatedIP = Capsule::table('tblhosting')->where('id', $invoiceItem->relid)->value('dedicatedip'); if ($dedicatedIP === '') return; Capsule::table('tblinvoiceitems')->where('id', $invoiceItem->id)->update(array( 'description' => $invoiceItem->description . "\n" . $_LANG['primaryIP'] . ': ' . $dedicatedIP )); } }); It also have Language support, so that the client can understand what is that line.
  23. Maybe you could check in General Settings :D, there if you don't have https:// in the WHMCS URL then it will not use, check if I'm wrong please.
×
×
  • 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