Jump to content

nowinz

Retired Forum Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by nowinz

  1. sorry my fail is working big thanks
  2. Hi, thanks for reply, this is not working for me {if $templatefile eq "login" || $templatefile|strstr:"linkedaccounts" || $templatefile eq "just-one-more"} <div class="sub-head"> <div class="custom-width"> <div class="row"> <h2>{$companyname} - {$pagetitle}{if $kbarticle.title} - {$kbarticle.title}{/if}</h2> <p>{$breadcrumbnav}</p> <p></p> </div> </div> </div> {if $loggedin} <nav id="nav" class="navbar navbar-default navbar-main" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#primary-nav"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="primary-nav"> <ul class="nav navbar-nav"> </ul> <ul class="nav navbar-nav navbar-left"> {include file="$template/includes/navbar.tpl" navbar=$primaryNavbar} </ul> </div><!-- /.navbar-collapse --> </div> </nav> {/if} {/if}
  3. Hi Community Example {if $templatefile == 'account-contacts-new'} blala {/if} More than one ? {if $templatefile == 'account-contacts-new, homepage etc...............'} blala {/if} thanks
  4. Thanks for reply but this is for old whmcs system ? i have no accesskey = '123456' ?<< what is this?
  5. Hello, ich have read many tutorials but my brain has paket loss I will use API for my dashing board (TV) but is not working for me here my php code <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://blub.de/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( 'action' => 'GetTicketCounts', // See https://developers.whmcs.com/api/authentication 'username' => 'xxxxxmycode', 'password' => mycode', 'ignoreDepartmentAssignments' => false, 'includeCountsByStatus' => true, 'responsetype' => 'json', ) ) ); $response = curl_exec($ch); if (curl_error($ch)) { die('Unable to connect: ' . curl_errno($ch) . ' - ' . curl_error($ch)); } curl_close($ch); // Decode response $jsonData = json_decode($response, true); // Dump array structure for inspection var_dump($jsonData); ------- output in browser {"result":"success","filteredDepartments":[1,2,3,4,5,6,7],"allActive":20"awaitingReply":10,"flaggedTickets":0,"status":{"open":{"title":"Open","count":4},"answered":{"title":"Answered","count":95},"customerreply":{"title":"Customer-Reply","count":6},"closed":{"title":"Closed","count":512},"onhold":{"title":"On Hold","count":0},"inprogress":{"title":"In Progress","count":0}}}int(1) how can dump/parse for example only awaitingReply i need only one output.
×
×
  • 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