Jump to content

shivsingh7150

Member
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About shivsingh7150

  • Rank
    Junior Member

Recent Profile Visitors

921 profile views
  1. Hello, i am working in a payment gateway development so i am want to make changes according to billingCycle , please help me know how can i get billingCycle in payment gateway file. Thanks
  2. i need on front end and invoice, don't need on PDF/Mail. Thanks
  3. what it is possible to override price display part for Zero amount products. I am want to show Free in place of $ 0.00 USD Please help me if any one know such possibility. i know we can do by JS/jQuery but it will take time according to every pages but if possible to over ride like Magento then it will be very helpful. Thanks
  4. Thanks DennisHermannsen and Kian for help, I have completely replaced to IntoDNS as: $('input[name="domain"] + div ul li:last-child').html('<a href="https://www.xxxxxx.com/xxx.php?for='+ url +'" target="_blank">DNS</a>');
  5. Hello, As intodns.com is good free provider to check DNS health but it take time to response and also provide caching result so we have developed our own dns testing application. Now i am want to change url from into dns to my url. Please check below screenshot to better understand. Please help me. Thanks
  6. Hello, i am want to know that what client email address is verified or not. Note: i am want to check by custom php template not by smarty. right now i am using Local API method but its dont return that user mail address is verified. <?php use WHMCS\ClientArea; use WHMCS\Database\Capsule; define('CLIENTAREA', true); require __DIR__ . '/init.php'; $ca = new ClientArea(); $user_id = $_SESSION['uid']; $command = 'GetClientsDetails'; $postData = array( 'clientid' => $user_id, 'stats' => true, ); $results = localAPI($command, $postData); echo '<pre>'; print_r($results); echo '</pre>'; if any one can help then it will be really very help full. Thanks
  7. Hello I am want to make a hook that auto logout old session from same user. I already know IP based system but i need it should work even if client logged in into other browser on same computer and same IP. So we are storing session of login on database then we can load that session and destroy it. i will use it with: <?php add_hook('ClientLogin', 1, function($vars) { // Perform hook code here... });
  8. hello i have fixed it myself so please close this topic. my working code: <?php add_hook('PreCronJob', 1, function($vars) { $filePre = date('Y-m-d', strtotime(' -1 day')); ///// One day old Date $created_at = date('Y-m-d H:i:s', strtotime(' -1 day')); ///// Current date $updated_at = date('Y-m-d H:i:s'); ///// Current date $extension = '.zip'; $nameArray = array("4"=>"", "2"=>"-domain", "1"=>"-india", "7"=>"-us"); ///// Database tyep with file name foreach ($nameArray as $whois_type => $fileName) { $whois_md5 = md5(generateRandomString()); $whois_file = $filePre.''.$fileName.''.$extension; try { Illuminate\Database\Capsule\Manager::table("whois_database")->insert(array( "whois_md5" => $whois_md5, "whois_file" => $whois_file, "whois_status" => '0', "whois_type" => $whois_type, "created_at" => $created_at, "updated_at" => $updated_at)); } catch (Exception $e) { return array("status" => "error", "description" => "Unable to create table whois_database: " . $e->getMessage()); } } }); Thanks for attention
  9. Hello i am want to insert some value every day to a extra table created by me. so i am doing it by hook as below below noting doing. $filePre = date('Y-m-d', strtotime(' -1 day')); ///// One day old Date $updated_at = $created_at = date('Y-m-d H:i:s'); ///// Current date $extension = '.zip'; $nameArray = ('', 'domain', 'india', 'us'); ///// Add more database file name string after $filePre $test = ''; foreach ($nameArray as $fileName) { $test .= "$fileName <br>"; } add_hook('PreCronJob', 1, function($database) { $filePre = date('Y-m-d', strtotime(' -1 day')); ///// One day old Date $created_at = date('Y-m-d H:i:s', strtotime(' -1 day')); ///// Current date $updated_at = date('Y-m-d H:i:s'); ///// Current date $extension = '.zip'; $nameArray = ("4"=>"", "2"=>"domain", "1"=>"india", "7"=>"us"); ///// Database tyep with file name foreach ($nameArray as $whois_type => $fileName) { $whois_file = $filePre.''.$fileName.''.$extension; use WHMCS\Database\Capsule; try { Capsule::connection()->transaction( function ($connectionManager) { /** @var \Illuminate\Database\Connection $connectionManager */ $connectionManager->table('whois_database')->insert( [ 'whois_file' => $whois_file, 'whois_status' => 0, 'whois_type' => $whois_type, 'created_at' => $created_at, 'updated_at' => $updated_at, ] ); } ); echo 'cron test'; } catch (\Exception $e) { echo "Uh oh! Inserting didn't work, but I was able to rollback. {$e->getMessage()}"; } } }); .
  10. Welcome to WHMCS.Community shivsingh7150! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • 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