Jump to content

cdeese8

Members
  • Content count

    55
  • Joined

  • Last visited

Everything posted by cdeese8

  1. 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! :)
  2. 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
  3. welcome back from your holiday vacation - hope you had a great time filled with smiles and pictures.

    :)

    https://media.giphy.com/media/BAJ7JKJKAYzzq/giphy.gif

  4. 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
  5. 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
  6. cdeese8

    Get knowledgebase

    Just use what is already available and find a creative way to recycle it. There is a helpful snippet of code that is used in \templates\six\supportticketsubmit-steptwo.tpl file. <div id="autoAnswerSuggestions" class="well hidden"></div> \templates\six\js\whmcs.js and whmcs.js /** * Get automatic knowledgebase suggestions for support ticket message. */ var lastTicketMsg; function getTicketSuggestions() { var userMsg = jQuery("#inputMessage").val(); if (userMsg != lastTicketMsg && userMsg != '') { jQuery.post("submitticket.php", { action: "getkbarticles", text: userMsg }, function (data) { if (data) { jQuery("#autoAnswerSuggestions").html(data); if (!jQuery("#autoAnswerSuggestions").is(":visible")) { jQuery("#autoAnswerSuggestions").hide().removeClass('hidden').slideDown(); } } }); lastTicketMsg = userMsg; } setTimeout('getTicketSuggestions()', 3000); } Happy New year buddy...
  7. questions: 1.) Do you know of a better way to avoid even IP banning? 2.) How do I add an action or input selector to admin page supporttickets.php that'll Ban IP Sender & Delete? 3.) Is this something a hook should be used for or is an addon module better? Here are the current available options: https://i.imgur.com/rl6Me9P.png Here is what I imagine the end-result to look: https://i.imgur.com/kE1dRmh.png The spam subjects are so crafty, these bots use keywords that are "non-targetable" like "Ivan, Grobock, Masil and Ressel Ukraine". That means adding a spam control that target's "Subject" won't work. Thanks for time notes: * hope community has existing solution * avoid enabling google captcha service. * avoid creating Support Ticket Spam Control subjects or phrases on https://whmcs.demo/admin/configticketspamcontrol.php * avoid having to pay for third party to develop addon misc: * WHMCS 7.4 using stock admin template * https://docs.whmcs.com/Security/Ban_Control * https://developers.whmcs.com/api-reference/addbannedip/ * $_ADMINLANG['support']['blockanddelete'] = "Block Sender & Delete"; * https://whmcs.demo/admin/configbannedips.php * <form method="post" action="/whmcs/configbannedips.php"> * supporttickets.php file (place where i want to add ban ip input form option) * configbannedips.php file (place where ban ip option is located)
  8. UPDATE: Using Ban Control IP Wildcards, I was able to kinda get a solution: https://docs.whmcs.com/Security/Ban_Control
  9. cdeese8

    Terminating inactive accounts from WHMCS

    Perhaps this module can help you get a step closer to automation: https://marketplace.whmcs.com/product/3322
  10. cdeese8

    WHMCS Will Not Create Website

    Maybe you should consider using Softaculous to create your desired results. They have a solid WHMCS Auto Install Module hook.
  11. Are you using the default template? You could just "copy / paste" the HTML codeblock for the tiles (look for <div class="tiles clearfix">). One more thing to consider, is, maybe use the conditional smarty code {if $loggedin} to display the HTML tiles. If I understand you correctly, you just want to display the 4 tiles on all pages for logged in users? These links should help you: 1.) https://docs.whmcs.com/Client_Area_Sidebars_Cheatsheet 2.) https://github.com/WHMCS/templates-six 3.) https://github.com/WHMCS/templates-six/blob/master/clientareahome.tpl 4.) https://whmcs.community/topic/190113-introduction-to-whmcs-smarty-debugging-display-if-customer-or-admin-are-logged-in/ Hope something in my response was helpful
  12. cdeese8

    Stop ticket mail to master account

    You might be able to get results by creating an email rule inside cPanel webmail. So for example, you can just "delete" or "discard" email with specific conditions. This is more of a duck-tape approach but maybe it'll fix your solution? * https://documentation.cpanel.net/display/CKB/How+to+Create+a+Spam+Email+Filter * https://documentation.cpanel.net/display/CKB/How+to+Configure+Mail+Filters What if you just goto the Admin Area page /configadmins.php and just uncheck box in Assigned Departments? Hmm...
  13. cdeese8

    Email History Homepage Panel

    tyvm for the detailed, and helpful hooks brian! :)
  14. cdeese8

    Email History Homepage Panel

    Hey @brian! - if it's not too much trouble, could you please share how I would update / tweak your above code to wrap the email history date in an HTML <span class=""XYZ"> tag? Is something like that easily doable without much effort? https://forums.whmcs.com/showthread.php?127034-home-page-panel-add-array-title-and-target-to-href https://developers.whmcs.com/hooks/hook-index/ http://docs.whmcs.com/Working_With_Client_Area_Home_Page_Panels https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareahomepagepanels Could we take some of the code from clientareahome.tpl and recycle it into the "extra" part of the php snippet? {if $item->getChildrenAttribute('class')} {if $childItem->getClass()} {$childItem->getClass()}{/if}
  15. cdeese8

    Email History Homepage Panel

    Well look at what we have here.... another top quality share by none other than the legendary brian! thanks dude! always nice to be able to learn from your code... thank you very much. :)
  16. so apparently i have 8 warning points. typical power-trippin by the mods.

  17. Might you know if it's possible using a hook to customize the Markdown Editor that appears on pages like New Ticket? May you please help me customize the MD Editor for WHMCS 7.1*? Using the standard template, I'm not able to hunt down any docs or tips to tweak the layout. So for example, I would like the MD Editor Toolbar to be at the bottom of the <textarea> instead of at the top. Another thing I would like to do is customize the tooltips or even icons.
  18. cdeese8

    Adding Website Header to WHMCS

    Here are some helpful links to help you edit your whmcs template: https://developers.whmcs.com/themes/customising/ https://whmcs.community/topic/255653-how-to-customize-whmcs-six-theme-header-and-footer-as-like-my-html-design/ Consider working with hooks to insert code snippets too... you can find an assortment of great hooks all over the forums. Try doing a google search like: site:whmcs.community header + hook GLHF and next time you post, include WHMCS version, template name and maybe even links / pictures.
  19. cdeese8

    Free Hosting Product

    Thanks for response. If you wanted to offer a 7 or 14-day trial shared hosting package, how would you go about it Brian? No custom code or anything.. just working with WHMCS 7.1+ ...it seems either do a 30 day promo code hosting package or, if you have 7 or 14 day trial you'll need to get user to click sidebar to manual upgrade package. Am I missing something? The Terminator
  20. cdeese8

    Free Hosting Product

    If using the Terminate/Fixed Term, 7 days, or 14 days... what happens after those days? If person deposits money into account, will WHMCS 7.1 cancel termination? Is hosting still active? If client attaches charge card (or paypal) address... will WHMCS 7.1 cancel automatically terminate? Is hosting still active? The marketing email campaign idea is brilliant! Thanks for adding clarity... One more rookie questions... what, in your opinion, is the best way to setup a free 30-day trial hosting product? Would you just use a non-recurring promo code with 100% value that only works with a monthly billing cycle and apply once / client attribute? What about a 14-day hosting trial? It doesn't look like the WHMCS Promotions/Coupons admin page has anything for related billing cycles (because it's not monthly)... so maybe that is when someone would use Auto Terminate/Fixed Term option on Pricing page? I just re-read the entire help page that you linked but I still don't 100% fully understand everything... is there really a couple different ways to do this?? What about using a 100% value coupon and auto terminate 14 days option? It becomes active hosting account if money is deposited or paypal is linked?
  21. Is it possible, the way WHMCS is coded, to display the TODO List to public / logged in clients? I was thinking I could create a specific user, called "Public" for example and any TODO items added to that specific admin ID would be displayed using {include file="$template/includes/tablelist.tpl"}. I've logged into Adminer and I started digging into tbltodolist so I know Admin ID #4 is the "Public" user too. here is my /public/inc/hooks/ file so far: <?php # Todo Logs For Public / Client Area # Written by WHMCS Community (or hopefully brian! / sentq) use Illuminate\Database\Capsule\Manager as Capsule; function hook_client_todo_logs($vars) { $admin = Menu::context('admin'); $todologs = Capsule::table('tbltodolist') ->where('adminid', $admin->id) ->get(); $encodedata = json_encode($todologs); $decodedata = json_decode($encodedata, true); return array("todologs" => $decodedata); } add_hook("AdminAreaPage", 1, "hook_client_todo_logs"); ?> Here is code pasted into a .tpl file, I've tried... clientareahome.tpl and homepage.tpl {include file="$template/includes/tablelist.tpl" tableName="TodosLog" noPagination=true noSearch=true noInfo=true} <div class="table-container clearfix"> <table id="tableTodoList" class="table table-list"> <thead> <tr> <th style="min-width:55px;">Date</th> <th>Title</th> <th>Description</th> <th>Status</th> </tr> </thead> <tbody> {foreach from=$todologs item=todolog} <tr> <td align="">{$todolog.date|date_format:"%m/%d/%y"}</td> <td align="center">{$todolog.title}</td> <td align="">{$todolog.description}</td> <td align="">{$todolog.status}</td> </tr> {/foreach} </tbody> </table> </div> --- I've been referencing these links but so far, I feel kinda burnt. I'm starting to think maybe this isn't even possible. I mean it's gotta be possible right? My experience and lack of wisdom must be getting the best of me. https://developers.whmcs.com/api-reference/gettodoitems/ https://whmcs.community/topic/269677-client-area-display-balance/ https://whmcs.community/topic/247841-display-credit-balance-in-six-template/ https://whmcs.community/topic/267269-adding-a-quotcredit-balancequot-panel-to-the-client-area-home-page/?tab=comments#comment-1224793 If you reply thanks in advance for your input and feedback.
  22. WE GOT RESULTS!!! Thanks @brian! --- How do I parse HTML from a To-Do description into the hooked output? Is this a limitation by WHMCS 7.1? If I visit mydomain.com/todolist.php and in the description of a To-Do item I use <a href="#">link</a> and / or <img src="/image.png"> and save, it doesn't display on public page. Also, is there such thing as a "PublicAreaPage" hook? I guess it's just assumed if it isn't clientarea or admin it's public? https://developers.whmcs.com/hooks/hook-index/ Thanks again! Two hour response is no joke...wicked fast! -- You think this makes sense? So I see the added value from the todo module as being able to offer transparency and show people a constant "changelog" or "patch notes" getting done. For example, if one has a ticket department called feedback, it can be used to collect info. One could take the collected feedback and add it to the to-do list (assigned to public admin #4). Now, people know work is getting done, they can just visit http://domin.com/changelog Thanks to your hooked input, people can now see the collected feedback and the progress. I thought about using a public Trello board, but I think the todo module in WHMCS works good... even better now! ...you know, I had a feeling you might say something like this... hahahaha.... "I can immediately see a number of errors... ". Thanks for your quoted breakdown, everything is easier to comprehend. When you say things like "this field is called admin", so the query wouldn't work. I understand now.. what's going on in the background. Being able to think more like a computer helps me out.
  23. Goodluck with your sales. true that broooo - top kek @ Happy International Women's Day
  24. cdeese8

    Help with built in affiliate system

    It could be, you have crons incorrectly setup. Those commission payouts usually happen once each day and I've always had great success with the affiliate tool myself. It's not perfect but it is powerful and works well. The documentation, I've read, is always outdated, though the affiliate part is really helpful and updated. Maybe re-read the docs and getting started guide as well as crons page. https://docs.whmcs.com/Crons Be sure to re-visit the product / service page and double-check that one tab that specifies how much affiliate commission will be given. Setup > Product/Services > Edit > Other tab If you have 11 $0 commissions, it's because you didn't set something up correctly. Retrace and revist everything and start from scratch. You can solve this problem!!
  25. cdeese8

    Cron running real slow since moving to version 7

    If the CRON is slow, it could be many different things. Perhaps even WHMCS... but I would say, depending on your hardware specs, you should just upgrade your VPS and consider even getting a dedicated server. 9,000 billable items should have plenty of resources and I'm thinking 16 gigs of ram (and an SSD) will be enough. The WHMCS 6 version is much more lean than the WHMCS 7. Just wait until WHMCS 8... ^ _ ^ When websites get really big and powerful, it's known that smart people setup dedicated boxes / VPS instances to handle just cron jobs alone! cron jobs are pretty intensive on system resources
×

Important Information

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