Jump to content

Remitur

Level 2 Member
  • Content count

    281
  • Joined

  • Last visited

  • Days Won

    3

Remitur last won the day on February 2

Remitur had the most liked content!

Community Reputation

25 Excellent

About Remitur

  • Rank
    Level 2 Member

Recent Profile Visitors

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

  1. Remitur

    domain next due date ...

    In a Registrar module, for a certain domain I need to recover the value of nextduedate ... but this value is no in the module parameters: https://developers.whmcs.com/domain-registrars/module-parameters/ Neither I found any way to get this value directly from WHMCS, and it seems it's required to query it directly from db... ๐Ÿ˜ฎ In email templates does exist the $domain_next_due_date variable, but I guess it's not available out of there... Am I right, or there's some kind of trick I don't know?!
  2. I reply on my own: the issue was in configuration, about following parameters: Only Auto Provision for Existing Tick this box to always leave orders by new clients pending for manual review (no auto setup/registration) The "manual review" means that you are required not just to accept the order to change it from "pending" to "active", but also review and process it manually... ๐Ÿ˜ž
  3. Remitur

    SOME Emails not sent.

    The email of password reset are regularly sent, but since I-don't-remember-what-version of WHMCS are no more logged as other email messages. And it's right so (it was a security issue and, maybe, not GDPR compliant) You can find evidence of these email in client log and in activity log.
  4. Remitur

    Domains renewed two times

    I guess it's not an auto-renew issue... I understand that: - customer says "renew!!!" - you renew the domain manually - then the customer pays weeks later, you mark the invoice as "paid", and WHMCS does its dirty job renewing the domain on his own... isn't it? Two different fixes: 1 - money ready. The industry standard is "pay, and then I'll process your order" (but I understand that commercial reasons may keep this hard or even impossible...) 2 - manually edit the invoice before the payment: copy/paste the exiting row about domain renewal, delete the original one, and then register the payment. This will prevent WHMCS from processing automatic renewal
  5. Remitur

    custom contact form?

    There're various threads, previously posted in this community, about creating custom contact forms in WHMCS, with custom fields or others requirements. The only proposed fixing are: manage contact form as ticket in a specific deptm with custom fields or create your own contact.php page Just an idea, that I was not able to understand if doable or not (smarty is definitely not a great friend of mine): so, here I am to ask... In contact.tpl there's just one text variable which includes the message from the customer, and which will be returned to the encrypted contact.php: <div class="form-group col-lg-12"> <label for="inputMessage">{$LANG.contactmessage}</label> <textarea name="message" rows="10" class="form-control" id="inputMessage">{$message}</textarea> </div> [...] <div class="form-group col-lg-12"> <button type="submit" class="btn btn-success btn-lg"><i class="fa fa-send"></i>{$LANG.contactsend}</button> </div> I could easily add further fields in smarty forms, but the contents will be lost. But... does exist any way to modify the "message" variable just before submit? If it's possible, I could edit it concatenating to it the strings of further variables... and so getting a single string which includes all the custom fields I can add to the form... (I did few tests, but just collecting different kinds of errors, without getting any real result... ๐Ÿ˜Ÿ )
  6. @Kian , what about Billing Extension and WHMCS 7.7 ? Many things are changed in WHMCS's management of VAT, so a "how to" to rightly configure the system after update will be appreciated...
  7. Fixed. The issue: for security reasons, .htaccess was no writeable by WHMCS, so in it there were the old rules but not the new rules created by WHMCS 7.2 I guess that also a strange, different issue I fixed with a workaround few weeks ago may be related to this... But during update process found any alert, warning or error about... ๐Ÿ˜• All is well etc. etc.
  8. Right now, we have: - our WHMCS system in datacenter A - our DNS servers spreaded in datacenter A, B and C - our Linux hosting system in datacenter D - our Windows hosting system in datacenter E - our remote backup system in datacenter F Every datacenter is in a different country (but for A and F: same country, 250 Km of distance)
  9. It's absolutely the worst solution. It's commonly used by a lot of small reseller, but it's a very bad idea. If your hosting server will go down, also your own site will be down. Even if it's a planned management. And all customers of yours suddenly will enter in panic mode: "My PRECIOUS site is down, my PRECIOUS email is down, and my hosting provider is LOST and UNRESPONSIVE!!!!!!!" No, definitely you need to keep your own site elsewhere. And your own email service too.
  10. Hummmm... I've just discovered that this configuration and management of redirects totally changed in 7.2 ... ๐Ÿ˜• Need to do few tests... but deep in the night.
  11. Rewrite are enabled just: - from http to https -and from www. to not-www. RewriteEngine On RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteCond %{HTTPS_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] Everything seems right to me... are not able to understand what is not running right... ๐Ÿ˜•
  12. I have 2FA enabled on admin area access (Duo Security) For existing administrators, everything is working fine. But If I add a new administrator, the first time he tries to login (and that will be forced to configure 2FA), at www.mydomain.com/admin/myaccount.php?2faenforce=1 I get the error message: This page isnโ€™t working domainregister.international redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS (yet tried, of course, cookies clearing... it's useless, I get this error on different PCs too) Any idea on any way to investigate such an issue?!? ๐Ÿ˜ž
  13. I created this script years ago, modifying an existing one in order to add the import of custom fields too. In this version it managed 3 different custom fields, with ID = 3, 6 and 9; you can easily edit it to adapt to your own needs. It uses WHMCS APi, so it's slightly more secure than working on phpmyadmin... but do a backup before running it!!!! $scriptActive = 1; $url = "/includes/api.php"; # URL to WHMCS API file $username = "username"; # Admin username goes here $password = "pa$$word"; # Admin password goes here // Set path to CSV file $fileDirectory = dirname(__FILE__)."/csvfile/"; $csvFile = "customer.csv"; $csvFile = ($fileDirectory.$csvFile); $csvRowArray = readCSV($csvFile); /******************************************************************************/ function readCSV($csvFile){ if (file_exists($csvFile)) { $file_handle = fopen($csvFile, 'r'); while (!feof($file_handle) ) { $line_of_text[] = fgetcsv($file_handle, 1024); } fclose($file_handle); //REMOVE FIRST LINE (WITH HEADERS) unset($line_of_text[0]); // RESET INDEXES & REMOVE EMPTY ARRAY ELEMENTS $line_of_text = array_values($line_of_text); $line_of_text = array_filter( $line_of_text ); return $line_of_text; } else { echo "<h1>$csvFile does not exist</h1>"; die; } } ob_start(); //Turning ON Output Buffering $postfields["username"] = $username;//DO NOT CHANGE $postfields["password"] = md5($password);//DO NOT CHANGE $postfields["action"] = "addclient"; # action performed by the [[API:Functions]] foreach($csvRowArray as $key => $csvRow) { $postfields["firstname"] = ucfirst($csvRow[0]); $postfields["lastname"] = ucfirst($csvRow[1]); $postfields["companyname"] = ucfirst($csvRow[2]); $postfields["email"] = strtolower($csvRow[3]); $postfields["address1"] = ucfirst($csvRow[4]); $postfields["address2"] = ($csvRow[5]!=''?ucfirst($csvRow[5]):''); $postfields["city"] = ucfirst($csvRow[6]); $postfields["state"] = strtoupper($csvRow[7]); $postfields["postcode"] = $csvRow[8]; $postfields["country"] = strtoupper($csvRow[9]); $postfields["phonenumber"] = preg_replace("/[^0-9]/","",$csvRow[10]); $postfields["password2"] = $csvRow[11]; $postfields["language"] = $csvRow[12]; $postfields["notes"] = stripslashes($csvRow[13]); $postfields["customfields"] = base64_encode(serialize(array( "1" => ucfirst($csvRow[14]), "6" => ucfirst($csvRow[15]), "9" => ucfirst($csvRow[16]) ))); $postfields["noemail"] = 1; if ($scriptActive==1) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); $data = explode(";",$data); foreach ($data AS $temp) { $temp = explode("=",$temp); $results[$temp[0]] = $temp[1]; } ob_flush();//Flush the data here if ($results["result"]=="success") { # Result was OK! echo $postfields["firstname"]." ".$postfields["lastname"]." was successfully added!"; } else { # An error occured echo "The following error occured: ".$results["message"]; } curl_close($ch); } } if ($scriptActive!=1) { echo "Import File: " . $csvFile . "<br><br>"; echo '<pre>'; print_r($csvRowArray); echo '</pre>'; } ob_end_flush();
  14. Hello. Does exist a way (different from a direct mysql query) to retrieve the values of custom client fields for a certain customer? I looked around in API and documentation, but was not able to find anything about... ๐Ÿ˜ž
  15. Does exist any API call to create a new to-do item ? I looked around, finding nothing... Is it necessary to create it operating directly on database?!
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines