Jump to content

Charles Bradbeer

Member
  • Posts

    10
  • Joined

  • Last visited

About Charles Bradbeer

Recent Profile Visitors

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

Charles Bradbeer's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hi, I have added it in: <?php use WHMCS\Database\Capsule; define("CLIENTAREA",true); //define("FORCESSL",true); // Uncomment to force the page to use https:// require("init.php"); $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Your Order Status"); $ca->requireLogin(); // Uncomment this line to require a login to access this page $ca->initPage(); //$ca->requireLogin(); // Uncomment this line to require a login to access this page # To assign variables to the template system use the following syntax. # These can then be referenced using {$variablename} in the template. $ca->assign('variablename', $value); # Define the template filename to be used without the .tpl extension $ca->setTemplate('orderstatus'); $ca->output(); ?> But it still doesn't work? I'm definitely doing something wrong ;/
  2. Hi, I am having some issues with making a clone of the "My Products & Services" (clientarea.php?action=services) page. I have created a orderstatus.php & orderstatus.tpl page with what seems like the working/correct details but the table shows as blank? Im sure it is an easy to fix thing but I cannot get my head around it! Here is the two files I am using: orderstatus.php: <?php define("CLIENTAREA",true); //define("FORCESSL",true); // Uncomment to force the page to use https:// require("init.php"); $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Your Order Status"); $ca->requireLogin(); // Uncomment this line to require a login to access this page $ca->initPage(); //$ca->requireLogin(); // Uncomment this line to require a login to access this page # To assign variables to the template system use the following syntax. # These can then be referenced using {$variablename} in the template. $ca->assign('variablename', $value); # Define the template filename to be used without the .tpl extension $ca->setTemplate('orderstatus'); $ca->output(); ?> orderstatus.tpl page: {include file="$template/includes/tablelist.tpl" tableName="ServicesList" filterColumn="4" noSortColumns="0"} <script type="text/javascript"> jQuery(document).ready( function () { var table = jQuery('#tableServicesList').removeClass('hidden').DataTable(); {if $orderby == 'product'} table.order([1, '{$sort}'], [4, 'asc']); {elseif $orderby == 'amount' || $orderby == 'billingcycle'} table.order(2, '{$sort}'); {elseif $orderby == 'nextduedate'} table.order(3, '{$sort}'); {elseif $orderby == 'domainstatus'} table.order(4, '{$sort}'); {/if} table.draw(); jQuery('#tableLoading').addClass('hidden'); }); </script> <div class="table-container clearfix"> <table id="tableServicesList" class="table table-list hidden"> <thead> <tr> <th></th> <th class="text-left">{$LANG.orderproduct}</th> <th>{$LANG.clientareaaddonpricing}</th> <th>{$LANG.clientareahostingnextduedate}</th> <th>{$LANG.clientareastatus}</th> <th class="responsive-edit-button" style="display: none;"></th> </tr> </thead> <tbody> {foreach key=num item=service from=$services} <tr onclick="clickableSafeRedirect(event, 'clientarea.php?action=productdetails&amp;id={$service.id}', false)"> <td class="text-center{if $service.sslStatus} ssl-info{/if}" data-element-id="{$service.id}" data-type="service"{if $service.domain} data-domain="{$service.domain}"{/if}> {if $service.sslStatus} <img src="{$service.sslStatus->getImagePath()}" data-toggle="tooltip" title="{$service.sslStatus->getTooltipContent()}" class="{$service.sslStatus->getClass()}"/> {elseif !$service.isActive} <img src="{$BASE_PATH_IMG}/ssl/ssl-inactive-domain.png" data-toggle="tooltip" title="{lang key='sslState.sslInactiveService'}"> {/if} </td> <td><strong>{$service.product}</strong>{if $service.domain}<br /><a href="http://{$service.domain}" target="_blank">{$service.domain}</a>{/if}</td> <td class="text-center" data-order="{$service.amountnum}">{$service.amount}<br />{$service.billingcycle}</td> <td class="text-center"><span class="hidden">{$service.normalisedNextDueDate}</span>{$service.nextduedate}</td> <td class="text-center"><span class="label status status-{$service.status|strtolower}">{$service.statustext}</span></td> <td class="responsive-edit-button" style="display: none;"> <a href="clientarea.php?action=productdetails&amp;id={$service.id}" class="btn btn-block btn-info"> {$LANG.manageproduct} </a> </td> </tr> {/foreach} </tbody> </table> <div class="text-center" id="tableLoading"> <p><i class="fas fa-spinner fa-spin"></i> {$LANG.loading}</p> </div> </div> All I need the orderstatus.php page to show is the details as the default page, then I can work with changing it from there. Hopefully, someone can help me! Thank you :)
  3. Hello, I have made a hook what does this but it doesn't seem to work? Do you know how to make it work? <?php add_hook('ClientAreaFooterOutput', 1 { $footer = '<p>demo</p>'; return $footer; })
  4. Hello, Im trying to just show some simple HTML output. for example just <p>test</p> then it would be shown in the footer. But i can't seem to find an addon what does this, so im wondering does anyone know of one or has the files to one? Thanks.
  5. Hi, Could you give an example of this? Say I want it to show: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { // When no client logged in do nothing if (is_null(Menu::context('client'))){ return; } // Client logged in then show our navbar $primaryNavbar->addChild('Tools') ->setOrder(50); $primaryNavbar->getChild('Tools') ->addChild('Html Tester') ->setUri('/html.php') ->setOrder(1); $primaryNavbar->getChild('Tools') ->addChild('Privacy Policy Generator') ->setUri('/privacypolicygenerator.php') ->setOrder(2); $primaryNavbar->getChild('Tools') ->addChild('Website Builder') ->setUri('https://yvsse.com/builder') ->setOrder(4); $primaryNavbar->getChild('Tools') ->addChild('cPanel Backup Generator') ->setUri('/backup.php') ->setOrder(4); }); To only users on server "server32"? Thank you.
  6. hello, Okay thank you Is there any way to them only have it show to some clients, e.g. all clients on a server called "server1" or all clients with a certain module (e.g. a reseller one like whmamp) Thank you!
  7. Hello, I have built a hook to show a new navbar, but I want it to hide to not logged in members. Is this possible? Thank you My hook im using: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('Tools') ->setOrder(50); $primaryNavbar->getChild('Tools') ->addChild('Html Tester') ->setUri('/html.php') ->setOrder(1); $primaryNavbar->getChild('Tools') ->addChild('Privacy Policy Generator') ->setUri('/privacypolicygenerator.php') ->setOrder(2); $primaryNavbar->getChild('Tools') ->addChild('cPanel Backup Generator') ->setUri('/backup.php') ->setOrder(3); });
  8. Hi, Im trying to make an admin addon module (url/admin/addonmodules.php) what displays some HTML code (for example: <p>test</p>) Does anyone know how to do this? Thanks.
  9. hello, Does anyone know of any addon what can place added html code on all client pages? I would like to have an addon do it instead of doing it all by hand! Thank you!
  10. Hello, I have been using whmcs a while now (I have 3 sites with it) but i would like to add another one to my collection being a domain registrar only one. I am however looking for any addon what is only for a domain as a subdomain? as i know WHMCS can give a product a subdomain but i would like to know 1) Is there an addon what does this? and 2) If there is no addon is this possible or another script what can do this? Am I trying to make a website a bit like https://www.noip.com/ with there Hostname option? Thank you in advance, Charles.
  11. Welcome to WHMCS.Community Charles Bradbeer! 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