-
Content Count
43 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Calendar
Hotfixes
Everything posted by andrezzz
-
Hello, Sure you can pm me, or contact me in Discord.
-
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é
-
Receive featured flag and translate for product from API
andrezzz replied to l3szcz's topic in Service Offers & Requests
Hello @l3szcz! How are you? Do you still need help? Stay safe, André -
Hello Tengri! Do you still need it?
-
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 🔥
-
- whmcs addon
- whmcs addon module
-
(and 3 more)
Tagged with:
-
Change order status via API to custom status
andrezzz replied to netzhaus's topic in Developer Corner
If anyone is interested in this Custom API function, just check out my GitHub 😄 GitHub: https://github.com/andretunes/whmcs-api-update-order-status -
Hello, You need to setup it in your `configuration.php` file. More information: https://docs.whmcs.com/Mobile_App:_Connecting_to_WHMCS
-
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.
-
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.
-
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
-
Hook triggers after invoice is sent - please HELP!
andrezzz replied to minadreapta's topic in Developer Corner
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",""); ?> -
tblerrorlog shows some error about domainfunctions.php
andrezzz replied to TimRef's topic in Troubleshooting Issues
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? -
Hello, Which domain registrar are you using?
-
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
The hook is fine, will only be triggered once the Invoice is Created, I already use it on my personal Hosting Website. -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
Do you have this two enabled?- 51 replies
-
-1
-
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
That error, doesn't come from my Hook, do you have any other recent Hook? -
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}
-
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
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) )); } }); -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
Do you have Discord or Anydesk, so that I can help you further more? -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
Nothing to edit, just create a file in your Hooks folder (`/whmcspath/includes/hooks`). -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
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) )); } }); -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
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. -
Add dedicated IP or hostname to the invoice.php page .
andrezzz replied to TimRef's topic in Developer Corner
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.