Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. This has always bugged me. What is the reason WHMCS displays a "Click here to continue..." button when a user logs out of their account? See screenshot. Why can't it just show the user account login page again once they log out? Just like WHMCS does when logging out of your admin area. Am I missing something seems not needed for the user to click a button to do nothing. Thanks in advance.
  3. Welcome to WHMCS.Community mcelebi! 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.

  4. I don't see any possible option to use Microsoft Authenticator for my admin account's 2FA. Are DuoMobile and Yubikeys the only options?
  5. Thank you very much, just what I needed!
  6. Welcome to WHMCS.Community Vlad V! 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.

  7. I read everything (I think!)... they're just telling the hook to get ready, we're about to query/update the database... mine is probably from how the example hooks were posted when v6 came out; steven's is how they're posted now... they're both doing the same thing and at this stage, I wouldn't worry about it too much - when i'm writing a new hook, i'm using one of a number of hook templates and it will likely contain that line that i've always used... and I don't know if that new method would only work on v7.... so when I get the chance, i'll have a play and see, but don't worry about it for now - as long as the hook can find Capsule, then the queries will work. they're fine and are just incremental counter, e.g., $x++ just adds 1 to the value of $x... steven99 was using a loop with a value but no key; whereas in mine, i'm specifying to use both the value and the key, and subsequently don't need to use a separate counter variable.
  8. i'm still inclined to think so. there are none - but a lot of WHMCS is probably still how it was 10 years ago, and this may be one of those occasions. but if the database doesn't store the updated date (or any date), then you're into the realms of having to store the date yourself when you update/create an article in the admin area... but I don't think that there are any specific hook points triggered when editing an article, so no simple way to do this. you can't extract what hasn't been saved. 🙂 no - just what has been programmed to be returned to be available to the template. not necessarily - as you saw with the useful/votes hook that I wrote that just amended the array with new content and returned it to the template... if the dates were naturally in the table, you could use that hook for this, but there are no dates stored. i'm not saying that it couldn't ultimately be done, just that there isn't a quick "here's a hook" solution... it's likely going to need an addon module for this, probably with custom database tables too.
  9. one option is a quick fix with css... .grecaptcha-badge { left: 0px; } and technically, you could hide it with the css code below (it still validates), but that would almost certainly be against Googles T&Cs... .grecaptcha-badge { visibility: hidden; } the real solution is probably going to involve using the "data-badge" feature - which by default is bottomright, but you can define it to be bottomleft - I can do it by editing scripts.js and changing.... // propagate invisible recaptcha if necessary if (isInvisible) { if (recaptchaContent.data('size') !== 'invisible') { recaptchaContent.attr('data-size', 'invisible'); } } else { recaptchaContent.hide() } to... // propagate invisible recaptcha if necessary if (isInvisible) { if (recaptchaContent.data('size') !== 'invisible') { recaptchaContent.attr('data-size', 'invisible'); recaptchaContent.attr('data-badge', 'bottomleft'); } } else { recaptchaContent.hide() } ... minifying it and saving as scripts.min.js now someone, perhaps one of WHMCS' own devs, who is better than me at JavaScript, should be able to make that into a hook.... long-term, there's nothing to stop WHMCS putting a left/right location dropdown toggle in the security tab, but that's heading down the road of a feature request, so it won't be happening any time soon. 🙄 in fact, they should have already made it multilingual - as I showed how in the thread below.... though everything seems to be defined in the .js files now, so I doubt quick template edits wouldn't work on the latest versions.
  10. yes - similar hook, you just have to change the array used and the hook point called... <?php # Remove Cancelled Domains From Array Hook # Written by brian! function clients_domains_hide_cancelled_hook($vars) { $hideStatus = array ('Cancelled'); $domains = $vars['domains']; foreach($domains as $key => $domain) { if (in_array($domain['status'], $hideStatus)) { unset($domains[$key]); } } return array("domains" => $domains); } add_hook("ClientAreaPageDomains", 1, "clients_domains_hide_cancelled_hook"); and then to hide the cancelled filter, you could remove it with another hook or hide it with css.. #Primary_Sidebar-My_Domains_Status_Filter-clientareacancelled {display: none;}
  11. Is it possible to do the same with Cancelled Domains?
  12. web2008

    Enom Error - Registrar Error Data missing

    Yes, I have the following at Enom on a domain with the same error as you have: This domain is currently suspended. To return the domain to active you must verify the Registrant contact email address. Resend Verification Email
  13. HarryAdney

    Unable to activate Slack in version 7.7

    That's great John, all sorted. Many thanks.
  14. Cannot find anyway even in the codes to change it from right bottom to left, any help?
  15. Hi @steven99, Thank you for your reply. Took your advice and contacted the host. After they opened the outbound port everything was working smoothly. Feeling like a noob here, seems like something I should have thought of first. Anyway I will know what to do in future now.
  16. Hi @redit, Thank you for your reply. So the problem was on my host side. I just asked them to update the timezone for me. Feeling a bit stupid, seems like something straightforward. Luckily I now not what to do in future.
  17. Hi @brian! and @oscarch - this widget is great. How can I make it span two widget columns (like the system overview widget)? Also any updates for v7.7? Thanks in advance!
  18. ptomter

    Norid integration

    We will in short time launch a new version of the Norid EPP module. please youse the above contact email information if you wish more information.
  19. Last week
  20. knoppers

    Template error after Upgrading

    Hey, no, unfortunately, I couldn't solve the problem. I have nothing left but a rollback to 7.5. Do you have the same problem? Greetings
  21. Hi everyone, I created an account for a new client. I set them up with package 1. I later changed it to package 2, which shows fine in WHMCS client profile, however, in cPanel they are still provisioned with the original package. What do? Thanks.
  22. Might you know if this is still the best way to do it @brian!? Just manually add date to the actual KB Article in WHMCS admin? I logged into Adminer and checked the DB and didn't any relevant tables for "last updated" in the knowledgebase tables. I would have replied to community thread but I think it's locked / archived. https://whmcs.community/topic/252161-knowledgebase-date-article/ https://whmcs.community/topic/236225-no-knowledgebase-action-hook-available/ I was hoping to be able to automate things a bit more and make it so, when a person clicks Yes or No for the {$kbarticle.useful} {$LANG.knowledgebaseratingtext} strings in knowledgebasearticle.tpl file the site would display an updated "Last Updated" date string. Even a static last updated string would be cool if it was being tracked each time the actual article was being updated by an admin in the WHMCS side of things. But yea, was just wondering if the date can be extracted? Does the the {debug} display all available things able to used from the WHMCS database? It's usually my goto thing and if something isn't in that popup window, it has to be done with an addon / module. I'm gonna browse over the docs right now and see what I can dig up. https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapageknowledgebase https://help.whmcs.com/searches?utf8=✓&amp;text=Knowledgebase&amp;commit=Search i dont see anything on the https://docs.whmcs.com/Knowledgebase (or entire docs.whmcs.com domain)
  23. Excellent optimization and thanks for the clean hook. 😋 You know, it was nice to see Steven drop in here but when I see Brian... it's ALWAYS a treat! Thanks dude. It works perfectly! If you are still reading this, and happen to know the answer, what is the difference in the hook between the two snippets? use Illuminate\Database\Capsule\Manager as Capsule; use WHMCS\Database\Capsule; Is one telling Smarty to dig into the database and do a global search and the other is specifically telling Smarty to do something else? Are the two hooks a combination of PHP, Smarty and SQL language? I've never seen things like "$x=0;" and "$x++;". Thanks again!! 😎
  24. Wicked. Thanks - it works! Much appreciated Brian, have a good day...
  25. RFEHosting

    WP-rocket Licensing Module

    Thank you all, i found someone.
  26. steven99

    Enom Error - Registrar Error Data missing

    I am seeing that error also but no indication from enom that the domain is suspended and DNS requests work. However, on a second domain for the same customer that same error does not come up. In this case the registrant email address was new to ICANN and so it required a ICANN email verification step. Is that the same on yours?
  27. web2008

    Enom Error - Registrar Error Data missing

    This indicate that the actual domain is Suspended at Enom.
  1. Load more activity
×

Important Information

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