Jump to content


Popular Content

Showing content with the highest reputation since 03/19/2019 in Posts

  1. 2 points
    @brian! here this full custom already modified <?php namespace WHMCS\Module\Widget; use WHMCS\Carbon; use WHMCS\Module\AbstractWidget; use WHMCS\User\Client; class ClientOnline extends AbstractWidget { protected $title = 'Client Last Login'; protected $weight = 80; protected $cache = true; protected $cacheExpiry = 60; protected $requiredPermission = 'List Clients'; public function getData() { return array( 'client' => Client::orderBy('lastlogin', 'desc')->limit(24) ->get(array('email', 'id', 'firstname', 'lastname', 'ip', 'lastlogin'))->toArray(), ); } public function generateOutput($data) { $clientOutput = ''; $clients = array(); foreach ($data['client'] as $client) { $clientOutput .= '<div class="staff">' . '<a href="clientssummary.php?userid='.$client['id'].'"><img class="body-avatar" src="https://www.gravatar.com/avatar/'.md5($client['email']).'?s=60&d=mm" width="60" height="60"/></a>' . '<div class="name">'.$client['firstname'].' '.$client['lastname'].'</div>' . '<small><a href="http://www.geoiptool.com/en/?IP='.$client['ip'].'" target="_blank" class="name" style="color:red">'.$client['ip'].'</a></small>' . '<div class="note text-muted">' . Carbon::createFromFormat('Y-m-d H:i:s', $client['lastlogin'])->diffForHumans().'</div>' . '</div>'; } return <<<EOF <div class="widget-staff-container clearfix"> {$clientOutput} </div> EOF; } }
  2. 2 points
    it looks like the SQL queries needed tweaking - i'll attach the updated file rather than posting the entire code, but basically i've just changed the three references of... tblpaymentgateways.* to... tblpaymentgateways.value .. and it's still on my list of things to do to update this widget properly for v7.7+ 📅 admin.php
  3. 1 point
    Hello Good People, Main site was built with WordPress, using a premium theme, with a heavy modification in design. WHMCS part was done using SIX as base, with mostly css modification, some html modification (mostly header and footer). Front end: https://dctit.host/ WHMCS: https://dctit.host/shop/ View Cart page: https://dctit.host/shop/cart.php?a=view Will appreciate your feedback. Kindly let me know your thoughts. Thanks.
  4. 1 point
    When i use <script src="//example.com/jQuerys.js?v=<?php echo(rand()); ?>"></script> In normal php file then is generate random number. When i use in modules/servers/cpanel/template/overview.tpl Then code is not working. Please give me solution. Thanks
  5. 1 point
    Invalid numeric value “IPv4 shared; IPv6 none” for the “quota” setting. If anyone is having issues with this error here's how you fix it: Go to WHMCS admin area and click on Setup > Products and Services Find the Product that is giving you the error and then open it / edit it Go to the Module Settings tab and look at the far right, under where you select the WHM Package, find the link Switch to Advanced Mode Once Advanced Mode is open, look at Web Space Quota, it may say IPV4 Shared; IPv6 None in the text box Change this field to a numeric value or leave it blank BOOM Error gone once you accept the order now.
  6. 1 point
  7. 1 point
    he didn't ask about other pages, only about the MarketConnect pages - 14th rule of fòrum replies is don't answer a question that wasn't asked! 🙂 to make it easier for updating, then you might use... if (!is_null($client) && !in_array($templatefile,[strstr($templatefile,'store/'),strstr($templatefile,'error/'),'homepage'])) { or if you can't use abbreviated arrays... if (!is_null($client) && !in_array($templatefile,array(strstr($templatefile,'store/'),strstr($templatefile,'error/'),'homepage'))) { ... then if he ever needed to add another page that didn't require this sidebar, he could just add it to the list... either using strstr if there are multiple variants of the page (though off-hand I can't think of any), or just the templatename if he knows what it is.... e.g if we wanted to hide the sidebar from clientareahome... if (!is_null($client) && !in_array($templatefile,array(strstr($templatefile,'store/'),strstr($templatefile,'error/'),'homepage','clientareahome'))) {
  8. 1 point
    one option if you wanted to remove the prices from that dropdown would be to edit the configureproduct.tpl template and change... {if $pricing.monthly} <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}> {$pricing.monthly} </option> {/if} {if $pricing.quarterly} <option value="quarterly"{if $billingcycle eq "quarterly"} selected{/if}> {$pricing.quarterly} </option> {/if} {if $pricing.semiannually} <option value="semiannually"{if $billingcycle eq "semiannually"} selected{/if}> {$pricing.semiannually} </option> {/if} {if $pricing.annually} <option value="annually"{if $billingcycle eq "annually"} selected{/if}> {$pricing.annually} </option> {/if} {if $pricing.biennially} <option value="biennially"{if $billingcycle eq "biennially"} selected{/if}> {$pricing.biennially} </option> {/if} {if $pricing.triennially} <option value="triennially"{if $billingcycle eq "triennially"} selected{/if}> {$pricing.triennially} </option> {/if} to... {if $pricing.monthly} <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}> {$LANG.orderpaymenttermmonthly} </option> {/if} {if $pricing.quarterly} <option value="quarterly"{if $billingcycle eq "quarterly"} selected{/if}> {$LANG.orderpaymenttermquarterly} </option> {/if} {if $pricing.semiannually} <option value="semiannually"{if $billingcycle eq "semiannually"} selected{/if}> {$LANG.orderpaymenttermsemiannually} </option> {/if} {if $pricing.annually} <option value="annually"{if $billingcycle eq "annually"} selected{/if}> {$LANG.orderpaymenttermannually} </option> {/if} {if $pricing.biennially} <option value="biennially"{if $billingcycle eq "biennially"} selected{/if}> {$LANG.orderpaymenttermbiennially} </option> {/if} {if $pricing.triennially} <option value="triennially"{if $billingcycle eq "triennially"} selected{/if}> {$LANG.orderpaymenttermtriennially} </option> {/if}
  9. 1 point
    if you need WHMCS to automatically take care of the provisioning for such features, you might want to take a look at the Configurable Package addon... https://marketplace.whmcs.com/product/30 https://docs.whmcs.com/Configurable_Package_Addon note, you only need the addon if you want WHMCS to take care of the provisioning.... if you want to provision manually, you won't need to buy it. don't forget that clients may just be parking those domains, they won't necessarily have new sites, or require additional webspace/bandwidth.
  10. 1 point
    @Jon Erickson Your cron will only run once a day (the full cron) the other options run at various points of the day as per https://docs.whmcs.com/Crons#Task_Options_for_skip_.26_do so as long as you let it run with your email and -vvv at the time of the day (Settings > Automation Settings) then it should provide a full output
  11. 1 point
    Make sure to do the -vvv switch in the cron also.
  12. 1 point
    Hi, sorry have just seen that the compression was to high here is the video in 1080p Inspector video Greetings Christian
  13. 1 point
    I can help! I develop php scripts, and I also use the WHMCS Licensing Addon! If you have any questions, let me know 🙂 Welcome Aboard!
  14. 1 point
    Correct on both . Domain registrations get set your default ones. Transfers do not change their nameservers and it is up to the client to do so.
  15. 1 point
  16. 1 point
    Hi @SamS1, Typically, on a transfer, I would expect a domain names nameservers to remain at their current setting to ensure no downtime as a change like this can cause domains to not resolve for up to 24-48 hours. I'd recommend reaching out to NameSilo who can confirm if they do indeed update the nameservers during transfer. If they do not, you may wish to use a hook to perform the change once WHMCS marks the domain as "Active" from "Pending Transfer".
  17. 1 point
    Modulegarden has one. https://www.modulesgarden.com/products/whmcs/quickbooks-desktop MyWorks has one but it is for online. https://myworks.design/software/whmcs-quickbooks-online-automatic-sync-module/ They also have a woocommerce quickbooks desktop sync, so perhaps have something for WHMCS in the works or already and just missed it. Perhaps contact them. I recall seeing another QB desktop module around but do not recall the developer and not seeing it on the marketplace.
  18. 1 point
    You know, someone like you should be hired at $50 an hour to re-write some of the help / doc articles. I suspect, WHMCS could set-aside a $4,000 budget to invest into your organization and it would pay mega dividends. The spell check thing? jeeze. I mean, mistakes happen but 9 months? Dang... 6 years is no joke. You are a great customer and community role-model. How do you think sentq compares to you? If you guys duked it out on WHCMS wisdom test, you think he would wreck you? If you had access to the actual code, you think you could learn twice as much? Would you even want to learn more? Like that stuff is fun for you? Cheers p.s. - tell your friggin' lawyers to back off!
  19. 1 point
    oh no - it shouldn't have led to more questions! lol i've just instructed my lawyers to begin proceedings for libel against you - I strenuously deny having any part in writing the WHMCS core program! 🙂 as I posted earlier, WHMCS seemingly don't even have a spellchecker! the thing about using WHMCS is that the documentation is so limited, that if you want to do anything worthwhile with it, you really have to get your hands dirty and start playing with the code... and that's increasingly becoming more the case as recent versions are more dependant upon hooks than previous versions - I mean who in their right mind creates a software package where you need to use PHP to alter the menus and sidebars... it's insane... fine, I can do it... but a new user has no chance without reading the documentation... and even then... 🙄 i'm pretty sure before I got my license 2013 (21st March to be exact - 6th year anniversary coming up... jeez six years of banging my head against the brick wall of WHMCS!), I had never played with Smarty - but it's so flexible (especially as it can use PHP) that i'm always reluctant to abandon it to write a hook, but sometimes it's necessary. the trick with WHMCS is when you find that doing x works with one aspect of WHMCS, it probably works with others - so it's just a case of trying to apply the correct solution to a given situation. and there are many people that know more about WHMCS than I do - they just choose not to share that knowledge. 😞 e.g., the WHMCS internal developers will know lots more because a) they're writing the code (not me!) and b) they have access to the decrypted code... which I don't. in this instance, it was just a case of double-checking the knowledgebase database tables and seeing that there are no date fields in the structure...
  20. 1 point
    never say never, but they haven't changed in the last 3 years... the same people are still in charge, so I don't expect any of them to have some sort of Damascene conversion and realise the error of their ways... in the short-term, if they all keep their heads down, WHMCS as a company, will trundle along as always with no doubt a nice regular profit... it would be nice if someone senior woke up, realised that all they were doing is pumping out buggy, bloated crap software, terrible support, no documentation to speak of and decide to do something about it... as Tom said, when you can easily predict that a major release is going to be bugged, and you should wait until the first maintenance update, then why doesn't someone at WHMCS Towers realise that something needs to change. now I know some WHMCS staff are unhappy about what goes on at WHMCS (they've told me privately), but what can they do ? it's the people above them who make all the decisions, and it's the poor saps on the front-line who have to take the immediate flak for those decisions. I have to say that if anyone senior at WHMCS is going home at night, proud of what they've produced for the last few years, then they're living in their own deluded world - i'm actually embarrassed on their behalf, even if they aren't themselves. .. and i've seen many users leave WHMCS to go to a competitor, only to come back here a few years later... though I know at least one user closed their account here because they moved to that other software.. and where there's one, there's usually others. to get back to your question about will things ever change - in the way that I think we want to see it go, with 100% being a certainty, and 0% being no chance.... i'd put odds that it's in single figures... low single figures... aka unlikely. and for the avoidance of any doubt, this is not about me coming to the rescue and saving WHMCS - they (senior WHMCS management) have personally disrespected me too many times over the last 4 years, for me to even care about the company or wanting to work for them... my unpaid role here (as decided by me, not them) is to help out fellow WHMCS users where I can (when time and my limited knowledge allows) and, if at all possible, do absolutely nothing to help the company.... there can often be conflicts between those two intentions (me being here answering questions being the most obvious one!), but there are plenty of things I could do to help the company, but I simply won't - that's their loss and at least means that I don't have to be an apologist for the software... as some WHMCS staff seem to be. 🙄
  21. 1 point
    No. 😭 i've always had a secondary system running in the background just in case I need to move on quickly... yep - if they only understood that better documentation would make it easier for more developers to get involved with WHMCS, which would be a good thing.... every update comes with 4 things that you potentially have to deal with... new features - often not even asked for! old features, that you might rely upon, removed without warning. old bugs that never get fixed. new bugs introduced. if you designed billing software today, it shouldn't look anything like WHMCS - the cart should be better (it's the same order process that's been used for the last 6+ years) - actually, when you take a step back, the cart is horrendous when you think of the simple things that it should be able to do, but can't... the admin area hasn't changed dramatically from when I first started, and I thought it looked dated back then... I could go on but i'm pretty sure I said the same thing before v7... control, loss of income, coding quality embarrassment....?? who knows. interesting that their latest release is 8,000 files (compared to 8,500 with WHMCS), yet their filesize is 20MB, WHMCS v7.6 is now 75Mb (and 150MB+ when installed).
  22. 1 point
    There is nothing exciting about the new SEO friendly URL’s when an obscure setting on the Admin side decides to change all URL’s format in some core code you cannot touch or edit. I had my WHMCS installation with specific URL’s to language. Example: /news/article faq/article And language based. /news-in-another-language/article /faq-in-other-language/article Some said this was not possible with WHMCS. It is. But requires some heavy work both rewriting the URL’s in templates, then adding some hooks for the sidebar and having custom .htaccess rules (besides the WHMCS ones) to change the WHMCS language tab them based on the detected URL. If you go to an article that is based on English, it will of course load the article in English but if you go to the other URL on the same article, WHMCS would automatically change to that language to match the URL. This is how I have it. The problem with the new approach is that re-writing those URL’s in the templates is not as straight ward anymore with the new routepath. What is even worse. The new friendly URLs in 7.5 added .html extensions to my news and FAQ articles, so I get 404 error because that was not true before. The old URL friendly setting didn’t add .html extension on the back. I want it back as before, without adding .html to the news and FAQ articles. This is not SEO friendly, its worse than it was before. Even worse, some URL’s do not work. The renewal link does not work unless I add index.php to the URL. Of course this is hardcoded in the sidebar do I cannot change it without a hook!!! The search on the knowledge base template was also broken, I fixed this by replacing the post URL with the old format and it works. Strangely, the same new format is also used in the search post for the download section and that works. I’m starting to get really pissed about hiding stuff in the encoded files. Voting works but it redirects to an url again with .html on the end, so you get an 404 after voting an article. If you go back to the article you see the voting message to it works. This would stupid simple to fix if I just remove .html (where that setting is) but I cannot find and I assume its encoded somewhere in the URL friendly setting which means I will have to make a new rewrite rule to detect them and remove it. All because WHMCS does let me access the code to change this in 20 seconds. Moving the sidebar links to the protected core from the template files was an horrible move. I had to create special hooks for my SEO url’s that are triggered each time just because I was not able to change the link format on them. Now it seems the routepath is also encoded because I cannot find where to modify this. I’m seriously looking more and more a look at the open competition that only cores 1% of its files and not because it has more features but because I’m getting annoyed of WHMCS considering their own customers idiots. I don’t need WHMCS telling me what URL formats you have to use and then changing this on all the templates. I don’t need them to auto generate the sidebars for me either. Just like I don’t want the market store or an option to upload a logo or change the colors. JUST GIVE ME ACCESS to the old plain code where I can use whatever tool I want to make my changes. WHMCS is being dumbed down to the point of no return. Its seems they are really starting to hate developers that use an IDE or prefer to edit things on their own. Now you could argue, but it has more features…Does it? The way it worked on v5 was more robust and more open to change than today. I cannot even wait to see what happens when they change all URL’s and put all the rest of the code under IonCube where you cannot change anything anymore on the template files. This is marking it almost impossible to create very advanced sites or themes with WHMCS. I should not be hacking my design to fix URL’s. I should not be creating PHP code or rewrite rules to fix URL’s. Is it really this hard to just change links…??? The only way WHMCS is going to keep me in the future is if they decide to have some NDA agreement for some companies where they give them access to the code because otherwise I will slowly move to something I can edit with regular PHP code. I don’t want a black box. WHY is WHMCS making it harder and harder to make design changes to template files? I’m seriously starting to question if they are not planning on removing themes and template files completely in the future and just offer a boxed site where people change their text and logo that its it. Because this is where it seems they are moving. I’m really afraid of investing more time on WHMCS since at least 1 or more year. I hope something is coming that is more open and friendly for power users and on each new release I look and I don’t bother to upgrade because there is nothing new except for kids and children that want to open an affiliate program selling things with WHMCS. What happen to WHMCS? Some years back, even huge hosting companies where using WHMCS. I remember even HostDime if I remember correctly was using them. They were on part with Ubersmith and other big systems. I wonder how many big telcos or companies are using WHMCS because no serious service provider will use them if they cannot completely integrate it on their own platforms and fit the software to do what they want instead of working around it.
  23. 1 point
    Hi Abdul, there are a number of ways - and really depends on what you want to replace it with, that you could do... add your Twitter username to setup -> general settings -> social and that would display a text version of your twitter feed in place of the announcements. delete the announcement itself via the admin area... and looking at your site, it looks like this is what you've chosen to do. use an action hook to null the $announcements array on the homepage using a small .php file. there are other options, but seeing as you've deleted the announcement, there's no point going into them.
  24. 1 point
    Hi, usually you will find it in the Template in /whmcs/templates/your_template/error There is the tpl called page-not-found.tpl. Looks like : <div class="container"> <div class="error-container boxed"> <h1><i class="fa fa-warning"></i> {lang key="errorPage.404.title"}</h1> <h3>{lang key="errorPage.404.subtitle"}</h3> <p>{lang key="errorPage.404.description"}</p> <div class="buttons"> <a href="{$systemurl}" class="btn btn-default"> {lang key="errorPage.404.home"} </a> <a href="{$systemurl}submitticket.php" class="btn btn-default"> {lang key="errorPage.404.submitTicket"} </a> </div> </div> </div> Greetings Christian
  25. 1 point
    You need to join the tblinvoicetiems table with tblhosting to find the service and from the service you can get the package/product id. e.g. select packageid from tblinvoiceitems, tblhosting WHERE tblinvoiceitems.relid = tblhosting.id and tblinvoiceitems.type = 'Hosting' and invoiceid = '123'

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated