Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


brian! last won the day on December 14

brian! had the most liked content!

Community Reputation

1,725 Excellent

About brian!

  • Rank
    WHMCS GearHead

Recent Profile Visitors

20,722 profile views
  1. my firewall seriously let me down and allowed me back in here... i'd thought i'd locked myself out of this place! 🔒 but while i'm here... I did send you an email about this, but got an automated reply... somewhere in your ticket system is the answer! cart.php?a=add&pid=98&billingcycle=annually&sld=domainname&tld=.com&configoption[106]=538&configoption[99]=428&promocode=extra10discount it should just need a & before the promocode and not a ? and with that, multiple locks should prevent me returning here until the New Year! 🔐🔐🔐
  2. brian!

    Cancellation Button don't change

    works fine in v7.6.1... can't remember if there was a bug in previous versions... returns to holiday. ⛷️
  3. brian!

    Double search for domain

    it should work - and would with Six/Standard_cart as long as your templates are up to date... if you are using custom themes, that may be the issue. alternatives would be to use the Domainchecker Data Feed on the homepage... or changing the url to use domainchecker.php... or changing name="query" to name="domain" - but if the templates were up to date for your WHMCS version, you shouldn't have to do this.
  4. you could use the Email Marketer. https://blog.whmcs.com/?t=67270 always remember that upgrading does NOT change the renewal (next due) date. https://docs.whmcs.com/Automated_Upgrades_and_Downgrades ... so they may end up with two invoices... one for the upgrade to take them to the existing due date, and then a renewal invoice as normal at the upgraded/downgraded price.
  5. brian!

    Home Button on navbar

    use the action hook posted in the thread below - second block of code starting <?php .... create a .php file in /includes/hooks, paste the code into it, save and your home link should change.
  6. brian!

    Different signatures on ticket depts

    two further options spring to mind with this - an EmailPreSend / Mergefield hook that modifies the {$signature} mergefield value.. that would be simple enough to do... i'll bookmark the thread and feel free to let me know if you need me to look further into that type of hook in the New Year... wsa was reading it yesterday, so if he can think of any way to commercially exploit what i've posted, i'm sure that he will do so. also, we may be overcomplicating the solution if these support departments are the names of your websites - in that, you could keep {$signature} as they are (the admins name etc), and then just use {$ticket_department} to output the brand/site. {$signature}<br /> {ticket_department} and with that, I really am gone from this place for a month.
  7. thanks for the update and further explanation - I look forward to hearing the cause of this.
  8. https://docs.whmcs.com/Blank_or_Partially_Rendered_Pages there is a description of how to enable error reporting via the configuration file if you can't access the admin area. if it's a v5 admin template, then i'd be surprised if it isn't the issue - you're probably looking at the best part of 5 years between the two releases. the nuclear option if you can't get access to the admin area, would be to edit the tbladmins database table as that stores the admin template choice for each admin. switching to any of the latest versions of v4 or Blend templates should work - though it's highly probable that other v5 modules could be causing this, e.g old v5 widgets, v5 addons no longer compatible with v7.... but once you can see any error that its giving you, you should be able to start tracking down potential causes.
  9. that's normal - invoicenum is only used if you define a custom invoice number format - either through general settings->invoices (sequential), or by coding.
  10. brian!

    SIdebar to Remove & Show in Clientarea

    the source code will always tell you whether it's a primary or secondary sidebar - worst case, it's only a choice to two, so if one doesn't work, try the other.
  11. brian!

    Different signatures on ticket depts

    another option would be to ignore using any hooks and just add the custom signatures in the email templates in Smarty... {if $ticket_department eq "Technical Support"}Brian @ TechSupport{elseif $ticket_department eq "Billing"}Brian @ Billing{/if} as these templates are stored in the database, your changes should be safe from WHMCS upgrades (unless they mess it up!)... and you should be able to add your HTML into the output... using this may come unstuck if you have multiple support operators as I don't think the template can determine which admin is replying to a ticket. as with all Smarty code in the email templates, use the Source Code button (via help) to enter/edit your signature code. is that the answer you had in mind?
  12. brian!

    Different signatures on ticket depts

    can you give an example of what you mean... i'll have forgotten about this in four weeks time - best to carry on while it's already in my head... break can start tomorrow! 📅
  13. brian!

    Different signatures on ticket depts

    goddammit - i'm supposed to be on holiday, but this question intrigued me... like a moth to a flame! 🦋 you could use a hook to tweak the $signature variable on the supporttickets page in the admin area based on the dept ID value (you could do it by department name if you had to, but it's quicker for me to use ID). <?php # Ticket Signature Based on Support Department Hook # Written by brian! function ticket_signature_by_department_hook($vars) { if ($vars['filename'] == 'supporttickets') { $deptid = $vars['deptid']; if ($deptid == '1') { // Technical Support $signature = "Brian @ Technical Support"; } elseif ($deptid == '2') { // Billing $signature = "Brian @ Billing"; } if ($signature) { return array("signature" => $signature); } } } add_hook("AdminAreaPage", 1, "ticket_signature_by_department_hook"); ?> so this can overwrite the support ticket signature defined in your admin user account... for simplicity, i'm assuming there is only you, but you could easily expand the hook to get the adminid of the admin user and alter the signature accordingly for each admin user... the modified signature will be used in the support ticket emails generated via the supporttickets page too. in that case, i'll sell you the above hook for $199.99 - a bargain! 😛 now, unless you tell me this hook has a fatal flaw and doesn't work, I really am going to disappear for my break! 🎄
  14. brian!

    Email History Homepage Panel

    i'm supposed to be on holiday! 🎄 no effort... using the original hook version... ->addChild($key)->setLabel('span class="xyz">'.fromMySQLDate($child->date,true,false).'</span> - '.$child->subject)->setUri('viewemail.php?id='.$child->id)->setAttribute('target','_blank'); not really - the code in the template is just a way of displaying the array that you're creating in the hook - you could give a child item a css class by using setClass in the hook, but it would apply to the entire chiild, not a particular part of it, e.g the date.
  15. brian!

    SIdebar to Remove & Show in Clientarea

    i'm supposed to be on holiday! 🎄 then just remove them with a hook - once removed, the page width will adjust... I think nearly all of the sidebars in the client area have unique names, so you shouldn't particularly need to check that they're clients before removing them because only clients can get into the clientarea pages where these sidebars are.. though even if you do, there are plenty of navigation hook examples of checking if a client is logged in posted in the community... though generally speaking, they're only really relevant when you want to hide/show a sidebar to one group (clients / non clients) that is available to everyone, e.g knowledgebase / announcements sidebars etc. the short answer is that you cannot... long answer is that you theoretically possibly can, but only with an extraordinary amount of coding that I wouldn't bother to try to code even if wasn't near Christmas - and not even for money! the real answer is that you're going to have to recreate the links in the appropriate template - basically, those sidebars are just links and there's nothing special about them, *except* that most of them are conditional - so cpanel/webmaill links appear on cpanel products; upgrade/downgrade only appears if the product is upgradeable; up/down options only shows in the configurable options are upgradeable; cancel link only shown if enabled in general settings etc. to answer a question before you even ask it - "are these conditions publicly listed anywhere?" - the answer is no, you'll have to figure them out yourself... welcome to WHMCS. 🙂 that page from your screenshot is basically covered by at least two templates - clientareaproductdetails.tpl is generally used if it's a non-cpanel product; if it's a cpanel product, that will use /modules/servers/cpanel/templates/overview.tpl - there will be enough Smarty variables available to the overview template to recreate the conditions (and i've just doubled-checked, so I know that for a fact!)... so then it's just a case of editing the template and creating the appropriate output, e.g I don't suppose you would recreate the look of the sidebars, just accommodate the links in their own table/div etc... so you're just looking at using a lot of if statements to check various conditions, and if true, show that link/info. if you're going to start modifying overview.tpl, then read the link below about adding a custom version to your template... https://docs.whmcs.com/Working_with_Module_Templates

Important Information

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