Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by cdeese8

  1. 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=✓&text=Knowledgebase&commit=Search i dont see anything on the https://docs.whmcs.com/Knowledgebase (or entire docs.whmcs.com domain)
  2. How do I display client tickets tablelist (like in clientarea home panel) on knowledgebase.tpl or static page? When i explored the /feed/ folder, it doesn't look like anything relevant is there - perhaps data feeds are not available option (https://docs.whmcs.com/Data_Feeds). So would I make a hook? That makese sense. I tried to make an includes/hook/display-tickets-help.php file and copy / pasted things I gathered on forums but that's not good. I get oops error and break site. Stock theme on WHMCS 7.4.* - this is the hook that is giving me trouble: https://pastebin.com/r1wYxYE7 https://developers.whmcs.com/hooks/hook-index/ https://whmcs.community/topic/284977-hook-to-display-todo-list-to-public-or-logged-in-clients/ tried changing 1 to 0 at the very bottom "add_hook("ClientAreaPage", 0, "display_help_tickets");" (don't think it matters though) Thanks for looking this over if you are thinking about helping out. :)
  3. Friggin brilliant. I remember reading about the pattern just before I went to bed. Thanks for giving that extra oomph of effort and providing a rich response. VERY HELPFUL!! TYSIR.
  4. Might you know of any sneaky ways, or creative things I can do to stop this? Can you please tell me how to prevent, block and disable any non-English letters? Specifically, I think it would be great to prevent letters from the Cyrillic script (Russian Alphabet). Literally, every spam ticket I get is from Mother Russia. I know there is form captcha, but I don't want to use any services related to google or even the baked in WHMCS. The less steps a visitor has to do to get support the better. Thanks for your time, https://en.wikipedia.org/wiki/Russian_alphabet https://docs.whmcs.com/Spam_Control don't see anything here don't see anything for search query: site:whmcs.community block russian letters still doing R&D for search operator: bootstrap 3 input field validation block russian letters
  5. Howdy WHMCS Community, using WHMCS 7.4.1 I was wondering how I could tweak / adjust the breadcrump for knowledgebase. It looks like when I use {debug} the top level or parent category isn't loaded on the article page. kb home > cat 1 > subcat 2 > kb article OR kb home > cat 1 > subcat 2 > subcat 3 > kb article (what i desire) kb home > cat 2 > kb article (what it currently is) The breadcrumbs just remove and wipe out the parent cat. Might you know of a hook to possible to display full breadcrumb?
  6. Times like this, I wish I had a nipple to feed me results. lol. But yea, thanks for providing keywords to assist with R&D. I'll go ahead and search the forums using search query site:whmcs.community hook "breadcrumb" OR "ClientAreaPageKnowledgebase" and see what I can come up with. Thanks steven99 and brian!
  7. You will get results on the first couple of links. Goto DDG and search for: site:whmcs.community sidebar hook or click here: https://duckduckgo.com/?q=site%3Awhmcs.community+sidebar+hook Basically, you want to create a file named w/e you want in the root/includes/hooks folder (at root directory of whmcs install) and pop into that .php file... something from one of the search engine results. Did you visit or read this doc yet? https://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet That cheatsheet is kinda helpful, but the hooks on the forums are way more nice. here is a hook, for example that will remove sidebar on knowledgebase page <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar) { if (!is_null($primarySidebar->getChild('Support Knowledgebase Categories'))) { $primarySidebar->removeChild('Support Knowledgebase Categories'); } }); add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Support Knowledgebase Tag Cloud'))) { $secondarySidebar->removeChild('Support Knowledgebase Tag Cloud'); } if (!is_null($secondarySidebar->getChild('Support'))) { $secondarySidebar->removeChild('Support'); } });
  8. 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!
  9. Anything else come to mind? How do you block non-English letters from the pre-sales contact form that is shown to logged out users? Yea I agree, CAPTCHA isn't very good and often worthless. The CloudFlare protected websites that display captcha for example are a pain in the butt and i almost always just close the website. Also, I've noticed if you are not using a Chrome browser, you will get SOOOO many more "captcha requests" just b/c you are not using the actual google browser. A joke ehh?
  10. How do I control the routePath output? I'm trying to customize the permalink so it spits out {$kbarticle.categoryname} instead of {$kbarticle.categoryid} domain.com/knowledgebase/{$kbarticle.categoryid}/{$kbarticle.title} (currently) domain.com/knowledgebase/{$kbarticle.categoryname }/{$kbarticle.title} (what would be nice) Using WHMCS 7.4.1 with default template, I notice on the knowledgebasecat.tpl page <a href="{routePath('knowledgebase-category-view',{$kbcat.id},{$kbcat.urlfriendlyname})}"> but when I use "find in file" search in Sublime nothing is found. Might you have any wisdom to share, perhaps a hook replacement or even smarty replace? https://www.smarty.net/docsv2/en/language.modifier.replace.tpl https://whmcs.community/topic/259281-htaccess-rewrite-knowledgebase-to-xyz-and-trim-redirect-extension-php-or-html-w-trailing-slash/
  11. Good idea buddy, that's what I ended up doing. I created a custom static page and just linked to specific articles after I created 301 redirects in .htaccess. Thanks again for good suggestion brian!
  12. Your welcome. Hmm, this might tricky. I do not believe you can "product link" specifically for DNS Management and ID Protection. What you could do, is check and dig into some files. Using Sublime Text or even Notepad++ you can "search in files" for specific keywords and start reverse engineering. If you don't want to hire someone to build something this is the best way to learn and get results... you could even open up a lang file... like \lang\english.php one and find the exact phrase you want to tweak, and find out, where it's being used your template. $_ADMINLANG['domains']['idprotection'] = "ID Protection"; $_ADMINLANG['domains']['idprotectioncontrolna'] $_ADMINLANG['domains']['idprotectionadded'] $domain.idprotection $domain.dnsmanagement It looks like the files you wanna get snippets of code from, might be: confdomains orderform template file which is the configuredomains.tpl file Honestly, I try my best to help but your topics are not helpful enough and it's almost like you are wasting my time by playing guessing games. Take 20 minutes out of your day, write-up a detailed topic and post it with as much rich information as possible. Take a moment and post pictures, make a bullet list of things you want and write a proper "help request". Was the Linking to WHMCS docs page helpful? You could also try using search query / operator like: site:whmcs.community sell dns addon "whmcs" sell dns management After you search results, click the first 25 pages and see if any of them are helpful.
  13. Just making a note (was gonna edit but it's locked) that I found a reply from 2010 - and will never link article to multiple cats, instead I'd just create / duplicate a new article. https://whmcs.community/topic/105901-resolved-breadcrumb-knowledgebase-categories/?do=findComment&comment=554073
  14. Please tell the forums what template, WHMCS version and specifically, what page(s) you want to cross-sell your "other products". You could try launching up the template file(s) in Sublime and manually adding blocks of code that add to cart specific products. There are a couple of domain configuration pages, so either check orderforms template or your main site template. public_html/templates/standard_cart/configuredomains.tpl public_html/templates/orderforms/cartdomainchecker.tpl https://docs.whmcs.com/Linking_to_WHMCS There is a cleaner way, using hooks but you might be able to get results faster with what I'm talking about.
  15. Thanks for the one of most detailed replies one could ask for. All sorts of valuable info in here that adds more questions and answers a bunch. I feel like the only reason you must know what you know.. all the hidden stuff, is because you either helped write WHMCS or just have been using WHMCS for that many years. I mean, sometimes, I'm blown away by how much invisible * you know.. it's just insane. For example, How do you know what's been saved to the DB is {debug} doesn't display it? Is it just a matter of looking at the DB tables and search & find? Thanks for your wisdom.
  16. How do I load data on the knowledgebasecat.tpl page? When I add {debug} to the file I can't see the specific "votes" and "useful" data being loaded. But if I add {debug} to the knowledgebasearticle.tpl I can see them being loaded. How do I get that specific smarty data / variable to pass on the cat page? {$kbarticle.votes} {$kbarticle.useful} I noticed the knowledgebasecat.tpl loads the "views" .. I just wish it also loaded the votes and useful smarty data too. Any ideas? Anything you can offer would be most helpful. Thanks,
  17. 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!! 😎
  18. Wicked. Thanks - it works! Much appreciated Brian, have a good day...
  19. Specifically, I desire having the "Support Knowledgebase Tag Cloud" sidebar panel title minimized on page load on knowledgebasearticle.tpl and knowledgebasecat.tpl pages. May you please recommend and share some wisdom? Might you know of a hook, that will automatically make it so the sidebar <div menuitemname="Support Knowledgebase Tag Cloud" class="panel panel-sidebar panel-sidebar"> is hidden / minimized by default? Thanks in advance for whatever help you can offer.
  20. Thank you very much @steven99 - at first, i tried to create two hook files (and dupe the code and replace the keyword) but that didn't work, so i just duped what you shared, merged it into a single hook file and it magically works. Brilliant! If you have any advise or wisdom, maybe this isn't written properly... I'm all ears. Thanks again!! Now, on the knowledgebasecat.tpl page, I can use both {$kbarticle.votes} and {$kbarticle.useful} to get the extracted data I desired. <?php // written by steven99 // https://whmcs.community/topic/293372-how-do-i-make-smarty-data-load-on-kbcat-page-it-loads-on-kbarticle-page-just-fine/?do=findComment&comment=1311909 use WHMCS\Database\Capsule; add_hook('ClientAreaPageKnowledgebase', 1, function($vars) { $x=0; foreach($vars['kbarticles'] as $article) { $dbarticle = Capsule::table('tblknowledgebase')->where('id', '=', $article['id'])->first(); // get article from database since we aren't given useful here. $vars['kbarticles'][$x]['useful'] = $dbarticle->useful; // add to the array $x++; } $x=0; foreach($vars['kbarticles'] as $article) { $dbarticle = Capsule::table('tblknowledgebase')->where('id', '=', $article['id'])->first(); // get article from database since we aren't given votes here. $vars['kbarticles'][$x]['votes'] = $dbarticle->votes; // add to the array $x++; } return $vars; });
  21. May you please point me into the right direction on how I could achieve this? This is what I imagine would just magically work if I typed into a .tpl file... {if statecode = "AK"} hi people from Alaska {elseif statecode = "CO"} hi people from Colorado {else} hi everyone else... {/if} Right now I'm still doing research, here are some notes I have: * https://www.docs.modulesgarden.com/Geolocation_Hook_For_WHMCS * site:whmcs.community conditional logic geo localization * maxmind Geolocation whmcs -fraud * https://dev.maxmind.com/geoip/geoip2/geolite2/ * https://ipinfo.io/ * https://whmcs.community/topic/249129-custom-html-panel-for-specific-country/ * http://www.smarty.net/docs/en/language.function.if.tpl * https://www.smarty.net/docs/en/plugins Any wisdom you may have that can help me achieve what I desire would be awesome. Thanks! :)
  22. This addon might be overkill, but perhaps the Geolocation Hook For WHMCS config.php (geolocation_hook_2.0.1_whmcs\includes\Geolocation\config.php) file might be the best starting point. I can add the GeoLite2 City.mmdb and see what kind of damage I can do in a couple of hours. Maybe you know this kind of stuff just because... 😃... if you had to guess, do you think, by adding a 59 meg file to the addon will make website load speed noticeably slower? Of course! I didn't think about doing something for logged in clients but yea, you make good point about VPN. Using WHMCS 7.4.* and stock template, I thought it would be fancy for logged out clients to see something a tad-bit more welcoming. The idea is to make a landing page that converts and having a little bit extra touch of personal might help (or deter because it's creepy). Alright, gonna dig my fingers into the keyboard.. thanks for feedback
  23. welcome back from your holiday vacation - hope you had a great time filled with smiles and pictures.



  24. cdeese8

    How to get my WHMCS site domain? 

    Use the smarty {debug} command and when you refresh page, you'll get a pop-up window that has EVERYTHING you are looking for. Be sure to us the CTRL + F command inside that window.. THERE is alot of data.. 1.) https://www.smarty.net/docs/en/language.function.debug.tpl 2.) https://whmcs.community/topic/190113-introduction-to-whmcs-smarty-debugging-display-if-customer-or-admin-are-logged-in/ Have fun pal
  25. cdeese8

    Importing clients using API

    Try using a search operator on Google or Duckduckgo: site:whmcs.community import export client data Inside WHMCS admin area, you can uncheck / check boxes to make client data required or optional. log into whmcs admin goto general settings click other tab check boxes in Optional Client Profile Fields area

Important Information

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